Sendmail rules for delivering to user@domain1 local and user@doma
anfi at priv.onet.pl
Sat Jan 17 16:25:35 EST 2004
Joe Thomas wrote:
> Running FreeBSD (4.7R) with Sendmail 8.12.9 and Cyrus 2.2.2 BETA...
> I have two domains on this box with a user that exists in both domains.
> I want email for user at domain1 to be delivered via sendmail:local as if
> cyrus weren't around (which it does) and email for user at domain2 to be
> delivered via cyrus to be picked up imap/pop. Currently, email to
> user at domain2 gets delivered via sendmail:local because the rules have
> stripped off the domain.
> My sendmail rule writing is pretty rusty and I didn't find anything quite
> what I want to do in searching the more recent (~last 6 months) of archives.
> Has anyone written the rules to forward the virtual domain 'domain2' to
> BTW: If the user only exists on the domain2 side, or if I define cyrus to be
> the local mailer, then I can get the mail via imap/pop so I know everything
> works. It's just a matter of making the correct decision of which delivery
> app to use.
Try modified advices from the following URL:
Cyrus Aliases (sendmail)
1) In *.mc file add
2) Deliver messages to *@CYRUS using cyrus mailer [requires
3) Do not accept messages to *@LOCAL via SMTP [requires
FEATURE(`access_db') and FEATURE(`blacklist_recipients')]
Andrzej [pl>en: Andrew] Adam Filip http://anfi.freeshell.org/
anfi at priv.onet.pl anfi at xl.wp.pl
More information about the Info-cyrus