[Pkg-exim4-users] per-address filtering

Chris Purves chris at northfolk.ca
Fri Jul 19 00:29:06 UTC 2013


Hello,

I am attempting to synchronize a mailman mailing list with a facebook 
group.  Facebook will only accept an incoming email from an address of a 
facebook user that is a member of the group.  Typically those posting to 
the mailing list will not also be members of the facebook group.

To overcome this I have added the facebook group email address as a 
subscriber to the mailing list and an exim system wide filter that 
rewrites the "From" header to a facebook user.

This works, but the problem that I have is that the system wide filter 
re-writes the from header for all recipients, not just the mail going to 
facebook.

The exim documentation says that I can make a per-address filter by 
using a redirect router and gives the following example:

central_filter:
   check_local_user
   driver = redirect
   domains = +local_domains
   file = /central/filters/$local_part
   no_verify
   allow_filter
   allow_freeze

So I added the above to a file in /etc/exim4/conf.d/router and changed 
the file line to point to the previously working filter file and 
commented out the domains line, but from watching the mainlog I don't 
think the filter is being triggered.  I'm not sure if the problem is 
with the router or the filter.

I can provide more information, but I thought I would start with that 
before getting too detailed.

Thanks,

-- 
Chris Purves



More information about the Pkg-exim4-users mailing list