Hi everyone,

 

I use 

transport_maps = proxy:pgsql:/etc/postfix/pgsql-transport.cf

 

to discard mails being send to  non-existing destinations inside my mta.

 

However I´ve installed amavis-newd to make some content-filtering
(spamassasin, clamav)

 

But since then my mails are filtered before the transport_maps decides it
should be descarted wich

is of course not very efficient.

 

How can I make the transport_maps to discard mails before they are send to
amavis?

 

Main.cf

 

transport_maps = proxy:pgsql:/etc/postfix/pgsql-transport.cf

 

smtpd_client_restrictions = permit_mynetworks, reject_unknown_hostname,
permit

 

smtpd_recipient_restrictions = permit_mynetworks, check_client_access
hash:/etc/postfix/check_client_access, reject_unauth_destination

 

content_filter = smtp-amavis:[127.0.0.1]:10024

 

 

 

Jan 31 15:01:53 mx2 postfix/smtpd[11774]: BA56839F93:
client=angel.tenet.odessa.ua[85.238.107.194]

Jan 31 15:02:16 mx2 postfix/cleanup[11896]: BA56839F93:
message-id=<[email protected]>

Jan 31 15:02:16 mx2 postfix/qmgr[8491]: BA56839F93:
from=<[email protected]>, size=3406, nrcpt=1 (queue active)

Jan 31 15:06:14 mx2 postfix/cleanup[11785]: 2AC2139F83:
message-id=<[email protected]>

Jan 31 15:06:14 mx2 amavis[12036]: (12036-01-17) Passed SPAM,
[85.238.107.194] [85.238.107.194] <[email protected]> ->
<[email protected]>, quarantine: 5/spam-5ZuuvQ6qc934.gz, Message-ID:
<[email protected]>, mail_id: 5ZuuvQ6qc934, Hits:
20.373, size: 3399, queued_as: 2AC2139F83, 7080 ms

Jan 31 15:06:14 mx2 postfix/smtp[12156]: BA56839F93:
to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024,
conn_use=17, delay=263, delays=26/231/0/7.1, dsn=2.0.0, status=sent (250
2.0.0 Ok: queued as 2AC2139F83)

Jan 31 15:06:14 mx2 postfix/qmgr[8491]: BA56839F93: removed

 

 

After the filter then it gets discarded…

 

 

Jan 31 15:06:14 mx2 postfix/smtpd[11744]: 2AC2139F83:
client=localhost[127.0.0.1]

Jan 31 15:06:14 mx2 postfix/cleanup[11785]: 2AC2139F83:
message-id=<[email protected]>

Jan 31 15:06:14 mx2 postfix/qmgr[8491]: 2AC2139F83:
from=<[email protected]>, size=4288, nrcpt=1 (queue active)

Jan 31 15:06:14 mx2 postfix/discard[11961]: 2AC2139F83:
to=<[email protected]>, relay=none, delay=0.11, delays=0.1/0.01/0/0,
dsn=2.0.0, status=sent (tesla.example.com)

Jan 31 15:06:14 mx2 postfix/qmgr[8491]: 2AC2139F83: removed

 

 

 

Thanks in advance,

 

 

ila.

VI Conferencia Internacional de Energía Renovable, Ahorro de Energía y 
Educación Energética
9 - 12 de Junio 2009, Palacio de las Convenciones
...Por una cultura energética sustentable
www.ciercuba.com

Reply via email to