[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: multiple queues per domain under sendmail
>>>>> "k" == kevin lyda <kevin@suberic.net> writes:
k> i'm hosting a few domains for static ip dial up users. what i want
k> to do is put the mail for each domain in a seperate queue, and then
k> when the hosts connect to the net they can issue an etrn command to
k> my mailserver.
A few years ago (sendmail 8.9 timeframe), I setup a configuration
like this.
k> however i'm having a hard time finding sendmail docs on how to
k> accomplish this. i'm willing to consider postfix at this point.
k> so, any sendmail or postfix guru's care to give me tips here?
I used a dedicated sendmail queue for these customers,
ie. /var/spool/mqueue.etrn on the backup MX machine. A script
periodically moved queued messages for the etrn customers to the
dedicated queue. An incoming tcp port 25 connection was used to
invoke a customized sendmail command for that customer via specific
hosts.deny entries, ie.:
sendmail: mailhost.customer1.com : spawn (/usr/sbin/sendmail -oQ/var/spool/mqueue.etrn -qR@customer1.com >> /var/log/mqueue.etrn 2>&1) & : ALLOW
sendmail: mailhost.customer2.com : spawn (/usr/sbin/sendmail -oQ/var/spool/mqueue.etrn -qR@customer2.com >> /var/log/mqueue.etrn 2>&1) & : ALLOW
The customer used this mechanism by locally issuing an etrn command
to the backup MX when they wanted to receive accumulated mail.
The forementioned script was based on re-mqueue.pl which is included
in the sendmail.org tarball. If you're interested, I'll look for
the version I used.