mailgraph icon indicating copy to clipboard operation
mailgraph copied to clipboard

Added support for postfix smtpd_smtp_proxy aka pre-queue filter

Open csware opened this issue 12 years ago • 2 comments

Without this fix all "back-"connects of the smtp_proxy are counted as received and also NOQUEUE-lines which signals that the proxy will be asked are also counted as received.

csware avatar May 28 '13 20:05 csware

This one's a bit old, but: I second the intention of this pull request, because mailgraph will count received mails twice in proxy filter mode.

Although there seems to be an error: In my opinion proxy-accept must not be counted. It's already there because of the first if clause. Both lines are matched by receiving one mail and counted with this change:

# first if clause
Aug  2 01:00:14 host postfix/smtpd[64923]: 5DF91100568: client=localhost[127.0.0.1], orig_client=client.private[XXX.XXX.XXX.XXX] 
# proxy-accept if clause
Aug  2 01:00:14 host postfix/smtpd[57674]: proxy-accept: END-OF-MESSAGE: 250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 5DF91100568; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<client.private>

I have no possibility to test this patch with postfix in content filter mode, but the regexps look really non intrusive.

forkedjensh avatar Aug 02 '16 10:08 forkedjensh

I am not using mailgraph since a long time... Anybody wants to take over maintenanceship? The starting point would be to create a fork and integrate all the pending (and senseful) patches.

schweikert avatar Aug 03 '16 19:08 schweikert