This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to block (deny) email from ...

What is the easiest way to block all mails coming from a particular sender or domain. 
I'm receiving a lot of virus-containing messages from a particular person. The virusscanner intercepts them but it would be easier to just block this person.

Any ideas?


This thread was automatically locked due to age.
Parents Reply Children
  • nevermind, i figured it out.
  • Yes, well maybe you did figure it out..But don't you think it would be appropriate for you to post this solution properly here? Did you not receive any help for your problem?

    Thanks for your consideration of the rest of us.
  • I had to edit exim.conf and exim.conf-default as follows:

    sender_reject_recipients = @@lsearch*;/etc/exim.blocksenders

    changed to

    sender_reject_recipients = /etc/exim.blocksenders

    BUT - it does not work reliably. Some blocked domains still get through.
  • Can someone please give an explanation on what 
    @@lsearch* in the line sender_reject_recipients = @@lsearch*;/etc/exim.blocksenders does?
    And how can I block mail coming into a specific user.
    How can you block mail sent into the system ie. "Make your #$$% larger"   [:O]  
    That would be very handy to know how to filter out message content.

    Thanks
  • [[ Some block domains still getting through...]]

    If you have enabled SMTP Relay, try adding the following RBLs(if you don't have them already):

    bl.spamcop.net
    dnsbl.njabl.org
    list.dsbl.org
    multihop.dsbl.org
    relays.ordb.org
    orbz.gst-group.co.uk
    orbs.dorkslayers.com
    relays.osirusoft.com
    sbl.spamhaus.org
    relays.visi.com
    dialups.mail-abuse.org
    relays.mail-abuse.org
    dev.null.dk
    dialups.relays.osirusoft.com
    dun.dnsrbl.net
    bl.reynolds.net.au
    dynablock.wirehub.net
    inputs.relays.osirusoft.com
    proxy.relays.osirusoft.com
    relays.dorkslayers.com
    socks.opm.blitzed.org
    socks.relays.osirusoft.com
    spammers.v6net.org
    spamsites.relays.osirusoft.com
    spamsources.fabel.dk
    unconfirmed.dsbl.org
    ztl.dorkslayers.com

    Some of these RBLs shares/updates database or have links to one another making the filtering more effective.

    I hope this helps.

    jav
  • Thanks Greatly I will give your list a try.....