Sorry, i came back on that topic. SRS works, but some strage behaviour
happen.

My SRS rewriting router now have:

>  .ifdef SRS_SECRETFILE  
>  address_data = ${run{/bin/sh -c "/usr/bin/srs --secretfile=SRS_SECRETFILE 
> --hashlength=SRS_HASHLENGTH --alias=SRS_DOMAIN $sender_address 
> 2>/dev/null"}{$value}{:fail: SRS failure}}
>  errors_to = 
> ${quote_local_part:${local_part:$address_data}}@${domain:$address_data}
>  headers_add = "X-SRS: Sender address rewritten from <$sender_address> to 
> <${quote_local_part:${local_part:$address_data}}@${domain:$address_data}> by 
> $primary_hostname."
>  headers_remove = SRS_HEADERS_REMOVE
>  .endif

and if ${domain:$sender_address} == SRS_DOMAIN OR $sender_address is 'NULL'
(<>), exim sigsev (error 11) with not so much info:

        2015-09-02 12:27:18 1ZX5G9-0003so-EC <= em...@work.it 
H=oscontab1.pc.work.it ([127.0.0.1]) [10.4.2.105] P=esmtp S=3499568 
id=55e6cefe.5010...@work.it
        2015-09-02 12:41:22 queue run: process 15168 crashed with signal 11 
while delivering 1ZX5G9-0003so-EC

The trouble seems to come from 'errors_to =', if i comment out the line,
mail get queued flawlessy.

I've tried to alter that line as:

        errors_to = ${if 
eq{${domain:$address_data}}{SRS_DOMAIN}{fail}{${quote_local_part:${local_part:$address_data}}@${domain:$address_data}}}

because i've read:
        
http://www.exim.org/exim-html-current/doc/html/spec_html/ch-generic_options_for_routers.html

but seems that errors_to get unset, so there's no rewrite.
        

What i'm missing? Thanks.

-- 
  Son giunto alla conclusione che, almeno una volta nella vita, bisogna
  usare Windows a fondo, perché è un'esperienza che rende uomini.
  Almeno, io, dopo, ho sempre due palle così.           (Leonardo Serni)


-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to