On 04/02/2011 12:16, Martin Rabl wrote:
which domain is in your mails you send?
Some ISPs-MTA refuse to relay mails with an other base-domain as assigned to the user identified through SASL credentials.

Am 04.02.2011 um 12:08 schrieb Dominique:

Hi Martin,

I'm trying following your instructions. I got the smtp of the ISP out of the SOGo config. I followed the instruction in the link you provided, creating a password file, and modifying the main.cf from postfix.

Restarted Postfix - no complains so far. Tried to send a mail and it got rejected:

to=<dco...@terra.es>, relay=mailhost.movistar.es[213.4.149.228]:25, delay=0.36, delays=0.05/0.01/0.26/0.05, dsn=5.1.0, status=bounced (host mailhost.movistar.es[213.4.149.228] said: 550 5.1.0<dco...@solipym.com> sender rejected (in reply to MAIL FROM command))

The ISP SMTP server rejected the outgoing mail - I suppose because the domain does not corresponds.

I checked the SASL parameters in my main.cf file and I am a bit lost now... My initial sasl config relates to smtpd

smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes

without modifying it, the server cannot correctly authenticate, so I added what was in the example you provided:

smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/relay_passwd

now it says no 'No worthy mechs found' before rejecting the connection '(SASL authentication failed; cannot authenticate to server mailhost.movistar.es[213.4.149.228]: no mechanism available)'

Feb 4 12:01:45 solipym postfix/qmgr[2196]: 171B9E80A8D: from=<dco...@solipym.com>, size=959, nrcpt=1 (queue active) Feb 4 12:01:45 solipym postfix/smtp[2229]: warning: SASL authentication failure: No worthy mechs found Feb 4 12:01:45 solipym postfix/smtp[2229]: 171B9E80A8D: to=<dco...@terra.es>, relay=mailhost.movistar.es[213.4.149.228]:25, delay=546, delays=545/0.03/0.27/0, dsn=4.7.0, status=deferred (SASL authentication failed; cannot authenticate to server mailhost.movistar.es[213.4.149.228]: no mechanism available)

So I am going in the right direction, but still cannot resolve my problem. I know it is not 100% SOGo but I still appreciate the help.

I noticed that the sasl connections are done to smtpd in my initial setup and to smtp in the example. Being a bit lost with sasl any hint would be welcome.

Thanks,

Dominique

On 04/02/2011 10:19, Martin Rabl wrote:
Hi Dominique
Am 04.02.2011 10:04, schrieb Dominique:
OK, trying to make it work with the ISP... But I need to setup user and password to the ISP's SMTP server. Could you spare a minute to tell me
...
On 04/02/2011 00:36, Brian Kirkman wrote:
Agreeing with Jeff, you should use the ISPs SMTP server, but I would
make the change at the MTA level. I'm used to using Sendmail as an
IMHO the better option is to use a local smtp-server on your SOGo-Server (only) for relaying to the ISP.

With Postfix you can set username/passwort to login to the ISPs smarthost.
For a possible setup have a look there:
http://www.dnsexit.com/support/mailrelay/postfix.html

And with this setup you have more possibilities handling your outgoing mails (filtering, rewrites etc.)



On 2/4/2011 5:39 AM, Dominique wrote:
Hi Martin,

The ISP smtp server is mailhost.movistar.es
I am sending mail from solipym.com
To terra.es or gmail.com or what you can think of.

Thanks,

Dominique

Dominique,
This can be one of the trickiest things to set up in the MTA because every ISP is different. Looking at the Postfix log, it looks like Postfix is not successfully authenticating with the ISP's SMTP server. Here are a couple of things to think about. The ISP (mailhost.movistar.es) might not even require SSL authentication. It might be plain-text. The best way to figure out what login credentials are needed is to either get the answer from the ISP, or set up a mail client such as Outlook or Thunderbird to connect *directly* to the ISP's SMTP server. After some trial and error, you'll figure out how the username/password/auth_type need to be configured in the mail client to successfully send mail. Then from there, you can configure Postfix with the proper values used in the client. Keep it up. You'll get it figured out :)

-Brian
--
users@sogo.nu
https://inverse.ca/sogo/lists

Reply via email to