OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: relayhost - port

From: Duane Hill (d.hillyournetplus.com)
Date: Tue Jul 03 2007 - 11:57:55 CDT


On Tue, 3 Jul 2007 at 11:42 -0500, njonesmegan.vbhcs.org confabulated:

> At 09:36 AM 7/3/2007, mess-mate wrote:
>> Hi,
>> my isp changed the smtp port number.
>> In my main.cf i've 'relayhost=[smtp.orange.fr]'
>> i've to change it to 'smtp-msa.orange.fr' with port number 587.
>> On http://www.postfix.org/postconf.5.html#relayhost couldn't find
>> anything about a port number.
>> Is a relayhost=[smtp-msa.orange.fr:587] the way to go ?
>
> Everyone seems to have missed the part of
> http://www.postfix.org/postconf.5.html#relayhost that says:
>
> In the case of SMTP, specify a domain name, hostname, hostname:port,
> [hostname]:port, [hostaddress] or [hostaddress]:port. The form [hostname]
> turns off MX lookups.
>
> So it would seem the form
> relayhost = [hostname]:port
> is the documented answer.
>
> Is there some way the documentation could to be made more clear? Maybe an
> example showing an alternate port for those who skip the description and go
> straight to the examples?

It probably wouldn't be a bad idea to show. That way at a glance one could
pick up on it.

I for one caught it by reading the description. I don't use the option
myself. However, after reading the description, now I know why it is used
and how if the opportunity arises.