Re: [exim] Some help implementing SRS...

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Ian Eiloart
Dátum:  
Címzett: Exim Users
Tárgy: Re: [exim] Some help implementing SRS...

> On 17 Jul 2015, at 13:11, Marco Gaiarin <marcogaio@???> wrote:
>
>
>> ... please help me...
>
> Still I. Firstly, a question: because my ISP (libero.it) implemented
> recently DMARC, and listserver breaks it, someone is receiving my email?


Sorry, your email was moderated as a new member.

It seems you’ve been doing some work on this, and had partial success. But, I’m not clear on what the problem is.

You’re trying to get SRS sender address rewriting. You’ve got it working for some emails, but not others. Can you explain more clearly which addresses are not being rewritten? Is this router (below) the only relevant part of your configuration?

Do you have debug output that proves that the router is actually being called? It could be that an earlier router is handling the email.

> Still i'm here: reading around i've rewrited my routers, and now i've a
> generic one roughly as the first and second router:
> 
> .ifdef SRS_SECRETFILE
> srs_forward:
>   debug_print = "R: srs_forward for $local_part@$domain"
>   no_verify
>   senders = ! : ! *@+local_domains
>   address_data = ${run{/usr/bin/srs --secretfile=SRS_SECRETFILE --hashlength=SRS_HASHLENGTH --alias=SRS_DOMAIN $sender_address}{$value}{:defer: 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."
>   driver = redirect
>   repeat_use = false
>   allow_defer
>   data = ${quote_local_part:$local_part}@$domain
> .endif
> 
> That router match, the 'X-SRS:' header get added, but there's no sender rewriting. 
> 
> 
> Also, the ''reverse'' router:
> 
> .ifdef SRS_SECRETFILE
> srs_bounce:
>  debug_print = "R: srs_bounce for $local_part@$domain"
>  driver = redirect
>  domains = SRS_DOMAIN
>  allow_fail
>  allow_defer
>  local_part_prefix = srs0+ : srs0- : srs0= : srs1+ : srs1- : srs1=
>  caseful_local_part
>  address_data = ${run{/usr/bin/srs --reverse --secretfile=SRS_SECRETFILE --hashlength=SRS_HASHLENGTH --alias=SRS_DOMAIN ${local_part_prefix}${local_part}@${domain}}{$value}{:defer: SRS failure}}
>  data = ${if match{$address_data}{^ERROR}{:fail: Invalid SRS address}{${quote_local_part:${local_part:$address_data}}@${domain:$address_data}}}
> .endif
> 
> used in address testing mode works as expected (eg, ${address data} is
> gaio@???) but after that i get on logs:
> 
> 2015-07-17 12:45:54 1ZG1Sg-00016Z-LM == t1nkzjug=hz=sv.work.it=gaio@??? <SRS0=T1NKZJUg=HZ=sv.work.it=gaio@???> R=srs_bounce defer (-17): error in redirect data: domain missing or malformed in """@"
> 
> Please, help me...
> 
> -- 
>  Utopia aveva una sorella maggiore,
>  che si chiamava Verita` senza errore            (Nomadi)
> 
> 
> -- 
> ## 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/