Non-standard port for transport

General eFa discussion
Post Reply
danitaz
Posts: 24
Joined: 24 Jan 2014 17:56

Non-standard port for transport

Post by danitaz »

Good morning - I'm testing EFA to see it it meets my organization's needs. I'm well versed in Postfix, so I can ssh in and make these changes manually, but is there a way to add a non-standard port to the transport mail server when creating the transport setting? I tried with just a : and the port number, but that doesn't work.

Personally, I have no problem manually adding the info via ssh - but I can't imagine I'm the only site that needs this, and making it "easier" for those not as familiar with ssh could be useful.

Thanks!

Danita
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Non-standard port for transport

Post by shawniverson »

Hello Danita,

Give me some time to research this for you.

I know you will also need to open up the port in the firewall as the firewall is active on E.F.A.

We can certainly add a config option once we figure out how this is done.
danitaz
Posts: 24
Joined: 24 Jan 2014 17:56

Re: Non-standard port for transport

Post by danitaz »

Okay - but this is not so that EFA listens on a different port - this is so EFA delivers to a different port - it looks like this is the transport file:

mydomain.com smtp:[192.168.1.1]:26

for example. Then mail that is destined for mydomain.com would be SENT to 192.168.1.1 on port 26 rather than on port 25

Thanks for pointing out the firewall though - I was trying to connect to mysql from my Mac, and kept getting refused, even though I had set mysql to allow from my IP address - I probably just need to have the firewall allow me through!

Danita
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Non-standard port for transport

Post by shawniverson »

Ah, I see.

Looks like you need to do this in main.cf, not transports

relayhost = [192.168.1.1]:26
danitaz
Posts: 24
Joined: 24 Jan 2014 17:56

Re: Non-standard port for transport

Post by danitaz »

If you have multiple domains, you would need to do it in transports if they all receive mail from different locations though - it's working fine btw!

Danita
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Non-standard port for transport

Post by shawniverson »

Just to clarify for our readers...

you need a relayhost entry in main.cf to specify the port

and

you need an entry in transports as well

You can have multiple entries
Post Reply