[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: postfix relay smtp authentication

On Wed, Dec 06, 2006 at 12:13:26AM +0100, Martin Fuzzey wrote:
> Hi,
> I have been succesfully running postfix on Sarge as a local mailserver 
> relaying all outbound mail (from multiple internal accounts) to my ISP.
> However my ISP has just decided to require SMTP authentication.

Here is what I have done when I had an ISP that required SMTP AUTH:

# cat /etc/postfix/sasl_passwd
upstream.mail.exchange                user@isp.tld:password

# grep -r sasl_passwd /etc/postfix/
/etc/postfix/main.cf:smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd

Then, make sure to run:

# postmap hash:/etc/postfix/sasl_passwd

This should leave you with a file called /etc/postfix/sasl_passwd.db
which postfix which actually use as the source of the authentication

Also, make sure that the sasl_passwd and sasl_passwd.db have mode 600
and that you have libsasl2-modules installed.



Roberto C. Sanchez

Attachment: signature.asc
Description: Digital signature

Reply to: