Sendmail aliases and Cyrus
Casper
casper at snigelpost.org
Mon Nov 21 02:27:56 EST 2005
Anthony Tibbs wrote:
> Hi everyone,
>
> I was trying to check the list archives for some hints, but it seems
> that that server is having some 'difficulties' at the moment, and
> isn't responding.
>
> I am currently in the process of setting up another Cyrus/IMAP server,
> as I've been (personally) running Cyrus/Sendmail for a few years now
> with good results. I had the usual sendmail+virtdomains+cyrus hoops
> to jump through, but now have THAT working all right (by way of a
> mailertable entries, i.e.
>
> mydomain.ca cyrusv2d:/var/lib/imap/socket/lmtp
>
> The problem is that for this to WORK, mydomain.ca must not be
> considered a "local domain" (i.e. it must not be in local-host-names),
> since this results in a rewrite that strips the 'host' portion of the
> address off, and then Cyrus rejects the message with an 'unknown
> mailbox' error.
>
> And all of this ultimately means that I can't use sendmail "aliases"
> (for non-local addresses), which I need in order to redirect such
> things as postmaster, root, etc. to a particular user.
>
> Have I missed something simple here? I've tried following the
> instructions at
> http://asg.web.cmu.edu/cyrus/download/imapd/install-virtdomains.html
> but that is where I am getting stuck...
>
>
> ----
> Cyrus Home Page: http://asg.web.cmu.edu/cyrus
> Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
>
>
If you not use mailertable and put the domain in the local-host-names
the aliases would work (even for vhosts in cyrus).
Also put,
define(`confCHECK_ALIASES', `True')dnl <= This checks the aliasesfile
left side of the aliases
in you sendmailcf.mc file
Also change the cyrusv2d mailer in sendmail.cf to,
Mcyrusv2d, P=[IPC], F=lsDFMnqXzA@/:|m,
S=EnvFromSMTP/HdrFromL, R=EnvToL/HdrToL, E=\r\n,
T=DNS/RFC822/SMTP,
A=FILE /var/lib/imap/socket/lmtp
The try to add aliases in the sendmailalises file like
root: forward at anotherhost.com
or
root at thishost.com: root at whereevveryouwant.com
And type, newaliases.
Test.
Done
sendmail -bt
/parse user at host.com
if you get an answer like
mailer cyrusv2, user user at host.com
if your cyrususer is user at host.com you are done
if you get an answer like
mailer cyrusv2, user user
if your cyrususer are user at host.com you need a localrule that not strip
away the domain
/Casper
More information about the Info-cyrus
mailing list