Backup /var/qmail/control/virtualhosts to /var/qmail/control/virtualhosts.bak and empty the new file of domains you don't want delivered locally, same with /var/qmail/control/locals.

Add entry to /var/qmail/control/smtproutes no quotes.


You'll have to set up 'remotehost' to receive mail on new 'port'

Let me know if it works.

On 7/3/2019 8:20 AM, Jeff Koch wrote:
Abel - thanks - I'll give it a try - how about forcing it to use port 26 for outgoing mail?


On 7/3/2019 9:39 AM, wrote:

On Wed, 3 Jul 2019, Jeff Koch wrote:

Date: Wed, 3 Jul 2019 09:35:20 -0400
From: Jeff Koch <>
To: Eric Broch <>,
Subject: [qmailtoaster] Relaying mail to another server

Hi - I need to temporarily relay all mail from a QMT7 mailserver to another server that will distribute the mail. Does anyone know how to reconfigure the QMT7 mailserver to do that?

This is because my host is currently blocking outgoing port 25 so I thought I'd relay the mail on port 26 to a server we have on another host. But I need to configure QMT7 to do that.

Regards, Jeff


/usr/bin/echo  ":<ip_external_relay>" >> /var/qmail/control/smtproutes

kind regards,


To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to