after complete the setup by using the instruction in "Postfix Vacation Autoresponder". i came into a problem seems difficult. i would like to ask some opinions.
my setup is postfix virtual user, openldap, mailscanner, , dovecot.
before vacation setup, i used ldap-alias.cf to rewrite to email to a local user ->
it will not go thru ldap-alias.cf rewrite after mysql-alias.cf, resulted looping (i use fetchmail to fetch email from the hosting server and deliver to local mailbox), from what i read from maillog. the "Out of office" email delivered but also trying to deliver the email back to my hosting server.
Ok, I've updated the Postfix Vacation Autoresponder article. But basically, you just need to change mysql-alias.cf with the lines below so it won't deliver to example.com.
host = localhost user = postfix password = password dbname = postfix table = vacation select_field = email where_field = email additional_conditions = and active = '1' result_format = %u@vacation.invalid
email is rewrite to user1@vacation.invalid, ldap-alias.cf is not processed .. sigh. so vacation mail is functioned but original mail is not delivered to the local mailbox.
as for postfix config, i would like to check if multiple entry in various config, is it the standard behaviour it would not process the remaining part of the entry if the earlier entry has already provided output (result), only empty output will make the config to continue try the next entry? like my config above.
because now you advise me to use bcc map, however i have plan to use bcc map for incoming and outgoing email journaling purpose, so i will have another multiple entry for recipient bcc map …