Ok, I have a bit of a problem with mysql aliases... user = dbuser password = dbpass dbname = c1mailforwards
query = select forwards.destination,users.email from forwards,users where (forwards.user_id = users.id) and forwards.active and forwards.destination = '%s'; select_field = forwards.destination where_field = users.email And in main.cf virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-migration-forwards.cf,proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, proxy:mysql:/etc/postfix/mysql-virtual_email2email.cf, hash:/var/lib/mailman/data/virtual-mailman So, it is a ISPConfig system to which we want to add a little kludge for a migration. The forward _sort_ of works, but every sender gets back a "#< #5.4.6 X-Postfix; mail for test.domain.com loops back to myself> #SMTP# And yes, it is the same machine that shuld handle the resulting address. What am I missing in main.cf? I tried adding domain.com, *.domain.com to virtual_alias_domains, but that didnt work either. Also, i need to be able to handle all mail to *.domain.com