From: Richard Foley (no email)
Date: Wed Jul 02 2008 - 14:17:36 EDT
On Wednesday 02 July 2008 17:25:57 Otandeka Simon Peter wrote:
> Richard,
>
> Put those checks in main.cf i.e. on smtpd_rcpt_restrictions and
> smtpd_sender_restrictions so that you can reduce on the spam as you try to
> sort out amavisd.
>
I'm not exactly sure what you mean here, but I'll take another look at the
postfix docs and see if i can work something out. The following seems to
work quite well for me, but still allows quite a lot through.
smtpd_data_restrictions =
reject_unauth_pipelining,
permit
smtpd_sender_restrictions =
reject_non_fqdn_sender,
reject_unknown_sender_domain,
permit
smtpd_recipient_restrictions =
permit_sasl_authenticated,
permit_mynetworks,
reject_non_fqdn_hostname,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_unknown_sender_domain,
reject_unknown_recipient_domain,
reject_unauth_destination,
check_helo_access hash:/etc/postfix/helo_checks,
check_recipient_access pcre:/etc/postfix/recipient_checks,
check_client_access hash:/etc/postfix/client_checks,
check_sender_access hash:/etc/postfix/sender_checks,
reject_invalid_hostname,
# reject_rbl_client cbl.abuseat.org,
# reject_rbl_client list.dsbl.org,
# reject_rbl_client sbl.spamhaus.org,
# reject_rbl_client pbl.spamhaus.org
permit
> I actually managed to configure my postfix so well that I rarely get spam(
> one in a week). I have a combination of spamassasin+amavisd+ postfix
> although after many days playing with postfix config, I finally controlled
> spam.
>
I would love to see your postfix config. I get something like 10 - 15 spams a
day, normally. But with amavisd down, I'm getting that every hour now...
-- Richard Foley Ciao - shorter than aufwiedersehen http://www.rfi.net/ > On 7/2/08, Richard Foley <> wrote: > > > > On Wednesday 02 July 2008 15:51:32 Otandeka Simon Peter wrote: > > > Foley, > > > > > > The main trouble causer is amavisd. It should have failed to start up at > > > all. Check its status.It could be even corrupt. > > > > > > > I think you're probably right. I'll have to fix this quite soon too - at > > the > > moment I am being swamped with spam... > > > > > > -- > > > > Richard Foley > > Ciao - shorter than aufwiedersehen > > > > http://www.rfi.net/ > > > > > > > > > > > On 7/2/08, Richard Foley <> wrote: > > > > > > > > Hi folks, > > > > > > > > I haven't changed the config of my mail system for quite some time now, > > and > > > > all of a sudden my mail is not getting through. The hosts file is > > correct, > > > > and I've tried requeing (below), but this doesn't seem to help as the > > mail > > > > just gets stuck on the next pass, and I'm not sure what to try next, > > does > > > > anyone have any bright ideas, please? > > > > > > > > #> mailq > > > > > > > > 881D81417052 2088 Wed Jul 2 13:07:15 > > > > > > > > (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]: > > > > Connection > > > > refused) > > > > richard at localhost > > > > > > > > 107EA1416859 51879 Wed Jul 2 13:03:47 MAILER-DAEMON > > > > (connect to 127.0.0.1[127.0.0.1]: Connection > > > > refused) > > > > root > > > > > > > > > > > > #> postsuper -r ALL > > > > postsuper: Requeued: 18 messages > > > > > > > > #>mailq > > > > 6BF321416859 3853 Wed Jul 2 13:09:25 MAILER-DAEMON > > > > (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]: > > > > Connection > > > > refused) > > > > > > > > > > > > 8CA46141702C 77984 Wed Jul 2 13:09:27 root > > > > (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]: > > > > Connection > > > > refused) > > > > root > > > > > > > > #> cat /etc/hosts > > > > 127.0.0.1 localhost > > > > 195.10.223.184 blix.rfi.net > > > > > > > > #> tail /var/log/mail.log > > > > Jul 2 12:59:47 blix postfix/qmgr[2308]: 14C751415D7D: from=< > > > > >, > > > > size=872, nrcpt=1 (queue active) > > > > Jul 2 12:59:47 blix postfix/qmgr[2308]: 14C751415D7D: > > > > to=<richard at localhost>, > > > > orig_to=<>, relay=none, delay=-698, > > status=deferred > > > > (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]: > > > > Connection > > > > refused) > > > > > > > > I'm not getting anywhere fast - any help appreciated. > > > > > > > > > > > > -- > > > > Richard Foley > > > > Ciao - shorter than aufwiedersehen > > > > > > > > http://www.rfi.net/ > > > > > > > > > > > > > > > > -- > > > Simon Peter Otandeka > > > P.O.Box 3316 Kampala > > > tel. +256-782-801124 > > > > > > "The great questions of the day will not be decided by speeches and > > > resolutions of majorities… but by blood and iron" Chancellor Otto von > > > Bismarck Sept 1862 > > > > > > > > > Quote of the day "You can make up your body but not your brains". > > > > > > > > > -- > Simon Peter Otandeka > P.O.Box 3316 Kampala > tel. +256-782-801124 > > "The great questions of the day will not be decided by speeches and > resolutions of majorities… but by blood and iron" Chancellor Otto von > Bismarck Sept 1862 > > > Quote of the day "You can make up your body but not your brains". >
|
|
|