On Wed, Apr 26, 2000 at 02:43:47PM +0000, Anton Pirnat wrote:
> Just found some more about �serialmail� on DJB�s site.. It eems to be
> some like ETRN and a bunch more.. Maybe this works, if not i put my
> puters to the trash (hey, i was kidding ;)..
Maybe this is of interest to you.
Besides the instructions that come with the serialmail package I use a
slightly different approach.
We don't save the "ETRN" messages associated with an IP but with a
domain name and use the follwing lines as a wrapper for qmail-smtpd:
------------------------------------------------------------------------
#!/bin/sh
/var/qmail/bin/qmail-smtpd
exec </dev/null >/dev/null 2>&1
[ ! -z "$ETRN" ] && {
( /var/qmail/bin/sm-etrn $ETRN </dev/null >/dev/null 2>&1 ) &
}
------------------------------------------------------------------------
In the cdb file for tcpserver we use e.g.
195.30.1.54:allow,RELAYCLIENT="",ETRN="lagrange.space.net"
195.30.1.100:allow,RELAYCLIENT="",ETRN="lagrange.space.net"
Thus also other IP adresses can trigger delivery for "lagrange.space.net".
This is useful if customers can't trigger the delivery from the host
their mail server is running on.
The sm-etrn script utilizes a file called "RELAYHOST" in the store
directory of the domain to get the name/IP address of the mail exchanger
to use and also uses this file (with flock'ing) to determine whether
there is already a delivery to this host in process.
\Maex
--
SpaceNet GmbH | http://www.Space.Net/ | Stress is when you wake
Research & Development | mailto:[EMAIL PROTECTED] | up screaming and you
Joseph-Dollinger-Bogen 14 | Tel: +49 (89) 32356-0 | realize you haven't
D-80807 Muenchen | Fax: +49 (89) 32356-299 | fallen asleep yet.