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

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>[^@]+)@.*$'

On Tue, Feb 26, 2002 at 01:27:49PM -0800, Dan Mick wrote:
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.
Indeed.
VERP_REGEXP = r'^(?P<bounces>[^+]+?)\+(?P<mailbox>[^=]+)=(?P<host>[^@]+)@.*$'
Thanks for pointing that out. I probably missed that at my last CVS update.
Works much better now: Feb 26 14:33:41 2002 (30145) test: sfsadfsadf@gandalf.merlins.org bounce score: 1.0
Note to Barry: some "can't parse string" or "unhappy with VERP string" instead of a traceback and a non obvious "IndexError: no such group" would be nice :-)
Thanks, Marc
Microsoft is to operating systems & security .... .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/ | Finger marc_f@merlins.org for PGP key
participants (2)
-
Dan Mick
-
Marc MERLIN