> /./ FILTER disclaimer: > > as the "[127.0.0.1]:10587" part won't be used. > > > Oct 25 00:37:57 testmonit postfix/smtpd[5609]: NOQUEUE: filter: RCPT > > from monit[10.1.100.1]: <monit[10.1.100.1]>: Client host trigger > > s FILTER smtp-amavis:[127.0.0.1]:10024; from=<[EMAIL PROTECTED]> to=<[EMAIL PROTECTED]> > > proto=SMTP helo=<test> > > looks ok if 10.1.100.1 is not in mynetworks. > > > Oct 25 00:37:58 testmonit postfix/smtpd[5609]: 2169165B4F: > > client=monit[10.1.100.1] > > Oct 25 00:38:02 testmonit postfix/cleanup[5621]: 2169165B4F: > > message-id=<[EMAIL PROTECTED]> > > Oct 25 00:38:02 testmonit postfix/qmgr[5596]: 2169165B4F: > from=<[EMAIL PROTECTED]>, > > size=345, nrcpt=1 (queue active) > > Oct 25 00:38:04 testmonit postfix/smtpd[5653]: connect from > > localhost[127.0.0.1] > > Oct 25 00:38:04 testmonit postfix/smtpd[5653]: 92E8E65B56: > > client=localhost[127.0.0.1] > > Oct 25 00:38:04 testmonit postfix/cleanup[5621]: 92E8E65B56: > > message-id=<[EMAIL PROTECTED]> > > Oct 25 00:38:04 testmonit postfix/smtpd[5653]: disconnect from > > localhost[127.0.0.1] > > Oct 25 00:38:04 testmonit postfix/qmgr[5596]: 92E8E65B56: > from=<[EMAIL PROTECTED]>, > > size=765, nrcpt=1 (queue active) > > Oct 25 00:38:04 testmonit amavis[14560]: (14560-05) Passed CLEAN, > MYNETS > > LOCAL [10.1.100.1] [10.1.100.1] <[EMAIL PROTECTED]> -> <[EMAIL PROTECTED]>, Message-ID: > > <[EMAIL PROTECTED]>, mail_id: TADAgZUVA4wW, Hits: -, > > 2410 ms > > Oct 25 00:38:04 testmonit postfix/smtp[5651]: 2169165B4F: > > to=<[EMAIL PROTECTED]>, relay=127.0.0.1[127.0.0.1], delay=18, s > > tatus=sent (250 2.6.0 Ok, id=14560-05, from MTA([127.0.0.1]:10025): > 250 > > Ok: queued as 92E8E65B56) > > ..... > > > > Outbound is clear > > > > what do you mean by outbound is clear? the above shows an "inbound" > mail > (passed through smtpd on 25 then amavis, then smtpd "after the > filter"). > > your outbound mail (client in mynetworks or user authenticated) should > trigger the altermime filter. >
Thank you I have changed the filter as you've described cause I'm using pipe So here again is my log. First messgae is outbound (10:07 )and second inbound (10:09). Outbound triggers altermime filter and inbound both. But the result is good cause discalimer apperas only in the outbound traffic and that's the goal Oct 27 10:07:30 testmonit postfix/smtpd[20464]: connect from localhost[127.0.0.1] Oct 27 10:07:30 testmonit postfix/smtpd[20464]: NOQUEUE: filter: RCPT from localhost[127.0.0.1]: <localhost[127.0.0.1]>: Client host triggers FILTER altermime :; from=<[EMAIL PROTECTED]> to=<[EMAIL PROTECTED]> proto=ESMTP helo=<xxx.xxx.xxx.xxx> Oct 27 10:07:31 testmonit postfix/smtpd[20464]: disconnect from localhost[127.0.0.1] Oct 27 10:07:31 testmonit postfix/qmgr[20436]: EDC2E65B53: from=<[EMAIL PROTECTED]>, size=741, nrcpt=1 (queue active) Oct 27 10:07:31 testmonit postfix/pickup[20435]: 662F365B59: uid=1007 from=<[EMAIL PROTECTED]> Oct 27 10:07:31 testmonit postfix/qmgr[20436]: 662F365B59: from=<[EMAIL PROTECTED]>, size=990, nrcpt=1 (queue active) Oct 27 10:07:31 testmonit postfix/pipe[20478]: EDC2E65B53: to=<[EMAIL PROTECTED]>, relay=altermime, delay=1, status=sent (test.biz) Oct 27 10:07:31 testmonit postfix/qmgr[20436]: EDC2E65B53: removed Oct 27 10:09:22 testmonit postfix/smtpd[20464]: connect from monit[10.1.100.1] Oct 27 10:09:34 testmonit postfix/smtpd[20464]: NOQUEUE: filter: RCPT from monit[10.1.100.1]: <monit[10.1.100.1]>: Client host triggers FILTER altermime:; fro m=<[EMAIL PROTECTED]> to=<[EMAIL PROTECTED]> proto=SMTP helo=<test> Oct 27 10:09:34 testmonit postfix/smtpd[20464]: NOQUEUE: filter: RCPT from monit[10.1.100.1]: <monit[10.1.100.1]>: Client host triggers FILTER smtp-amavis:[12 7.0.0.1]:10024; from=<[EMAIL PROTECTED]> to=<[EMAIL PROTECTED]> proto=SMTP helo=<test> Oct 27 10:09:34 testmonit postfix/smtpd[20464]: 4626B65B53: client=monit[10.1.100.1] Oct 27 10:09:38 testmonit postfix/cleanup[20510]: 4626B65B53: message-id=<[EMAIL PROTECTED]> Oct 27 10:09:38 testmonit postfix/qmgr[20436]: 4626B65B53: from=<[EMAIL PROTECTED]>, size=344, nrcpt=1 (queue active) Oct 27 10:09:42 testmonit postfix/smtpd[20513]: connect from localhost[127.0.0.1] Oct 27 10:09:42 testmonit postfix/smtpd[20513]: 9F8F665B56: client=localhost[127.0.0.1] Oct 27 10:09:42 testmonit postfix/cleanup[20510]: 9F8F665B56: message-id=<[EMAIL PROTECTED]> Oct 27 10:09:42 testmonit postfix/qmgr[20436]: 9F8F665B56: from=<[EMAIL PROTECTED]>, size=762, nrcpt=1 (queue active) Oct 27 10:09:42 testmonit postfix/smtpd[20513]: disconnect from localhost[127.0.0.1] Oct 27 10:09:42 testmonit amavis[14551]: (14551-06) Passed CLEAN, MYNETS LOCAL [10.1.100.1] [10.1.100.1] <[EMAIL PROTECTED]> -> <[EMAIL PROTECTED]>, Message- ID: <[EMAIL PROTECTED]>, mail_id: CFw7kTVI3lGN, Hits: -, 3383 ms Oct 27 10:09:43 testmonit postfix/smtp[20511]: 4626B65B53: to=<[EMAIL PROTECTED]>, relay=127.0.0.1[127.0.0.1], delay=14, status=sent (250 2.6.0 Ok , id=14551-06, from MTA([127.0.0.1]:10025): 250 Ok: queued as 9F8F665B56) Oct 27 10:09:43 testmonit postfix/qmgr[20436]: 4626B65B53: removed Oct 27 10:09:43 testmonit postfix/pipe[20517]: 9F8F665B56: to=<[EMAIL PROTECTED]>, relay=maildrop, delay=1, status=sent (test.biz) Oct 27 10:09:43 testmonit postfix/qmgr[20436]: 9F8F665B56: removed Thank you Br peter