> > > > I know about this opttion but the problem is that I'm using maia > > mailguread and it uses amavisd-new 2.3 and your features come from > 2.5.x > > version > > Therefore I decided to do it on the postfix side through the filters. > > But I cannot understand how cannot distinguished the incoming and > > outcoming email oin the postfix if I kno that incoming emails must > comes > > from the public address range while outgoing comes from 10.0.0.0/8 > > address range > > > > an example here: > http://www.netoyen.net/postfix/filtoutin.txt > the example uses clamsmtpd but you can use another filter. > > in your case, replace: > > /./ FILTER filter:[127.0.0.1]:10586 > > with > > /./ FILTER disclaimer: >
Thanks, I think it works now as I wished. Can you please check my log if it's ok and correct please This is inbound traffic , mainly the first part with client host triggers: .... 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 altermime:[127.0.0.1]:10587; from=<[EMAIL PROTECTED]> to=<[EMAIL PROTECTED]> proto=SMTP helo=<test> 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> 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 Thanks peter