Re: [exim] blocking mails from internet for some users.

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Tony Finch
Dátum:  
Címzett: wilson rodrigues
CC: exim-users
Tárgy: Re: [exim] blocking mails from internet for some users.
On Thu, 19 May 2005, wilson rodrigues wrote:

> A group defined in /etc/aliases is getting a lot of spam lately. Since
> this group is not suppose to receive any genuine mail from the
> internet, how can i block all external mails for this group ?
> internal mails addressed to this group should work though.


If you're using something like the default ACLs, I suggest moving

  accept  hosts         = +relay_from_hosts


accept authenticated = *

earlier, so that they appear after the require verify = sender clause.
Then you can add something like the following after your dnslist checks:

deny recipients = lsearch;/etc/exim/internal_only_addresses

Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}