Page 1 of 1

Non-standard port for transport

Posted: 24 Jan 2014 18:23
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

Re: Non-standard port for transport

Posted: 24 Jan 2014 18:56
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.

Re: Non-standard port for transport

Posted: 24 Jan 2014 20:17
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

Re: Non-standard port for transport

Posted: 24 Jan 2014 20:44
by shawniverson
Ah, I see.

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

relayhost = [192.168.1.1]:26

Re: Non-standard port for transport

Posted: 24 Jan 2014 23:06
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

Re: Non-standard port for transport

Posted: 24 Jan 2014 23:55
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