diff options
| author | bwarsaw | 2001-11-20 16:52:48 +0000 |
|---|---|---|
| committer | bwarsaw | 2001-11-20 16:52:48 +0000 |
| commit | 93396e396b526a027918960d7184f32e15f5841d (patch) | |
| tree | b1321c9dcbe567c91bae06fb9aec3071f612aee6 | |
| parent | 02f20e29ffc40af0a90329327a8cab52759093da (diff) | |
| download | mailman-93396e396b526a027918960d7184f32e15f5841d.tar.gz mailman-93396e396b526a027918960d7184f32e15f5841d.tar.zst mailman-93396e396b526a027918960d7184f32e15f5841d.zip | |
| -rw-r--r-- | Mailman/MTA/Postfix.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Mailman/MTA/Postfix.py b/Mailman/MTA/Postfix.py index 24f01d1fd..b6d7102f9 100644 --- a/Mailman/MTA/Postfix.py +++ b/Mailman/MTA/Postfix.py @@ -77,7 +77,7 @@ def addlist(mlist, db, fp): listname = mlist.internal_name() fieldsz = len(listname) + len('-request') # Seek to the end of the file, but if it's empty write the standard - # disclaimer. + # disclaimer, and the loop catch address. fp.seek(0, 2) if not fp.tell(): print >> fp, """\ @@ -86,6 +86,12 @@ def addlist(mlist, db, fp): # unless you know what you're doing, and can keep the two files properly # in sync. If you screw it up, you're on your own. """ + loopaddr = mm_cfg.MAILMAN_SITE_LIST + '-loop' + loopmbox = os.path.join(mm_cfg.DATA_DIR, 'owner-bounces.mbox') + print >> fp, '# For breaking bounce loops' + print >> fp, '%s: %s' % (loopaddr, loopmbox) + print >> fp + db[loopaddr + '\0'] = loopmbox + '\0' # The text file entries get a little extra info print >> fp, '# STANZA START:', listname print >> fp, '# CREATED:', time.ctime(time.time()) |
