[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
thoughts - rfc2645 (ODMR) + qmail
- To: qmail@xxxxxxxxxxxxx
- Subject: thoughts - rfc2645 (ODMR) + qmail
- From: Markus Stumpf <maex-qmail@xxxxxxxxx>
- Date: Tue, 05 Nov 2002 16:07:30 +0100
- Delivered-to: mailing list qmail@list.cr.yp.to
- Mailing-List: contact qmail-help@list.cr.yp.to; run by ezmlm
- Organization: SpaceNet AG, Muenchen, Germany
- User-Agent: Mutt/1.2.5.1i
A customer asked about ODMR (On Demand Mail Relay - SMTP with Dynamic IP
Addresses) support. Think of ETRN but with dynamic IP addresses.
Authentification is accomplished via the SMTP AUTH extension.
After thinking about it for a while I had the idea it might work with
qmail-smtp + AUTH patches and a combination of serialmail/maildirserial.
My idea is
- put all email for a domain in a maildir (i.e. like with AUTOTURN as
described in the ucspi package)
- set up tcpserver + qmail-smtpd + SMTP AUTH
- as "program" to checkpassword use a script that does something
like
cd /var/autoturn/$USER
/usr/local/bin/maildirserial -b -t 604800 -- "." ${USER}- \
/usr/local/bin/serialsmtp ${USER}- `cat /var/qmail/control/helohost`
IMHO this would be a rather elegant solution.
The problem that remains is how to "connect" the network sockets to
the script (serialsmtp).
One would probably have to write a "connector" client that connects FD 0/1
of qmail-smtpd/checkpassword to 6/7 of serialsmtp and somehow
feed the output of maildirserial to serialsmtp also. Could this be done?
(I'm not too familiar with mangling fd's around ;-)
This "connector" would also have to handle the (easy) task of waiting
for a ATRN command and sending a "250 OK".
Comments? Has anyone done it already?
\Maex
--
SpaceNet AG | Joseph-Dollinger-Bogen 14 | Fon: +49 (89) 32356-0
Research & Development | D-80807 Muenchen | Fax: +49 (89) 32356-299
"The security, stability and reliability of a computer system is reciprocally
proportional to the amount of vacuity between the ears of the admin"