diff options
| author | bwarsaw | 2003-02-04 15:32:51 +0000 |
|---|---|---|
| committer | bwarsaw | 2003-02-04 15:32:51 +0000 |
| commit | 1af415f539730e67a268dc472e89b18d32e157c7 (patch) | |
| tree | 194b5f1dfc9f34f33c9feb5f91f2ef155aa3c114 | |
| parent | 959ed243dc0b557ee7ebc903594bae00d1264d4d (diff) | |
| download | mailman-1af415f539730e67a268dc472e89b18d32e157c7.tar.gz mailman-1af415f539730e67a268dc472e89b18d32e157c7.tar.zst mailman-1af415f539730e67a268dc472e89b18d32e157c7.zip | |
| -rw-r--r-- | Mailman/Handlers/SMTPDirect.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Mailman/Handlers/SMTPDirect.py b/Mailman/Handlers/SMTPDirect.py index fd64f6f1a..e1f832ea9 100644 --- a/Mailman/Handlers/SMTPDirect.py +++ b/Mailman/Handlers/SMTPDirect.py @@ -274,6 +274,14 @@ def verpdeliver(mlist, msg, msgdata, envsender, failures, conn): if msgdata.get('verp'): bmailbox, bdomain = Utils.ParseEmail(envsender) rmailbox, rdomain = Utils.ParseEmail(recip) + if rdomain is None: + # The recipient address is not fully-qualified. We can't + # deliver it to this person, nor can we craft a valid verp + # header. I don't think there's much we can do except ignore + # this recipient. + syslog('smtp', 'Skipping VERP delivery to unqual recip: %s', + recip) + continue d = {'bounces': bmailbox, 'mailbox': rmailbox, 'host' : DOT.join(rdomain), |
