[Pkg-exim4-users] local_sender_blacklist

Andreas Metzler ametzler at bebt.de
Thu Feb 11 16:02:42 UTC 2016


Iain Mac Donald <debian.lists at picturenow.co.uk> wrote:
> I am wanting to use /etc/exim4/local_sender_blacklist to block some
> persistent spammers but I'm not getting it to work.

> I am using exim4-daemon-heavy 4.80-7+deb7u1 on Wheezy.

> I have created the file /etc/exim4/local_sender_blacklist and for
> testing I have created one record:
> *@example.com

> I update the configuration and restarted Exim:
> update-exim4.conf
> /etc/init.d/exim4 restart

> I checked /var/lib/exim4/config.autogenerated and the
> local_sender_blacklist section is listed.

> Then on a completely different and unrelated server I use swaks to send
> an email which goes to the first server:
> swaks --to me at anotherdomain.com --from me at example.com

> The email is sent and received. Any suggestions as to where I have gone
> wrong?

It should work exactly this way.

swaks --to me at anotherdomain.com --from me at example.com -pipe "exim -bh nn.nn.nn.nn"
(with nn.nn.nn.nn as the remote IP) might offer further hints.

Here, it blocks with:
>>> check senders = ${if exists{/etc/exim4/local_sender_blacklist}{/etc/exim4/local_sender_blacklist}{}}
>>> example.com in "example.com"? yes (matched "example.com")
>>> me at example.com in "/etc/exim4/local_sender_blacklist"? yes (matched "*@example.com" in /etc/exim4/local_sender_blacklist)
>>> deny: condition test succeeded in ACL "acl_check_rcpt"
>>> end of ACL "acl_check_rcpt": DENY


cu Andreas
-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'




More information about the Pkg-exim4-users mailing list