Is there a postfix mysql virtual_maps append_at_origin workaround so I can pipe to external scripts?
Posted
by FilmJ
on Server Fault
See other posts from Server Fault
or by FilmJ
Published on 2009-09-29T21:04:32Z
Indexed on
2010/03/17
5:01 UTC
Read the original article
Hit count: 173
I am using virtual domains, and I'd like to setup the server to alias to custom scripts. I manage all accounts using postfix mappings to mysql.
It seems that postfix automatically appends a virtual domain regardless of how the forwarded/aliased result comes back. So even though i have:
"|/bin/command"
postfix is reading it as:
"|/bin/command"@mydomain.com
Is there any work-around, or setting I can fix?
It would seem than append_at_myorigin=no
would be ideal, but that's unsupported according to the documentation.
Another option, maybe I can skip virtual aliases altogether and use the "/etc/postfix/aliases" table - assuming all emails go to the main domain. I'll try this, but if anyone has any other ideas how to make it work with virtual domains, please let me know as this would be very useful!
Thanks.
© Server Fault or respective owner