procmail issue - splitting delivery of one address based on destination domain
Posted
by
warren
on Server Fault
See other posts from Server Fault
or by warren
Published on 2011-03-07T21:56:45Z
Indexed on
2011/03/08
0:11 UTC
Read the original article
Hit count: 657
I use procmail to handle some serverside mail processing. I am trying to setup one email address on a server that support multiple domains (in the example below, domain.net
and domain.com
). I want mail sent to [email protected]
to go to bob
and mail sent to [email protected]
to go to sara
.
VERBOSE=off
LOGFILE=/dev/null
:0
* .domain.net
bob
:0
* .domain.com
sara
The above recipe seems to work quite well in that it catches incoming mail to domain.net
and forwards it to bob
.
However, instead of forwarding mail to domain.com
to sara
, it creates a file in /home/user
called sara
.
What am I doing wrong on this?
© Server Fault or respective owner