Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 147501 - mail-mta/postfix-2.2.10 - notify_classes policy is broken
Summary: mail-mta/postfix-2.2.10 - notify_classes policy is broken
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Tuan Van (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-13 14:00 UTC by cilly
Modified: 2006-09-13 14:24 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cilly 2006-09-13 14:00:56 UTC
In main.cf, set the following settings:

   notify_classes = 2bounce, policy, resource, software

Verify that postconf lists the following:

   postconf|grep noti
     2bounce_notice_recipient = postmaster
     bounce_notice_recipient = postmaster
     delay_notice_recipient = postmaster
     error_notice_recipient = postmaster
     notify_classes = 2bounce, resource, software

The following entries appear in mail.log:

   Sep 13 19:35:30 machine postfix/cleanup[942]: B999EF40D5: 
      message-id=<84B71B2D-4275-4E8F-B4BD-8B9FCDADF039@someprovider.de>
   Sep 13 19:35:30 machine postfix/qmgr[915]: B999EF40D5: 
      from=<clientX@someprovider.de>, size=606, nrcpt=1 (queue active)
   Sep 13 19:35:31 machine postfix/smtp[943]: B999EF40D5: 
      to=<anyuser@domain.com>, relay=post.mailerX.de[192.67.198.2], 
      delay=1, status=bounced (host post.mailerX.de[192.67.198.2] 
      said: 550 5.0.0 Rejected by policy. (in reply to end of DATA command))
   Sep 13 19:35:31 machine postfix/cleanup[942]: A0EBAF4108: 
      message-id=<20060913173531.A0EBAF4108@mail.domain.mine.nu>
   Sep 13 19:35:31 machine postfix/qmgr[915]: A0EBAF4108: 
      from=<>, size=2429, nrcpt=1 (queue active)
   Sep 13 19:35:31 machine postfix/qmgr[915]: B999EF40D5: removed
   Sep 13 19:35:33 machine postfix/smtp[943]: A0EBAF4108: 
      to=<clientX@someprovider.de>, relay=post.mailerX.de[192.67.198.2], 
      delay=2, status=sent (250 2.0.0 k8DHZXKw023982 Message accepted for delivery)

Policy defined in notify_classes should track it and send an email to postmaster, but it doesn't.

mail-mta/postfix-2.2.10  USE="ipv6 mbox pam sasl ssl -cdb -hardened -ldap -mailwrapper -mysql -nis -postgres (-selinux) -vda"
Comment 1 Tuan Van (RETIRED) gentoo-dev 2006-09-13 14:24:25 UTC
(In reply to comment #0)

>    Sep 13 19:35:31 machine postfix/smtp[943]: B999EF40D5: 
>       to=<anyuser@domain.com>, relay=post.mailerX.de[192.67.198.2], 
>       delay=1, status=bounced (host post.mailerX.de[192.67.198.2] 
>       said: 550 5.0.0 Rejected by policy. (in reply to end of DATA command))

from postconf(5)
...
       policy Send the postmaster a transcript of the SMTP session when  a  client
              request  was  rejected  because of (UCE) policy. The notification is
              sent to the address specified with the  error_notice_recipient  con-
              figuration parameter (default: postmaster).
...

the way I understand it, notify_classes won't send postmaster anything if the other mail server bounce your mail. You can take this upstream since this is not caused by gentoo ebuild.