chester c young wrote:
with two local domains, d1.com and d2.com, with respective users
support1 and support2.
would like mail to supportATd1.com to be deliverd to support1 (AT
d1.com), and supportATd2.com to go to support2 (AT d2.com).
You really should set these two domains up as hosteddomains if this is
going to happen very often, as others have explained. However, if you
don't want to redo your domains as hosteddomains for just this account
then you could also use a .mailfilter file if you are using maildrop to
deliver your mail. Create the file '.mailfilter' in the HOME directory
for the "support" user and then put the following in it.
import RECIPIENT
if ($RECIPIENT eq 'supp...@d1.com')
to "! supp...@d1.com"
if ($RECIPIENT eq 'supp...@d2.com')
to "! supp...@d2.com"
else
./Maildir
This should redirect all the mail for the support address at those two
domains to the proper addresses. Anything else will be delivered locally.
Again, you'll need to use maildrop as your delivery agent in order for
this to work. Check out the 'maildropfilter' man page for the proper
syntax if you want to change this around.