Thanks Harald, for the sake of clarity I answered to you points in the mail, but after trying and retrying, it seems that I need to place:
"smtp_sasl_mechanism_filter = plain" in the main.cf By forcing the mechanism the system is now able to connect to te server and send the mail. Thanks again, Luca On Thu, Feb 14, 2013 at 3:10 PM, Reindl Harald <h.rei...@thelounge.net>wrote: > > Am 14.02.2013 14:48, schrieb Luca Arzeni: > > I'm in need of using a smarthost to relay all of my mail. > > > > I'm unable to use an italia provider (aruba) as smarthos for my server. > > I obtain the (in)famous "550 5.1.0 XXXXX authentication failed" > > maybe he does not like PLAIN without encryption > why in the world would anybody do this? > > install "cyrus-sasl-md5" or however the package is called > in your dsitribution and postfix will automatically use > the best available method > > I can confirm that aruba smpt uses PLAIN authentication without encryption, so md5 (alas!) is not an option. I don't understand why they make this ugly thing, but "such is life!" (TM) :-) > > I've tested username/password using thunderbird as client, it works > > with unencrypted plain auth? > Yes it does work this way: unencrypted plain auth on port 25 > > > I've tested the same configuration with another provider: it works. > > does not matter > > agreed. I was just pointing out that postfix is working and it's able to do a md5 authentication with other providers, so the problem is really in the unencrypted PLAIN authentication > > My guess is that the provider uses different server to answer to my > request > > how should it do this? > > > and so postfix is unable to find a matching password in > > file /etc/postfix/sasl/saslpasswd. > > YOU control the match not the target server > > YOU control that host/port of the reylhost matchs EXACTLY > how it is defined in "saslpasswd" and my guess is that > you forgot to put the hostname inside [] to disable > MX lookups > > I did use the [] but, as far as I can see, the logs shows that I ask for a server, but there are other names that I find in the logs. (placing a smptd -v in the master.conf) > > cat /etc/postfix/saslpasswd > # CHANGES: postmap /etc/postfix/saslpasswd > [mail.thelounge.net]:587 user:pwd > > > But I've tried by using smtp_cname_overrides_servername=yes or > smtp_cname_overrides_servername=no and it failed in > > the same way. > > don't do mangling around everywhere > ok > > > I've also tried to declare all hostnames that I can see in the logs > placing all of them in the > > /etc/postfix/sasl/saslpasswd but even this way I cannot send my mail > > why are you doing this? > > also to be sure that there was a match between the entry in the saslpasswd file and the host. anyway: all well what ends well. Thanks again, Luca