Home › Forums › OS X Server and Client Discussion › Mail › Blacklisting
- This topic has 5 replies, 2 voices, and was last updated 19 years, 8 months ago by
woodgie.
-
AuthorPosts
-
August 24, 2005 at 11:37 am #362904
woodgie
ParticipantOK, I may well be missing a trick or two here, I am relativly new to all this.
Shouldn’t:
1) adding a line in /etc/amavisd.conf
read_hash(\%blacklist_sender, ‘/var/amavis/blacklist_sender’);
2) creating the file (with one eMail address per line)
/var/amavis/blacklist_sender
3) Reloading the mail service (sudo postfix reload)then prevent all eMails from the eMail addresses in /var/amavis/
blacklist_sender from being delivered.Writing that out, it does sound simplistic. Basically I’m trying to prevent eMail
from one particular address from being delivered. Nothing I seem to do stops
it from getting through.Help?
August 24, 2005 at 12:32 pm #362905maccanada
ParticipantHave you tried stopping and restarting the mail service (either through serveradmin or Server Admin)?
Have you tried just adding the address inside amavisd.conf?
I’ll try and test the white/blacklist files today…
August 24, 2005 at 12:49 pm #362906woodgie
ParticipantThanks guv.
Actually, all I did was $sudo postfix reload. I’ll try a service stop/start now.
If I wanted to add the individual eMail addresses directly in amavisd.conf where would I put them? I tried in the section:
$blacklist_sender_re = new_RE(
qr’^(bulkmail|offers|cheapbenefits|earnmoney|foryou|greatcasino)@’i,
qr’^(investments|lose_weight_today|market.alert|money2you|MyGreenCard)@’i,
qr’^(new\.tld\.registry|opt-out|opt-in|optin|saveonlsmoking2002k)@’i,
qr’^(specialoffer|specialoffers|stockalert|stopsnoring|wantsome)@’i,
qr’^(workathome|yesitsfree|your_friend|greatoffers)@’i,
qr’^(inkjetplanet|marketopt|MakeMoney)\d*@’i,
qr’^[email protected]’i #I added this one
);Obviously I didn’t really put “[email protected]”, I used a valid eMail address, but it’s still getting through. I well realise that my ‘qr’ statement may well be wrong. But I copied it from your whitelist example
August 25, 2005 at 8:02 am #362929woodgie
ParticipantOK, so I stopped and started the mail service but the mail isn’t blocked, it’s just tagged as junk mail. This is OK as at least that address is now being tagged, but if you get it blocked and I don’t, what is different..?
August 25, 2005 at 12:04 pm #362930maccanada
ParticipantCheck your final_spam_destiny value in amavisd.conf
Mine is set to REJECT…sounds like yours may be set to PASSAugust 26, 2005 at 5:52 am #362945woodgie
ParticipantAaaahhh, right. I can’t set it to REJECT as my boss is scared about losing mail to false positives.
Anyway, my immediate problem is solved. Many, many thanks and I’ve learned, always a good thing

-
AuthorPosts
- You must be logged in to reply to this topic.

Comments are closed