Re: [exim] Conditional forward suggestions

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Todd Lyons
Date:  
À: Gary Stainburn
CC: exim-users
Sujet: Re: [exim] Conditional forward suggestions
On Tue, Apr 29, 2014 at 2:32 AM, Gary Stainburn
<gary.stainburn@???> wrote:
> The code I tried was:
>
>   warn    condition     = ${if exists{/home/$local_part/.forward-disable}{yes}
> {no}}
>           add_header    =  X-forward-disable: yes
>           log_message   =  forwarding disabled for $local_part $home

>
> The problem is that the header always get set even when the file doesn't
> exist, but the log entry doesn't appear in the log file


Try using logwrite instead of log_message.

...Todd

--
The total budget at all receivers for solving senders' problems is $0.
If you want them to accept your mail and manage it the way you want,
send it the way the spec says to. --John Levine