help requested with postfix as smtp client + auth

This is a discussion on help requested with postfix as smtp client + auth within the alt.comp.mail.postfix forums, part of the Mail Servers and Related category; Hi - I want to send out emails via my isp's smtp server. I added these lines to my /etc/...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.postfix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-24-2003
Matthew Wilson
 
Posts: n/a
Default help requested with postfix as smtp client + auth

Hi -

I want to send out emails via my isp's smtp server. I added these lines
to my /etc/postfix/main.cf:

relayhost = smtp.sbcglobal.yahoo.com

smtpd_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd

Then I created the /etc/postfix/sasl_passwd file:

smtp.sbcglobal.yahoo.com xxx:xxxxxxx

Then I restarted the postfix server.

I tried to send out an email, and it looks like postfix is not even
trying to do authentication. Here are some lines from
/var/log/mail/info:


Nov 24 14:22:21 frank postfix/master[8647]: terminating on signal 15
Nov 24 14:22:22 frank postfix/postfix-script: starting the Postfix mail
system
Nov 24 14:22:22 frank postfix/master[8832]: daemon started -- version
2.0.13
Nov 24 14:23:04 frank postfix/pickup[8837]: E93726EDEC: uid=501
from=<waxmop>
Nov 24 14:23:04 frank postfix/cleanup[8849]: E93726EDEC:
message-id=<20031124192304.GA8839@frank.overlook.homelinux .net>
Nov 24 14:23:05 frank postfix/nqmgr[8838]: E93726EDEC:
from=<waxmop@overlook.homelinux.net>, size=516, nrcpt=1 (queue active)
Nov 24 14:23:05 frank postfix/smtp[8851]: E93726EDEC:
to=<matthew.wilson@clev.frb.org>,
relay=smtp-sbc.mail.yahoo.com[66.163.171.137], delay=1, status=bounced
(host smtp-sbc.mail.yahoo.com[66.163.171.137] said: 530 authentication
required - for help go to
http://help.yahoo.com/help/us/sbc/ds...op/pop-11.html (in reply to
MAIL FROM command))
Nov 24 14:23:05 frank postfix/cleanup[8849]: B5A216EDEB:
message-id=<20031124192305.B5A216EDEB@frank.overlook.homel inux.net>
Nov 24 14:23:05 frank postfix/nqmgr[8838]: B5A216EDEB: from=<>,
size=2566, nrcpt=1 (queue active)
Nov 24 14:23:05 frank postfix/local[8854]: B5A216EDEB:
to=<waxmop@overlook.homelinux.net>, relay=local, delay=0, status=sent
("|/usr/bin/procmail -Y -a $DOMAIN")


What am I missing?
Reply With Quote
  #2 (permalink)  
Old 11-24-2003
Torsten Stauder
 
Posts: n/a
Default Re: help requested with postfix as smtp client + auth

Matthew Wilson wrote:
> Hi -
>
> I want to send out emails via my isp's smtp server. I added these lines
> to my /etc/postfix/main.cf:
>
> relayhost = smtp.sbcglobal.yahoo.com
>
> smtpd_sasl_auth_enable = yes
> smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
>
> Then I created the /etc/postfix/sasl_passwd file:
>
> smtp.sbcglobal.yahoo.com xxx:xxxxxxx
>
> Then I restarted the postfix server.
>
> I tried to send out an email, and it looks like postfix is not even
> trying to do authentication. Here are some lines from
> /var/log/mail/info:

[...]

Classical mistake :-) Correct your "smtpd_sasl_auth_enable" to
"smtp_sasl_auth_enable" and it will work (if your postfix supports sasl).
Don't forget running "postmap sasl_passwd" in your shell before
restarting the server for creating a new postfix-database-file on your
sasl-account(s).

Hint: smtpd_..... is used for authentification for incoming requests.

Reply With Quote
  #3 (permalink)  
Old 11-25-2003
Matthew Wilson
 
Posts: n/a
Default Re: help requested with postfix as smtp client + auth

In article <bptvoc$i3o$03$1@news.t-online.com>, Torsten Stauder wrote:
> "smtp_sasl_auth_enable" and it will work (if your postfix supports sasl).
> Don't forget running "postmap sasl_passwd" in your shell before
> restarting the server for creating a new postfix-database-file on your
> sasl-account(s).


I changed the smtpd to smtp, stoppedd postfix, ran postmap sasl_passwd,
then started postfix, and then sent another test email, and got a
different error message in /var/log/mail/info:

Nov 24 18:58:48 frank postfix/postfix-script: stopping the Postfix mail
system
Nov 24 18:58:48 frank postfix/master[8832]: terminating on signal 15
Nov 24 18:59:10 frank postfix/postfix-script: starting the Postfix mail
system
Nov 24 18:59:10 frank postfix/master[9695]: daemon started -- version
2.0.13
Nov 24 19:00:14 frank postfix/pickup[9700]: 1FCEC6EDEC: uid=501
from=<waxmop>
Nov 24 19:00:14 frank postfix/cleanup[9714]: 1FCEC6EDEC:
message-id=<20031125000014.GA9702@frank.overlook.homelinux .net>
Nov 24 19:00:14 frank postfix/nqmgr[9701]: 1FCEC6EDEC:
from=<waxmop@overlook.homelinux.net>, size=489, nrcpt=1 (queue active)
Nov 24 19:00:15 frank postfix/smtp[9716]: 1FCEC6EDEC:
to=<mwilson@sarcastic-horse.com>,
relay=smtp-sbc.mail.yahoo.com[217.12.12.194], delay=1, status=deferred
(Authentication failed: cannot SASL authenticate to server
smtp-sbc.mail.yahoo.com[217.12.12.194]: no mechanism available)
Nov 24 19:32:31 frank postfix/nqmgr[9701]: 1FCEC6EDEC:
from=<waxmop@overlook.homelinux.net>, size=489, nrcpt=1 (queue active)
Nov 24 19:32:33 frank postfix/smtp[9801]: 1FCEC6EDEC:
to=<mwilson@sarcastic-horse.com>,
relay=smtp-sbc.mail.yahoo.com[217.12.12.194], delay=1939,
status=deferred (Authentication failed: cannot SASL authenticate to
server smtp-sbc.mail.yahoo.com[217.12.12.194]: no mechanism available)


I suspect that maybe my postfix install doesn't support sasl. I have
cyrus-sasl installed, and the process is running. Any ideas?
Reply With Quote
  #4 (permalink)  
Old 11-25-2003
Torsten Stauder
 
Posts: n/a
Default Re: help requested with postfix as smtp client + auth

> relay=smtp-sbc.mail.yahoo.com[217.12.12.194], delay=1, status=deferred
> (Authentication failed: cannot SASL authenticate to server
> smtp-sbc.mail.yahoo.com[217.12.12.194]: no mechanism available)
> Nov 24 19:32:31 frank postfix/nqmgr[9701]: 1FCEC6EDEC:
> from=<waxmop@overlook.homelinux.net>, size=489, nrcpt=1 (queue active)
> Nov 24 19:32:33 frank postfix/smtp[9801]: 1FCEC6EDEC:
> to=<mwilson@sarcastic-horse.com>,
> relay=smtp-sbc.mail.yahoo.com[217.12.12.194], delay=1939,
> status=deferred (Authentication failed: cannot SASL authenticate to
> server smtp-sbc.mail.yahoo.com[217.12.12.194]: no mechanism available)
>
>
> I suspect that maybe my postfix install doesn't support sasl. I have
> cyrus-sasl installed, and the process is running. Any ideas?

HI!

Indeed, your postfix doesn't support sasl. I don't know which
distribution you're running linux on. In case of Debian, there's an
extra package (patch) for postfix. In case of suse or redhat - just
install a newer version!
Otherwise you have to compile postfix by your own. That's a little bit
tricky, because you have to have installed plenty of packages for that -
depending on what you want your postfix to support.


Reply With Quote
  #5 (permalink)  
Old 11-26-2003
Matthew Wilson
 
Posts: n/a
Default Re: help requested with postfix as smtp client + auth

I figured out the problem. I run Mandrake 9.2 and I had the cyrus-sasl
package installed, but Mandrake breaks out some portions of that
packages and stores them in other rpms. I ran urpmq sasl and added all
the libsasl2-plug rpms and then restarted postfix and everything worked
fine after that.


In article <bq0fbk$avd$07$1@news.t-online.com>, Torsten Stauder wrote:
>> relay=smtp-sbc.mail.yahoo.com[217.12.12.194], delay=1, status=deferred
>> (Authentication failed: cannot SASL authenticate to server
>> smtp-sbc.mail.yahoo.com[217.12.12.194]: no mechanism available)
>> Nov 24 19:32:31 frank postfix/nqmgr[9701]: 1FCEC6EDEC:
>> from=<waxmop@overlook.homelinux.net>, size=489, nrcpt=1 (queue active)
>> Nov 24 19:32:33 frank postfix/smtp[9801]: 1FCEC6EDEC:
>> to=<mwilson@sarcastic-horse.com>,
>> relay=smtp-sbc.mail.yahoo.com[217.12.12.194], delay=1939,
>> status=deferred (Authentication failed: cannot SASL authenticate to
>> server smtp-sbc.mail.yahoo.com[217.12.12.194]: no mechanism available)
>>
>>
>> I suspect that maybe my postfix install doesn't support sasl. I have
>> cyrus-sasl installed, and the process is running. Any ideas?

> HI!
>
> Indeed, your postfix doesn't support sasl. I don't know which
> distribution you're running linux on. In case of Debian, there's an
> extra package (patch) for postfix. In case of suse or redhat - just
> install a newer version!
> Otherwise you have to compile postfix by your own. That's a little bit
> tricky, because you have to have installed plenty of packages for that -
> depending on what you want your postfix to support.
>
>

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:12 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0