Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Dec 2003 17:48:33 +1030
From:      "W. Sierke" <ws@frogspawn.cjb.net>
To:        <freebsd-questions@FreeBSD.org>
Subject:   Using maildrop from sendmail aliases file
Message-ID:  <008501c3cab7$6a014580$8464a8c0@ovirt.dyndns.ws>

next in thread | raw e-mail | index | archive | help
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@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?008501c3cab7$6a014580$8464a8c0>