Re: [Exim] blocking senders who don't come from correct host

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Suresh Ramasubramanian
Fecha:  
A: Juha Saarinen
Cc: exim-users
Asunto: Re: [Exim] blocking senders who don't come from correct host
It's just what an access.db does in sendmail

Anything in the file blocked.senders gets bounced ...

domain.com    user1:user2 <= bounce user 1 and user 2 from domain, let others through


*    admin__    (bounce anything in the pattern admin__@* - virus sign)


spammer.com    *    (dont want anything from that domain)


*.spammer.com    *    (spambag has subdomains and keeps morphing them)


Use this along with another line -

prohibition_message = "${lookup{$prohibition_reason}lsearch {/usr/exim316/reject.messages}{${expand:$value}}}"

and the reject.messages file has stuff like


sender_reject:          Get Lost - No Spammers Allowed Here|Contact postmaster\@oyeindia\.com
host_accept_relay:      Host $sender_fullhost not allowed to relay|through $primary_hostname|Contact postmaster\@oyeindia\.com


    -s


ps - sorry about the line wrap - am using vi instead of my usual vim (telneted in)

    -s


*[Juha Saarinen on Mon, Mar 26, 2001 at 11:17:29PM +1200]:

>:: sender_reject = @@partial-lsearch*;/usr/exim316/blocked.senders
>::
>:: blocked.senders has
>::
>:: ebooksys.com            *
>:: bargaindog.com          *
>:: justsaywow.com          *
>:: *.passionup.com         *
>:: *.edirectnetwork.net    *
>:: aol.com         SuccessisGreat:Greatsuccess:Success101:Successisgood
>:: *                       admin__:default:fn

>
>
>If this is what I think it is, it looks particularly useful... Suresh, could
>you kindly expound on what you have done here?
>
>-- Juha