Re: [exim] Spambox cfg for remote delivery?

Top Pagina
Delete this message
Reply to this message
Auteur: Jaap Winius
Datum:  
Aan: exim-users
Onderwerp: Re: [exim] Spambox cfg for remote delivery?
Quoting Heiko Schlittermann via Exim-users <exim-users@???>:

> Jaap Winius <jwinius@???> (Mi 18 Okt 2017 10:36:02 CEST):
>>
>> Hi folks,
>>
>> Some time ago I devised a spambox configuration for Exim so that messages
>> that are flagged by only one or two types of filters will end up in a user's
>> spambox. The transport looks like this:
>>
>> spambox:
>> debug_print = "T: appendfile for $local_part@$domain"
>> driver = appendfile
> …
>> mode = 0660
>> mode_fail_narrower = false
>>
>> It works like a treat, but now I want these messages to instead be sent to a
>> different account on a different mail server. For instance, a message for
>> bob@??? arriving at mx1.example.com and flagged as spam would be
>> sent on to bob-spam@???.
>>
>> Is such an Exim transport configuration possible? If so, what would it look
>> like?
>
> You need to modify the router that diverts the flagged messages
> to the spambox transport. Can you show us the router configuration?


Sure, it looks like this:

spambox:
debug_print = "R: local_user for $local_part@$domain"
driver = accept
domains = +local_domains
check_local_user
local_parts = ! root
transport = spambox
condition = "${if eq{$acl_m_spam}{match}{yes}{no}}"
cannot_route_message = Unknown user


Cheers,

Jaap