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

Re: Postfix and SASL authentication



On Sun, Nov 25, 2007 at 06:46:51PM +0000, Barry Samuels wrote:
> I have tried twice before to set up SASL authentication for Postfix and 
> failed to get it working both times. I am now trying a third time.
> 
> I have three remote mail servers to which I can send outgoing mail. I 
> use Balsa as a mail client and, as a test, I set the value of the 
> Remote Server, in the Balsa settings, to each of the three mail servers 
> in turn together with the appropriate values for username and password. 
> I sent an email using each setting and they all arrived. This shows 
> that my username/password combinations are correct for each of the 
> remote servers.
> 
> I then created an /etc/postfix/sasl_passwd file and transferred the 
> values for all three servers in the form:
> 
> server.name username:password

It's been a while since I set this up, but I have 
user@example.com:password even for hosts that do not require the full 
email as username.

> I then ran postmap hash:/etc/postfix/sasl_passwd.
> 
> So far so good.
> 
> Before I go any further I'd like to check the format of the sasl_passwd 
> file. I have seen the form shown above on various howtos after 
> searching on the Internet but I have also seen them where the server is 
> encased in square brackets - [server.name].
> 
> Are those brackets required?

It might speed up things a bit because it prevents MX lookups. You 
shouldn't use them unless you have troubles.

> Having got an answer to that question I'll carry on with the SASL setup 
> and will probably be back with further questions.

Try this first:

http://newbiedoc.berlios.de/wiki/Mail_-_sending

Regards,
Andrei
-- 
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)

Attachment: signature.asc
Description: Digital signature


Reply to: