Sendmail aliases and Cyrus

Casper casper at
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.
>    cyrusv2d:/var/lib/imap/socket/lmtp
> The problem is that for this to WORK, 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 
> but that is where I am getting stuck...
> ----
> Cyrus Home Page:
> Cyrus Wiki/FAQ:
> List Archives/Info:
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 file

Also change the cyrusv2d mailer in to,

Mcyrusv2d,       P=[IPC], F=lsDFMnqXzA@/:|m,
                S=EnvFromSMTP/HdrFromL, R=EnvToL/HdrToL, E=\r\n,
                A=FILE /var/lib/imap/socket/lmtp

The try to add aliases in the sendmailalises file like
root:   forward at
root at   root at

And type, newaliases.

sendmail -bt
/parse user at

if you get an answer like

mailer cyrusv2, user user at

if your cyrususer is user at you are done

if you get an answer like

mailer cyrusv2, user user

if your cyrususer are user at you need a localrule that not strip 
away the domain


More information about the Info-cyrus mailing list