Using maildrop from sendmail aliases file

W. Sierke ws at frogspawn.cjb.net
Wed Dec 24 23:15:03 PST 2003


I am attempting to configure sendmail to pass mail addressed to a particular
domain to maildrop.

maildrop is already installed and used with getmail to collect mail from a
number of pop accounts. It has been installed as user:vmail group:vmail.
This existing setup works fine.

I've added the following to the sendmail configuration:

in /etc/mail/virtusertable
...
@second.domain.tld    second-domain-tld


and in /etc/mail/aliases
...
second-domain-tld:    "| /usr/local/bin/maildrop -d ws at first.domain.tld"

It looks as though it's ready to work except for this in /var/log/maillog:
...
Dec 25 17:05:19 maildrop[75657]: Cannot set my user or group id.


Presumably this is because maildrop wants to set itself to run as user:vmail
and the existing setup I have works as-is because getmail (which calls
maildrop) is configured to run as user:vmail in /etc/crontab.

Either I need to find a way to allow maildrop to change itself to user:vmail
when called from sendmail (which I don't know how to achieve) or I need to
change maildrop to run as (I'm guessing) user:root which if memory serves
was something that was suggested to be avoided.

What would be the best approach?


Thanks,

Wayne



More information about the freebsd-questions mailing list