Sendmail + Virtual Domains + aliases

Andrzej A. Filip andrzej.filip at gmail.com
Thu Feb 25 05:57:52 EST 2016


Sebastian Hagedorn via Info-cyrus <info-cyrus at lists.andrew.cmu.edu> wrote:
> --On 24. Februar 2016 um 15:07:52 +0100 Andrea Venturoli via
> Info-cyrus <info-cyrus at lists.andrew.cmu.edu> wrote:
>
>> I've setup a server running Cyrus IMAP 2.5.7 with virtual domains and
>> sendmail as MTA.
>> I'm having trouble with aliases.
>>
>> E.g. I put the following in /etc/aliases:
>>
>> root:				me at someotherdomain.it
>> postmaster at oneofmydomains.com:	root
>>
>> However, writing to postmaster at oneofmydomains.com fails since that
>> mailbox doesn't really exist.
>>
>>
>> I don't have oneofmydomains.com in local-host-names, since I use
>> mailertable for delivery with:
>> oneofmydomains.com			cyrusv2:/var/imap/socket/lmtp
>>
>>
>> What is the reccomended way to accomplish what I'm trying to do?
>
> Use virtusertable instead of aliases, e.g.
>
> postmaster at oneofmydomains.com	root

sendmail.cf by default handles only "domain less" aliases for emails in
local email domains.  It is possible to change it *BUT* it is officially
"untested" territory. So if you do not need one to many mapping and one
to one is sufficient then use virtusertable.

-- 
A. Filip


More information about the Info-cyrus mailing list