Hallo Jan, On Wed, Apr 14, 2010 at 04:00:59PM +0200, Jan Groenewald wrote:
> I am using Ubuntu 6.06.2 with exim4-daemon-heavy 4.60-3ubuntu3.1. > I have several ACLs to block certain Subject lines and From addresses, > for example, in /etc/exim4/exim.conf, I have, under the acl_check_message > section: > > deny message = This subject line is not allowed at AIMS. \ > Please contact the mail administrator: [email protected] > log_message = Suspected SPAM subject line > regex = (?i)^Subject:: .*lottery.* > > This works fine for external users who mail us and then get a bounce > announcing that the message was blocked due to the subject line. > > For local users, however, the bounce also hits the ACL block, > so they get no notification that their message was not delivered :( > I have tried adding both of > > !senders = [email protected] > and > !hosts = localhost I don't have an explanation from your email why your local users do not get the error message but I have just three remarks/questions: 1. I wonder whether it is wise to try and use Exim as a spamfilter. It was not designed for that purpose. 2. Did you use exim -bh (or swaks with that option) to see how exim handles the acl in question? My experience is that you can debug most of the acl problems that way. 3. If you don't accept emails from mailer-daemons, how will your users know when their emails could not be delivered by an external mta? Regards Johann -- Johann Spies Telefoon: 021-808 4599 Informasietegnologie, Universiteit van Stellenbosch "And they asked him, saying, Master, we know that thou sayest and teachest rightly, neither acceptest thou the person of any, but teachest the way of God truly: Is it lawful for us to give tribute unto Caesar, or no? And he said unto them, Render therefore unto Caesar the things which be Caesar's, and unto God the things which be God's." Luke 20:21,22,25 -- ## List details at http://lists.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/
