non standard smtp port and multiple domains

Questions and answers about how to do stuff
Post Reply
Posts: 3
Joined: 08 Apr 2015 12:02

non standard smtp port and multiple domains

Post by »


i can not seem not to get this right.
i want to do the following setup: transport to xx.xx.xx.01 through port 2525 transport to xx.xx.xx.02 through port 25

can anyone guide me through this setup?
this was very simple in ESVA.

many thanks
User avatar
Site Admin
Posts: 540
Joined: 30 Sep 2012 11:03
Location: eFa

Re: non standard smtp port and multiple domains

Post by darky83 »

We have not 'yet' configured anything in the menu's for this, but you can easily modify the transport file just like in esva.

Code: Select all

sudo vi /etc/postfix/transport
Then at the bottom add your host like:

Code: Select all      smtp:bar.example:2025
And run the postmap tool:

Code: Select all

sudo postmap /etc/postfix/transport
Version eFa 4.x now available!
User avatar
Posts: 1500
Joined: 18 Mar 2015 09:16

Re: non standard smtp port and multiple domains

Post by pdwalker »


Useful information.

I have a few external domains that are picky about who they accept mail from. In their case, I cannot get them to accept our mail directly. However, we do use messagelabs to filter out the viruses from our incoming mail and they also act as an external smart host if we wish.

If we use standard ports, then we can:
8) Mail Settings
4) Transport Settings
n) Add new mail Domain
Please enter the domain you want add: <stupidlypicky.domain>
Now enter the destination server: <>
Then, when I send a mail to stupidlypicky.domain, efa will happily forward it to for me

(Just adding the notes here in case someone else finds this useful

keywords: smarthost by domain
Post Reply