Loading ...
Sorry, an error occurred while loading the content.
 

configure postfix to relay host with yahoo

Expand Messages
  • Nahliel Steinberg
    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
    Message 1 of 6 , May 30, 2011
      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.steinberg@... 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=<postfix-users@...>, 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.steinberg@...:my_passwd(on yahoo)


      i do : postmap sasl_password (to make hash)

      I configure generic table : (and to postmap command hash to)
      nahliel@...       nahliel.steinberg@...

      Can you help me ?









      May 30 18:25:34 osiris postfix/qmgr[2332]: B24A0281DA0: removed
    • Noel Jones
      On 5/30/2011 11:45 AM, Nahliel Steinberg wrote: ... The correct entry is the postfix relayhost setting (the postfix nexthop), not the stunnel destination.
      Message 2 of 6 , May 30, 2011
        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.steinberg@...: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
      • Nahliel Steinberg
        Tank s you Noel, i change it [127.0.0.1]:11125  username:password and i do hash : postmap sasl_passwd i restart postfix : /etc/init.d/postfix restart an i
        Message 3 of 6 , May 30, 2011
          Tank's you Noel,

          i change it


          [127.0.0.1]:11125  username:password

          and i do hash : postmap sasl_passwd

          i restart postfix : /etc/init.d/postfix restart

          an i try to send a mail

          log say this, and i think that authentification is ok :


          May 30 19:00:25 osiris postfix/pickup[3167]: 2CEF7281D9F: uid=1001 from=<nahliel>
          May 30 19:00:25 osiris postfix/cleanup[3197]: 2CEF7281D9F: message-id=<20110530170025.GA3171@osiris>
          May 30 19:00:25 osiris postfix/qmgr[3168]: 2CEF7281D9F: from=<nahliel@osiris>, size=476, nrcpt=1 (queue active)
          May 30 19:00:26 osiris postfix/smtp[3199]: 2CEF7281D9F: to=<regis.couraud@...>, relay=127.0.0.1[127.0.0.1]:11125, delay=1.2, delays=0.12/0.01/0.94/0.13, dsn=5.0.0, status=bounced (host 127.0.0.1[127.0.0.1] said: 553 From address not verified - see http://help.yahoo.com/l/us/yahoo/mail/original/manage/sendfrom-07.html (in reply to MAIL FROM command))
          May 30 19:00:26 osiris postfix/cleanup[3197]: 8901F281DA0: message-id=<20110530170026.8901F281DA0@osiris>
          May 30 19:00:26 osiris postfix/qmgr[3168]: 8901F281DA0: from=<>, size=2395, nrcpt=1 (queue active)
          May 30 19:00:26 osiris postfix/bounce[3201]: 2CEF7281D9F: sender non-delivery notification: 8901F281DA0
          May 30 19:00:26 osiris postfix/qmgr[3168]: 2CEF7281D9F: removed
          May 30 19:00:28 osiris postfix/smtp[3199]: 8901F281DA0: to=<nahliel@osiris>, relay=127.0.0.1[127.0.0.1]:11125, delay=1.7, delays=0.06/0/1.4/0.2, dsn=5.0.0, status=bounced (host 127.0.0.1[127.0.0.1] said: 501 Syntax error in arguments (in reply to MAIL FROM command))
          May 30 19:00:28 osiris postfix/qmgr[3168]: 8901F281DA0: removed

          I think the problem is the mail address sender ?

          postfix send my local address : nahliel@osiris and yahoo don't know this address ?

          May 30 19:00:25 osiris postfix/qmgr[3168]: 2CEF7281D9F: from=<nahliel@osiris>, size=476, nrcpt=1 (queue active)

          what must i do to rewrite the good address when my message send ?

          Sorry to my english, is poor





            -- Noel Jones
        • mouss
          ... is an invalid address. try again... you want ...
          Message 4 of 6 , May 30, 2011
            Le 30/05/2011 19:09, Nahliel Steinberg a écrit :
            > Tank's you Noel,
            >
            > i change it
            >
            >
            > [127.0.0.1]:11125 username:password
            >
            > and i do hash : postmap sasl_passwd
            >
            > i restart postfix : /etc/init.d/postfix restart
            >
            > an i try to send a mail
            >
            > log say this, and i think that authentification is ok :
            >
            >
            > May 30 19:00:25 osiris postfix/pickup[3167]: 2CEF7281D9F: uid=1001 from=<nahliel>
            > May 30 19:00:25 osiris postfix/cleanup[3197]: 2CEF7281D9F: message-id=<20110530170025.GA3171@osiris>
            > May 30 19:00:25 osiris postfix/qmgr[3168]: 2CEF7281D9F: from=<nahliel@osiris>, size=476, nrcpt=1 (queue active)

            <nahliel@osiris> is an invalid address. try again...
            you want <something@...> ...

            > May 30 19:00:26 osiris postfix/smtp[3199]: 2CEF7281D9F: to=<regis.couraud@...>, relay=127.0.0.1[127.0.0.1]:11125, delay=1.2, delays=0.12/0.01/0.94/0.13, dsn=5.0.0, status=bounced (host 127.0.0.1[127.0.0.1] said: 553 From address not verified - see http://help.yahoo.com/l/us/yahoo/mail/original/manage/sendfrom-07.html (in reply to MAIL FROM command))
            > May 30 19:00:26 osiris postfix/cleanup[3197]: 8901F281DA0: message-id=<20110530170026.8901F281DA0@osiris>
            > May 30 19:00:26 osiris postfix/qmgr[3168]: 8901F281DA0: from=<>, size=2395, nrcpt=1 (queue active)
            > May 30 19:00:26 osiris postfix/bounce[3201]: 2CEF7281D9F: sender non-delivery notification: 8901F281DA0
            > May 30 19:00:26 osiris postfix/qmgr[3168]: 2CEF7281D9F: removed
            > May 30 19:00:28 osiris postfix/smtp[3199]: 8901F281DA0: to=<nahliel@osiris>, relay=127.0.0.1[127.0.0.1]:11125, delay=1.7, delays=0.06/0/1.4/0.2, dsn=5.0.0, status=bounced (host 127.0.0.1[127.0.0.1] said: 501 Syntax error in arguments (in reply to MAIL FROM command))
            > May 30 19:00:28 osiris postfix/qmgr[3168]: 8901F281DA0: removed
            >
            > I think the problem is the mail address sender ?
            >
            > postfix send my local address : nahliel@osiris and yahoo don't know this address ?
            >
            > May 30 19:00:25 osiris postfix/qmgr[3168]: 2CEF7281D9F: from=<nahliel@osiris>, size=476, nrcpt=1 (queue active)
            >
            > what must i do to rewrite the good address when my message send ?
            >
            > Sorry to my english, is poor
            >
            >
            >
            >
            >
            > -- Noel Jones
            >
          • Lorens Kockum
            ... [...] ... Exactly. There s also a problem later on with the bounce, though. You can tell postfix to accept the default address generated by your MUA and
            Message 5 of 6 , May 30, 2011
              On Mon, May 30, 2011 at 06:09:43PM +0100, Nahliel Steinberg wrote:
              > May 30 19:00:25 osiris postfix/qmgr[3168]: 2CEF7281D9F: from=<nahliel@osiris>, size=476, nrcpt=1 (queue active)
              > May 30 19:00:26 osiris postfix/smtp[3199]: 2CEF7281D9F: to=<regis.couraud@...>, relay=127.0.0.1[127.0.0.1]:11125, delay=1.2, delays=0.12/0.01/0.94/0.13, dsn=5.0.0, status=bounced (host 127.0.0.1[127.0.0.1] said: 553 From address not verified - see http://help.yahoo.com/l/us/yahoo/mail/original/manage/sendfrom-07.html (in reply to MAIL FROM command))
              [...]
              >
              > I think the problem is the mail address sender ?

              Exactly. There's also a problem later on with the bounce, though.

              You can tell postfix to accept the default address generated by
              your MUA and rewrite it to the correct address. This is good
              for servers that just have to send out mail (mail from cron
              and things like that), since rewriting is simple; there's just
              one domain. This is what you seem to have tried to do in the
              logs above, but usually the machines that I configure like this
              send all their mail to a smarthost . . . You should configure
              "myorigin" in the configuration file, details at

              http://www.postfix.org/BASIC_CONFIGURATION_README.html

              You can configure postfix to accept only properly qualified
              addresses, and configure the program that you used to inject
              the mail to use the proper address. This is good for ISP
              mail servers that serve a lot of MUA clients (Thunderbird,
              Outlook...) that have different domains.

              Otherwise, you can do something more complicated, but you'll
              need to read

              http://www.postfix.org/ADDRESS_REWRITING_README.html

              Hope this helps.
            • Victor Duchovni
              ... http://www.postfix.org/SOHO_README.html#fantasy -- Viktor.
              Message 6 of 6 , May 31, 2011
                On Tue, May 31, 2011 at 01:23:23AM +0200, mouss wrote:

                > <nahliel@osiris> is an invalid address. try again...
                > you want <something@...> ...

                http://www.postfix.org/SOHO_README.html#fantasy

                --
                Viktor.
              Your message has been successfully submitted and would be delivered to recipients shortly.