K bharathan put forth on 9/15/2009 9:06 AM:
> if the relay host has got a username and password how can i specify
> these in the main.cf <http://main.cf>
> a google on this showed me the following:
> 
> relayhost = smtp.example.com:25 <http://smtp.example.com:25>
>   smtp_sasl_auth_enable=yes
>   smtp_sasl_password_maps=hash:/etc/postfix/sasl_passwd
>   smtp_sasl_security_options=
> 
> /etc/postfix/sasl_passwd:
> smtp.example.com <http://smtp.example.com> userid:password
> 
> is it the proper way of doing it? guidance appreciated

That looks correct except for "<http://smtp.example.com>" in sasl_passwd.  I'd 
remove that.  Assuming that smtp.example.com accepts connections on TCP 25 this 
should work.  Try 587 if it doesn't work.  Oh, and I'm not sure why, but my 
config has smtp_sasl_security_options = noanonymous instead of a blank.

--
Stan

Reply via email to