6 messages in net.sourceforge.lists.courier-usersRe: [courier-users] common alias betw...
FromSent OnAttachments
chester c youngSep 25, 2004 5:14 pm 
Sam VarshavchikSep 25, 2004 7:55 pm 
Arturo "Buanzo" BusleimanSep 25, 2004 8:27 pm 
Stian B. BarmenSep 26, 2004 4:13 am 
Jeff JansenSep 26, 2004 7:39 am 
Stian B. BarmenSep 28, 2004 2:41 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [courier-users] common alias between two local domains - how?Actions...
From:Jeff Jansen (ivb_@sil.org)
Date:Sep 26, 2004 7:39:17 am
List:net.sourceforge.lists.courier-users

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.