[exim] mailman + exim + verp router

Top Page
Delete this message
Reply to this message
Author: Troy Engel
Date:  
To: Exim users list
Subject: [exim] mailman + exim + verp router
Following the excellent HowTo on the exim website, I have a mailman
2.1.5 + exim 4.43 server working without VERP in exim.

When I try to use the VERP router in exim.conf, I experience two weird
problems: 1) the email is "from" the real name of the machine, and 2)
the email is sent to my tertiary MX (offsite) host.

The machine has a real name foobar.domain.com, with a CNAME alias
lists.domain.com. Without the VERP router uncommented (below), email is
sent "from" lists.domain.com to the primary MX host, as intended. Both
names are listed in local_domains as well, and lists.domain.com is
inside mm_domains, as instructed.

The router:

mailman_verp_router:
   driver = dnslookup
   # we only consider messages sent in through loopback
   condition = ${if eq{$sender_host_address}{127.0.0.1} {yes}{no}}
   # we do not do this for traffic going to the local machine
   domains = !+local_domains:!+mm_domains
   ignore_target_hosts = <; 0.0.0.0; \
                            127.0.0.0/8; \
                            63.76.105.0/24
   # only the un-VERPed bounce addresses are handled
   senders = "*-bounces@*"
   transport = mailman_verp_smtp



The transport:

mailman_verp_smtp:
   driver = smtp
   # put recipient address into return_path
   return_path = \
    ${local_part:$return_path}+$local_part=$domain@${domain:$return_path}
   # must restrict to one recipient at a time
   max_rcpt = 1
   # Errors-To: may carry old return_path
   headers_remove = Errors-To
   headers_add = Errors-To: ${return_path}



Can anyone spot the problem why with VERP enabled, it's sending as if
it's from 'foobar.domain.com' (not the CNAME) and sending it out to my
3rd level MX?

thx,
-te

--
Troy Engel | Systems Engineer
Fluid, Inc | http://www.fluid.com