How to tell exim not to skip mail filter from <>


Enter Your Query:
Use '%' for wildcards and quotes for "exact phrases"


Top Level » Email » Spam
Top Level » Email » Exim

How to tell exim not to skip mail filter from <>Last Modified: Feb 21, 2011, 4:20 pm
Emails that are bounce from other mail severs will have a from value of <>
The filters are set to not block those emails.
If you still want those emails to be filtered, then run the following:

cd /usr/local/directadmin/data/templates/custom
cp ../filter_base .
perl -pi -e 's/^if error/#if error/' filter_base
echo "action=rewrite&value=filter" >> /usr/local/directadmin/data/task.queue


The filtering process includes the "SPAM Filters" and any email redirects for spamassassin.
SpamAssassin will still scan the emails, it would only be the redirection that is affected with the <> address.




If you wish to simply delete all emails with <> as the sender (note, this includes bounces and valid errors mail the mail system), add this to the top of your /etc/system_filter.exim file:

if $h_From: contains "<>"
then
         if $reply_address: contains "<>"
         then
                  seen finish
         endif
endif

 
Related Helpfiles
How to prevent bounce emails from leaving your server

2003 JBMC Software, Suite 173  3-11 Bellerose Drive, St Albert, AB  T8N 1P7  Canada.  Mon-Fri 9AM-5PM MST