Sendmail aliases and Cyrus
Nikola.Milutinovic at ev.co.yu
Mon Nov 21 01:49:28 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
> but that is where I am getting stuck...
This is the way I do it:
"ev.co.yu" is our domain and is registered as a local-host-names entry,
VirtUserMap: Nikola.Milutinovic at ev.co.yu -> nikola.milutinovic at IMAP
MailerTab: IMAP: cyrusv2d:localhost
Now two things are worth mentioning. Firstly, "IMAP" is NOT in the
"local-host-names" - as far as I know, for a local domain Sendmail will
not consult mailertable, as it will not consult virtual users table for
non-local domain. Secondly, the "host part" for cyrusv2d mailer in
mailertable has no usage. The definition of that mailer has actually no
use for the $h macro. That can probably be changed, but I'd like Andrzej
Filip (anfi) to do it, since he is the author of that definition.
What should be the best usage for the host part, since we could be
requesting this change from Andrzej? I imagine it could be used for
specifying which LMTP socket to connect to, but it can be elaborate,
remeber Sendmail can connect to a local UNIX socket, just as easily as
it can connect to a remote LMTP network socket. So, something like this
would be nice, I just don't know if it is feasable:
More information about the Info-cyrus