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

214061Invalid address and bounce from Exchange

Expand Messages
  • Eray Aslan
    Jan 31, 2007
      Hello,

      Postfix acts as a relay for our internal exchange server. The following
      message generates a bounce from exchange. Shouldn't
      reject_non_fqdn_sender catch these addresses?

      mail ~ # zgrep 503242E4DC /var/log/mail.log.1.gz
      Jan 29 16:50:46 mail postfix/smtpd[30273]: 503242E4DC:
      client=unknown[201.76.232.39]
      Jan 29 16:50:47 mail postfix/cleanup[30290]: 503242E4DC:
      message-id=<1d9701c743b4$034438c1$27e84cc9@kawanna>
      Jan 29 16:50:50 mail postfix/qmgr[7027]: 503242E4DC: from=<@...>,
      size=7570, nrcpt=1 (queue active)
      Jan 29 16:50:58 mail postfix/smtp[30291]: 503242E4DC:
      to=<user2@...>, relay=127.0.0.1[127.0.0.1]:10024, delay=13,
      delays=5.1/0/0.01/7.6, dsn=2.6.0, status=sent (250 2.6.0 Ok,
      id=29009-20, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as
      E85E09148D)
      Jan 29 16:50:58 mail postfix/qmgr[7027]: 503242E4DC: removed


      And the subsequent bounce:

      mail ~ # zgrep E85E09148D /var/log/mail.log.1.gz
      Jan 29 16:50:57 mail postfix/smtpd[30295]: E85E09148D:
      client=mail.caf.com.tr[127.0.0.1]
      Jan 29 16:50:58 mail postfix/cleanup[30290]: E85E09148D:
      message-id=<1d9701c743b4$034438c1$27e84cc9@kawanna>
      Jan 29 16:50:58 mail postfix/qmgr[7027]: E85E09148D: from=<@...>,
      size=8705, nrcpt=2 (queue active)
      Jan 29 16:50:58 mail amavis[29009]: (29009-20) Passed SPAM,
      [201.76.232.39] [201.76.232.39] <""@...> -> <user2@...>,
      Message-ID: <1d9701c743b4$034438c1$27e84cc9@kawanna>, mail_id:
      Z7DVRcBaggZK, Hits: 22.994, queued_as: E85E09148D, 7565 ms
      Jan 29 16:50:58 mail postfix/smtp[30291]: 503242E4DC:
      to=<user2@...>, relay=127.0.0.1[127.0.0.1]:10024, delay=13,
      delays=5.1/0/0.01/7.6, dsn=2.6.0, status=sent (250 2.6.0 Ok,
      id=29009-20, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as
      E85E09148D)
      Jan 29 16:50:58 mail postfix/smtp[30297]: E85E09148D:
      to=<user2@...>, relay=10.0.0.3[10.0.0.3]:25, delay=0.36,
      delays=0.12/0.01/0.22/0, dsn=5.5.4, status=bounced (host
      10.0.0.3[10.0.0.3] said: 501 5.5.4 Invalid Address (in reply to MAIL
      FROM command))
      Jan 29 16:50:58 mail postfix/smtp[30297]: E85E09148D:
      to=<user1@...>, relay=10.0.0.3[10.0.0.3]:25, delay=0.36,
      delays=0.12/0.01/0.22/0, dsn=5.5.4, status=bounced (host
      10.0.0.3[10.0.0.3] said: 501 5.5.4 Invalid Address (in reply to MAIL
      FROM command))
      Jan 29 16:50:58 mail postfix/bounce[30349]: E85E09148D: sender
      non-delivery notification: 7064C30E93
      Jan 29 16:50:58 mail postfix/qmgr[7027]: E85E09148D: removed


      mail ~ # postconf -n
      alias_database = hash:/etc/mail/aliases
      alias_maps = mysql:/etc/postfix/mysql-aliases.cf
      always_bcc = user1@...
      biff = no
      broken_sasl_auth_clients = yes
      command_directory = /usr/sbin
      config_directory = /etc/postfix
      content_filter = smtp-amavis:[127.0.0.1]:10026
      daemon_directory = /usr/lib/postfix
      debug_peer_level = 2
      default_destination_concurrency_limit = 10
      delay_warning_time = 2h
      home_mailbox = .maildir/
      html_directory = /usr/share/doc/postfix-2.4.20070121/html
      local_recipient_maps = $alias_maps unix:passwd.byname
      mail_owner = postfix
      mailbox_size_limit = 102400000
      mailq_path = /usr/bin/mailq
      manpage_directory = /usr/share/man
      mydestination = $myhostname, localhost.$mydomain, localhost
      myhostname = mail.caf.com.tr
      mynetworks = 10.0.0.3/32, 127.0.0.0/8, 10.0.2.23/32
      newaliases_path = /usr/bin/newaliases
      proxy_interfaces = 81.215.202.135
      queue_directory = /var/spool/postfix
      readme_directory = /usr/share/doc/postfix-2.4.20070121/readme
      receive_override_options = no_address_mappings
      recipient_bcc_maps = hash:/etc/postfix/recipient_bcc
      relay_domains = caf.com.tr, caf.local
      relay_recipient_maps = hash:/etc/postfix/relay_recipients
      relocated_maps = mysql:/etc/postfix/mysql-relocated.cf
      remote_header_rewrite_domain = domain.invalid
      sample_directory = /etc/postfix
      sendmail_path = /usr/sbin/sendmail
      setgid_group = postdrop
      show_user_unknown_table_name = no
      smtp_tls_CAfile = /etc/postfix/cacert.pem
      smtp_tls_session_cache_database = btree:/var/run/smtp_tls_session_cache
      smtp_use_tls = yes
      smtpd_discard_ehlo_keyword_address_maps = cidr:/etc/postfix/esmtp_access
      smtpd_error_sleep_time = 1
      smtpd_etrn_restrictions = reject
      smtpd_hard_error_limit = 10
      smtpd_helo_required = yes
      smtpd_recipient_restrictions =
      reject_non_fqdn_sender
      reject_non_fqdn_recipient
      reject_unlisted_recipient
      reject_unlisted_sender
      permit_sasl_authenticated
      permit_mynetworks
      reject_unauth_destination
      check_helo_access cidr:/etc/postfix/helo_checks_ip
      check_helo_access hash:/etc/postfix/helo_checks
      check_recipient_access hash:/etc/postfix/recipient_checks
      reject_invalid_helo_hostname
      check_sender_access pcre:/etc/postfix/valid_sender.pcre
      check_sender_access hash:/etc/postfix/sender_access
      reject_rbl_client zen.spamhaus.org
      check_sender_access regexp:/etc/postfix/filter_10024_catchall
      smtpd_sasl_auth_enable = yes
      smtpd_soft_error_limit = 5
      smtpd_tls_CAfile = /etc/postfix/cacert.pem
      smtpd_tls_auth_only = yes
      smtpd_tls_cert_file = /etc/postfix/mail.caf.com.tr-cert.pem
      smtpd_tls_key_file = /etc/postfix/mail.caf.com.tr-key.pem
      smtpd_tls_received_header = yes
      smtpd_tls_security_level = may
      smtpd_tls_session_cache_database = btree:/var/run/smtpd_tls_session_cache
      tls_random_source = dev:/dev/urandom
      transport_maps = hash:/etc/postfix/transport
      unknown_local_recipient_reject_code = 550
      virtual_alias_maps = mysql:/etc/postfix/mysql-virtual.cf
      virtual_gid_maps = static:1001
      virtual_mailbox_base = /
      virtual_mailbox_domains = zeplin.cn zeplin.com.cn zeplin.net
      robcol86.org
      virtual_mailbox_limit = 102400000
      virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-maps.cf
      virtual_minimum_uid = 1000
      virtual_transport = maildrop
      virtual_uid_maps = static:1001

      --
      Eray
    • Show all 12 messages in this topic