I run Postfix on Debian Testing and I originally set outgoing mail in my mailer (Balsa) to be SMTP localhost:25.
I have the choice of sending external mail either through my ISP's mail server or my web site hoster's mail server.
In my Postfix main.cf I had relayhost = (one of two mail servers)
Before I changed ISPs recently I used to send my external mail through my ISP (unauthenticated) but then I changed to my web site hoster's mail server and mail was going out through them (also unauthenticated).
When I changed ISPs recently I found that I could no longer send through my web site hoster's mail server and they say that's because it requires authentication. I don't know why it should have worked with my old ISP and the people who host my web site haven't offered any explanation.
So I'm trying, and failing dismally, to use SASL for SMTP authentication.
I followed these instructions http://linuxgazette.net/142/pfeiffer.html
However if I now try sending mail with SASL set up authentication fails on whichever external mail server I use but I don't know why or how to find out why it's failing.
Can anyone help with this?
Barry Samuels bjsamuels@beenthere-donethat.org.uk wrote: [...]
However if I now try sending mail with SASL set up authentication fails on whichever external mail server I use but I don't know why or how to find out why it's failing.
Can anyone help with this?
Not with so little information! Use the options in your main.cf under "DEBUGGING CONTROL" to get postfix to log more detail about why it's failing and then send the list the relevant log messages...
Also, have you checked you can AUTH with those servers manually? The article you're using linked http://qmail.jms1.net/test-auth.shtml which looks a fair enough howto.
Good luck!
On 14/10/07 08:35:00, MJ Ray wrote:
Barry Samuels bjsamuels@beenthere-donethat.org.uk wrote: [...]
However if I now try sending mail with SASL set up authentication fails on whichever external mail server I use but I don't know why or how to find out why it's failing.
Can anyone help with this?
Not with so little information! Use the options in your main.cf under "DEBUGGING CONTROL" to get postfix to log more detail about why it's failing and then send the list the relevant log messages...
Also, have you checked you can AUTH with those servers manually? The article you're using linked http://qmail.jms1.net/test-auth.shtml which looks a fair enough howto.
Good luck!
MJ Ray http://mjr.towers.org.uk/email.html tel:+44-844-4437-237 -
That was, actually, quite helpful.
However in my /etc/postfix directory there is a file 'sasl_paswd' which has lines of the form:
mail.server1.co.uk me1@mydomain.com:mypassword1 mail.server2.co.uk me2:mypassword2
I can authenticate and connect using server2 but authentication fails on server1.
I have discovered that the server1 authentication requires base64 encoding. If I convert my login name and password to base64 using the information from the link you mention thus:
perl -MMIME::Base64 -e 'print encode_base64("\000me1@mydomain.co.uk \000mypassword1")'
and then connect using telnet and entering 'AUTH PLAIN whatevertheencodingis' then authentication works.
The problem is I don't know how to convert that information for use in 'sasl_paswd'. I have tried substituting the base64 encoding for 'me1@mydomain.com:mypassword1' in the first line but authentication fails again.
Many thanks for your help.