Re: [Exim] wanna ground specific mails from specific ips

Etusivu
Poista viesti
Vastaa
Lähettäjä: Andreas Metzler
Päiväys:  
Vastaanottaja: exim-users
Aihe: Re: [Exim] wanna ground specific mails from specific ips
On 2004-02-23 Martin Hierling <martin.hierling@???> wrote:
> what i want to do is the following:
> i have some internally used mail adresses (like helpdesk and trouble
> ticket) which gets lot of spam. So i want to redirect all mails to this
> specific adresses to dev/null.


> What i have till now:


> fh_grounded:
> driver = accept
> transport = spam_delivery
> condition =${lookup{$local_part@$domain}lsearch{/etc/exim/fh-luh-grounded}}


> that sends all mails listed in /etc/exim/fh-luh-grounded to my spam_devivery
> transport. But the good mails also. So i need some "if mail is not coming
> from mynet/24" condition also.


assuming mynet=12.34.45.78 something like this should work:

condition = ${if and {\
        {eq {${mask:$sender_host_address/24}}{12.34.45.78/24}}\
        {!eq \
         {${lookup{$local_part@$domain}lsearch{/etc/exim/fh-luh-grounded}}}\
         {}}\
        }{yes}{no}}


         cu and- untested -reas
--
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"