Home Forums OS X Server and Client Discussion Mail Blacklisting

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #362904
    woodgie
    Participant

    OK, 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?

    #362905
    maccanada
    Participant

    Have 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…

    #362906
    woodgie
    Participant

    Thanks 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 Smile

    #362929
    woodgie
    Participant

    OK, 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..?

    #362930
    maccanada
    Participant

    Check your final_spam_destiny value in amavisd.conf
    Mine is set to REJECT…sounds like yours may be set to PASS

    #362945
    woodgie
    Participant

    Aaaahhh, 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 Smile

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.

Comments are closed