Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

configure postfix to relay host with yahoo

1,697 views
Skip to first unread message

Nahliel Steinberg

unread,
May 30, 2011, 12:45:42 PM5/30/11
to
Hello,

they are four days that i try to configure my postfix to run with smtp.mail.yahoo.com but don't running.

I search help on google.fr/linux and i found some solutions.

I configure postfix with stunnel


my /etc/stunnel/stunnel.conf : (when i try connect with telnet localhost 11125 i think is ok)

----------------------------------------

[smtp-tls-wrapper]
accept = 11125
client = yes
connect = smtp.mail.yahoo.com:smtps


My postfix configuration :
------------------------------------

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
append_dot_mydomain = no
readme_directory = no
myhostname = osiris
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = osiris, localhost.localdomain, , localhost
relayhost = [127.0.0.1]:11125
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
virtual_alias_maps = hash:/etc/postfix/virtual
##  SASL Settings
# This is going in to THIS server
# We need this
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtpd_sasl_local_domain = $myhostname
smtp_sasl_security_options = noanonymous
smtp_sasl_security_options =
smtp_sasl_tls_security_options = noanonymous
smtpd_sasl_application_name = smtpd

# Disable DNS Lookups
disable_dns_lookups = yes
#
smtp_generic_maps = hash:/etc/postfix/generic


I using mutt to send mail and postfix log say this : (nahliel is my local user, nahliel....@yahoo.fr is my mail address on yahoo, osiris is the hostname of my
laptop where postfix running)


May 30 18:25:32 osiris postfix/pickup[2146]: 57EE1281D9F: uid=1001 from=<nahliel>
May 30 18:25:32 osiris postfix/cleanup[2965]: 57EE1281D9F: message-id=<20110530162532.GA2926@osiris>
May 30 18:25:32 osiris postfix/qmgr[2332]: 57EE1281D9F: from=<nahliel@osiris>, size=468, nrcpt=1 (queue active)
May 30 18:25:33 osiris postfix/smtp[2967]: 57EE1281D9F: to=<postfi...@postfix.org>, relay=127.0.0.1[127.0.0.1]:11125, delay=1.2, delays=0.17/0.13/0.78/0.12, dsn=5.0.0, status=bounced (host 127.0.0.1[127.0.0.1] said: 530 authentication required - for help go to http://help.yahoo.com/help/us/mail/pop/pop-11.html (in reply to MAIL FROM command))
May 30 18:25:33 osiris postfix/cleanup[2965]: B24A0281DA0: message-id=<20110530162533.B24A0281DA0@osiris>
May 30 18:25:33 osiris postfix/bounce[2969]: 57EE1281D9F: sender non-delivery notification: B24A0281DA0
May 30 18:25:33 osiris postfix/qmgr[2332]: B24A0281DA0: from=<>, size=2353, nrcpt=1 (queue active)
May 30 18:25:33 osiris postfix/qmgr[2332]: 57EE1281D9F: removed
May 30 18:25:34 osiris postfix/smtp[2967]: B24A0281DA0: to=<nahliel@osiris>, relay=127.0.0.1[127.0.0.1]:11125, delay=0.79, delays=0.06/0/0.58/0.15, dsn=5.0.0, status=bounced (host 127.0.0.1[127.0.0.1] said: 530 authentication required - for help go to http://help.yahoo.com/help/us/mail/pop/pop-11.html (in reply to MAIL FROM command))

Log says authentification required

I configure my sasl_password table :

[smtp.mail.yahoo.com]:465            nahliel....@yahoo.fr:my_passwd(on yahoo)


i do : postmap sasl_password (to make hash)

I configure generic table : (and to postmap command hash to)
nah...@localdomain.local       nahliel....@yahoo.fr

Can you help me ?

May 30 18:25:34 osiris postfix/qmgr[2332]: B24A0281DA0: removed

Noel Jones

unread,
May 30, 2011, 12:55:00 PM5/30/11
to
On 5/30/2011 11:45 AM, Nahliel Steinberg wrote:
...
> relayhost = [127.0.0.1]:11125
...

> Log says authentification required
>
> I configure my sasl_password table :
>
> [smtp.mail.yahoo.com]:465 nahliel....@yahoo.fr:my_passwd(on yahoo)


The correct entry is the postfix relayhost setting (the
postfix nexthop), not the stunnel destination.

[127.0.0.1]:11125 username:password


-- Noel Jones

0 new messages