Big Pizzle wrote:
On our old server that doesn't do any Virtual Domains, we have lines in our /etc/alias which look like the following: usera: "|/export/home/users/usera/blah/script.pl" I just recently set up Postfix with Virtual Domains using a MySQL backend. All aliases which forward to another mail account work just fine.

I added the following line per the Postfix documentation to /etc/postfix/main.cf <http://main.cf>:
virtual_transport = maildrop:

I uncommented the two lines for maildrop in /etc/postfix/master.cf <http://master.cf> so maildrop would be available for use.

MySQL table looks like this:

address goto domain date created date modified active
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
us...@domain1.com <mailto:us...@domain1.com> "|/home/users/blah/script.pl" domain1.com <http://domain1.com> 2009-03-01 00:05:05 2009-03-01 00:05:05 1

When sending an email to us...@domain.com <mailto:us...@domain.com>, I get the following message in the error logs:

Mar 3 17:54:18 hostname postfix/local[32599]: 6A68B2FBDA: to=<|/home/users/blah/script...@hostname.domain.com <mailto:script...@hostname.domain.com>>, orig_to=<us...@domain1.com <mailto:us...@domain1.com>>, relay=local, delay=0.07, delays=0.05/0.01/0/0.01, dsn=5.1.1, status=bounced (unknown user: "|/home/users/blah/script.pl")


[press the "plain text" button when posting from gmail]


virtual aliases do not support delivery to commands; you must rewrite the user to a domain listed in mydestination.

mydestination = localhost localhost.$mydomain

virtual_alias_maps:
us...@example.com  f...@localhost

aliases file:
foo:  "|/path/to/command"


  -- Noel Jones

Reply via email to