Hi,
I understand that this is policyd list. Sorry for the noise but if
someone can advice, I really appreciate it.
It seems that postfix is not sending incoming emails through
content_filter to amavis. The strange thing is all outgoing emails are
scanned by amavis.
Here are the settings and test done.
In main.cf
----------- start --------------------
content_filter = amavis:[127.0.0.1]:10024
smtpd_recipient_restrictions = check_policy_service inet:127.0.0.1:10031,
check_sender_access hash:/etc/postfix/block_user,
permit_mynetworks,
permit_sasl_authenticated,
check_recipient_access mysql:/etc/postfix/mysql-virtual_recipient.cf,
reject_unauth_destination,
check_recipient_access hash:/etc/postfix/anti_spam_bypassed,
reject_non_fqdn_recipient,
reject_non_fqdn_sender,
reject_unknown_sender_domain,
reject_unknown_recipient_domain,
check_client_access hash:/etc/postfix/rbl_check_bypassed,
reject_rbl_client zen.spamhaus.org,
reject_rbl_client bl.spamcop.net,
check_client_access pcre:/etc/postfix/dspam_incoming
------------ end ---------------------
In master.cf
------------- start ---------------------
amavis unix - - - - 2 smtp
-o smtp_data_done_timeout=1200
-o smtp_send_xforward_command=yes
-o disable_dns_lookups=yes
-o max_use=20
127.0.0.1:10025 inet n - - - - smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_client_restrictions=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=127.0.0.0/8
-o strict_rfc821_envelopes=yes
-o
receive_override_options=no_unknown_recipient_checks,no_header_body_checks
-o smtpd_bind_address=127.0.0.1
--------------- end ---------------------
Did the following test on amavis directly and it is scanning the emails.
Plus it is only scanning emails for email accounts that wants scanning.
That is correct.
------------ start --------------------
[user]# telnet localhost 10024
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 [127.0.0.1] ESMTP amavisd-new service ready
mail from: <[email protected]>
250 2.1.0 Sender <[email protected]> OK
rcpt to: <[email protected]>
250 2.1.5 Recipient <[email protected]> OK
data
354 End data with <CR><LF>.<CR><LF>
to: [email protected]
subject: testing amavis
testing amavis
.
250 2.0.0 Ok, id=18588-07, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok:
queued as 1BCAA37259BE
quit
221 2.0.0 [127.0.0.1] amavisd-new closing transmission channel
Connection closed by foreign host.
------------ end ----------------------
I am just guessing postfix is not sending the incoming emails through
content_filter. Need advice on what else to check.
I understand that this is policyd list. Sorry for the noise but if
someone can advice, I really appreciate it.
P.V.Anthony
_______________________________________________
Users mailing list
[email protected]
http://lists.policyd.org/mailman/listinfo/users_lists.policyd.org