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.