[Mailman-Developers] Can't get VERP to do much

Dan Mick Dan Mick <dmick@utopia.West.Sun.COM>
Tue, 26 Feb 2002 13:27:49 -0800 (PST)


> On Mon, Feb 25, 2002 at 02:25:14PM -0800, Dan Mick wrote:
> > 
> > >   File "/var/local/mailman/Mailman/Queue/BounceRunner.py", line 112, in 
> > __verpbounce
> > >     if bmailbox <> mo.group('bounces'):
> > > IndexError: no such group
> > 
> > Are you sure Defaults.py is up-to-date?  Specifically,
> > VERP_FORMAT and VERP_REGEXP?
> 
> root@gandalf:/var/local/mailman/Mailman# grep VERP_ mm_cfg.py
> VERP_FORMAT = '%(bounces)s+%(mailbox)s=%(host)s'
> VERP_REGEXP = r'^[^+]+?\+(?P<mailbox>[^=]+)=(?P<host>[^@]+)@.*$'
> VERP_PASSWORD_REMINDERS = 1
> VERP_PERSONALIZED_DELIVERIES = 1
> VERP_DELIVERY_INTERVAL = 1
> 
> I left the defaults

Those aren't current.

# Note that your MTA /must/ be configured to deliver such an addressed message
# to mylist-bounces!
VERP_FORMAT = '%(bounces)s+%(mailbox)s=%(host)s'

# The second describes a regular expression to unambiguously decode such an
# address, which will be placed in the To: header of the bounce message by the
# bouncing MTA.  Getting this right is critical -- and tricky.  Learn your
# Python regular expressions.  It must define exactly three named groups,
# bounces, mailbox and host, with the same definition as above.  It will be
# compiled case-insensitively.
VERP_REGEXP = r'^(?P<bounces>[^+]+?)\+(?P<mailbox>[^=]+)=(?P<host>[^@]+)@.*$'