On 2009-09-15 K bharathan wrote: > if the relay host has got a username and password how can i specify > these in the main.cf > a google on this showed me the following: > > relayhost = 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 userid:password > > is it the proper way of doing it?
Yes. You need to run "postmap /etc/postfix/sasl_passwd" to create the actual hash file /etc/postfix/sasl_passwd.db that Postfix will use, though. Also make sure to set restrictive permissions for the file /etc/postfix/sasl_passwd, because it contains the password in plain text. Regards Ansgar Wiechers -- "Abstractions save us time working, but they don't save us time learning." --Joel Spolsky
