You can just create another directory at /var/qmail/supervise with a run file 
running on port 587 and using a different tcp.smtp file.

I wanted separeted processes for internal and external incoming mail at my MX 

Here is how I did it:

- I followed a regular instalation as described in lifewithqmail + smtpauth.
- Instaled Vpopmail
- Applied the chkuser patch
- Instead of replacing qmail-smtp at /var/qmail/bin I renamed the patched file 
to qmail-mx and copied into it.
- Created a /var/qmail/supervise/qmail-mx folder and modified the run file to 
use qmail-mx instead of qmail-smtp binary and instead of 
tcp.smtp.cdb, and chaged the listening IP. (You your case, you should modify 
the listening port to 587)
- Created the link at /service
- Modified qmailctl adding the qmail-mx process. (Also generating the file from

It works like a charm for me and I think you could just adapt the overall idea 
fitting your needs.

There is just one inconvenience with this setup. The config files for qmail 
(rcpthosts and etc..) must be the same for both processes. It would require 
further modifications on qmail-smtp.c to use diferent config files for each 

Your new CDB file should have no open relays allowing only authenticated mail 
to pass through.

That should do the trick.

Does anyone have a better suggestion?


Thiago Bujnowski

From: Rick Macdougall 
Sent: Saturday, September 11, 2010 9:57 PM
Subject: Re: [vchkpw] submission port 587

Sorry for the top post, on my IPod.

If no one answers before tomorrow, I'll reply when I get on my computer.  It's 
pretty straight forward.


On 2010-09-11, at 18:39, <> wrote:

  This may be the wrong forum for this but I can’t seem to find any info.


  Does anyone have information on how to setup a second SMTP process within 
qmail that listens on port 587 and accepts ONLY authenticated smtp connections? 
In this scenario port 25 would accept normal smtp (non-relay) and smtp-auth 
traffic but now could also be filtered to block dynamic IP ranges.




  Jeff Koch 



Reply via email to