[Pkg-exim4-users] per-address filtering
Chris Purves
chris at northfolk.ca
Fri Jul 19 17:56:17 UTC 2013
On 2013-07-18 21:29, Chris Purves wrote:
> 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,
>
It seems I can't do what I want. I was able to get the per-address filter to trigger, but it won't allow me to change headers. That is only available for a system-wide filter.
--
Chris Purves
Visit my blog: http://chris.northfolk.ca
More information about the Pkg-exim4-users
mailing list