Re: [Exim] headers_add not working

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Avleen Vig
Data:  
Para: David Saez
CC: exim-users, ph10
Asunto: Re: [Exim] headers_add not working
On Thu, Nov 06, 2003 at 06:47:29PM +0100, David Saez wrote:
> It seems that headers_add inside a redirect router only works when
> the resulting message is redirected to a non local address (when it
> does not result in a local delivery and it goes to a dnslookup
> router). When the message is delivered locally (through an accept
> router), the header is not added to the message.


Untrue. THe following, on 4.24 FreeBSD (ports installation) adds a
header for me:

virtual_domains:
  driver = redirect
  allow_fail
  data = ${lookup mysql{select smtp from users,domains \
                where localpart = '${quote_mysql:$local_part}' \
                and domain = '${quote_mysql:$domain}' \
                and domains.enabled = '1' \
                and users.enabled = '1' \
                and users.domain_id = domains.domain_id}}
  headers_add = ${if >{$spam_score_int}{${lookup mysql{select users.sa_tag * 10 from users,domains \
                where localpart = '${quote_mysql:$local_part}' \
                and domain = '${quote_mysql:$domain}' \
                and users.on_spamassassin = '1' \
                and users.domain_id=domains.domain_id }{$value}fail}} {X-Spam-Flag: YES\n}{} }
  local_part_suffix = -*
  local_part_suffix_optional
  retry_use_local_part
  file_transport = virtual_delivery
  reply_transport = address_reply
  pipe_transport = address_pipe



--
Avleen Vig
Systems Administrator
Doing virtual domain hosting with Exim?
Check out Virtual Exim: http://silverwraith.com/vexim
(Click the banner, support development..)