Tony Finch wrote:
> On Sun, 11 Jun 2006, David Favor wrote:
>> This is incomplete. I've looked for hours trying to find the answer
>> to a "complete" version, have given up and am posting.
> 
> You want to do the funky stuff in a router rather than the transport. Use
> the errors_to option to do the VERP, and you can use local_part_suffix to
> implement your recipient address modification. Your header modifications
> are redundant - deliver-to, return-path, and errors-to are added by the
> final delivery agent (though only return-path is standard). Something
> like:
> 
> funky:
>   driver = accept
>   local_part_suffix = -request
>   senders = [EMAIL PROTECTED]
>   errors_to = [EMAIL PROTECTED]
>   transport = funky_smtp
> 
> If you don't have a fixed destination host, change it into a dnslookup
> router.
> 
> Tony.

What's odd is no matter what I do the 'envelope to' info when running
'exim -bt -d [EMAIL PROTECTED]' never changes. This was very confusing
as the actual delivered mail actually does change 'Deliver-To:'.

This sort of works. The errors_to in the router never sets the field, so
I added it to the transport.

Now I'm trying to figure out how to do something like:

    if ($the_original_local_part =~ /[EMAIL PROTECTED]/) {
       return_address = [EMAIL PROTECTED]
       return_path    = $return_address
       headers_add    = "Errors-To: $return_address"
    }

This is required so only recipients containing '[EMAIL PROTECTED]'
have their Return-Path and Errors-To munged to the VERP address.

Suggestions?

# router

verp_dnslookup:
   driver = dnslookup
   local_part_suffix = -request
   #local_part_suffix_optional
   #errors_to = [EMAIL PROTECTED]
   debug_print = "  local_part = $local_part"
   transport = remote_smtp
   no_more

# transport

remote_smtp:
   driver   = smtp
   max_rcpt = 1
   return_path    = [EMAIL PROTECTED]
   headers_remove = "To:Errors-To:"
   headers_add    = "To: [EMAIL PROTECTED]
                     Errors-To: [EMAIL PROTECTED]"

-- 
Can you feel like $1,000,000 all day, every day? Yes you can!
Your simple secrets are here - http://RadicalHealth.com/peak

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

Reply via email to