2003-04-30
qmail, SMTP and AUTH
Right now I'm running qmail for mail delivery and courier-imap for, well IMAP (and POP3 actually). Relaying is allowed for clients that has already authenticated successfully with the IMAP or POP3 server. This is accomplished with Bruce Guenter's relay-ctrl package.
Up until now I've been providing the IMAP and POP3 services over clear text channels only, but I recently added — with the help of couriertls, a component of the courier-imap package — SSL to the game. Now, even-though the relay control package operates as expected I'd like to get rid of it and instead support SMTP AUTH. The stock version of qmail's SMTP server doesn't have AUTH support so I'll have to use one of the many patches available.
However, as passwords will be sent over the wire I'd like this to be encrypted, just like IMAP and POP3. The idea I have is to separate SMTP service in two parts: one for incoming SMTP traffic as usual on port 25, one for outgoing traffic, SSL encrypted and AUTH enforced (i.e. don't accept any deliveries unless authenticated) on another port.
Bernstein's package mess822 contains an alternate (and experimental) SMTP server called ofmipd, the Old-Fashioned Mail Injection Daemon. It provides essentially the same functionallity as the qmail-smtpd program of the qmail package, but it is more forgiving, rewrites headers etc. In other words, it is intended for outgoing SMTP. Sadly, I've found no AUTH patches for ofmipd; doesn't seem too hard to apply existing qmail-smtpd patches though, of which qmail-smtpd-auth looks promising.
Now there are a few high-priority tasks I need to tend to before all this will happen. Stay tuned.
