Wietse Venema via Postfix-users: > Victor Rubiella Monfort via Postfix-users: > > Hi, > > > > I want to prevent that sendmail milter rejections generates bounces > > messages. Reading sendmail documentation I see "-N" option: > > > > echo "HELLO" | sendmail -N 'never' t...@test.es; echo $? > > > > 0 > > > > Jun 8 13:51:30 server.test postfix/cleanup[597560]: 077616620F: > > milter-reject: END-OF-MESSAGE from localhost[127.0.0.1]: 5.7.1 Rejected > > for policy reason; from=<r...@server.test> to=<t...@test.es> > > Jun 8 13:51:30 server.test postfix/cleanup[597560]: 077616620F: > > to=<t...@test.es>, relay=none, delay=0.1, delays=0.1/0/0/0, dsn=5.7.1, > > status=bounced (Rejected for policy reason) > > > > non-delivery notification seems not executed (no logs related). But logs > > shows as "status=bounced". This generate confusions on post-log-anilisis. > > I can prenvent this "status=bounced" on logs (status=rejected)? > > This is not configurable. Perhaps your log analyzer could look for > messages that do not have an > > <old messsage ID>: sender non-delivery notification: <new message ID> > > record. Those messages were not returned to the sender.
Note that "sendmail -N" (and NOTIFY=NONE in RCPT TO comands) disable sender notifications only, not postmaster notifications. Those are configured with main.cf:notify_classes, and produce similar logging: <old messsage ID>: postmaster non-delivery notification: <new message ID> When Postfix logs the status= value, it logs 'bounced' for compatibility with logfile analyzers that were written when Postfix had no support to disable sender non-delivery notifications. Postfix 'status=' logging was inspred by RFC 3461, which uses 'failed' in non-delivery status notifications. I suppose that here there could be a parameter setting to log 'failed' instead of 'bounced'. I would not log the REASON in the status= field; the reason is logged in the text portion in the logfile record. Wietse _______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org