[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#815342: MTA failures, if $config{subscription_domain} is defined as "" (empty string)



Package: debbugs
Severity: normal
Version: 2.6.0~exp1
Tags: patch

Hi,

On my debbugs instance, the variable

$gSubscriptionDomain = "";		# e.g. packages.qa.debian.org

is defined as an empty string.

With that setting, I have been experiencing regular MTA failures (that I have always ignored on bugs.x2go.org) when debbugs tries to send mails to <package>@<subscription_domain>.

The failures look like these:

"""
The message WAS NOT relayed to:
  <nxagent@>: [127.0.0.1] said:
501 5.1.3 id=18759-04-3 - Rejected by MTA on relaying, from MTA([127.0.0.1]:10025): 501 5.1.3 Bad recipient address syntax
"""

The issue can be solved in Debbugs::Recipient:

"""
diff --git a/Debbugs/Recipients.pm b/Debbugs/Recipients.pm
index ae739e9..36430e7 100644
--- a/Debbugs/Recipients.pm
+++ b/Debbugs/Recipients.pm
@@ -116,7 +116,8 @@ sub add_recipients {
      my $ref = $param{data}{bug_num};
      for my $p (splitpackages($param{data}{package})) {
          $p = lc($p);
-         if (defined $config{subscription_domain}) {
+         if (defined $config{subscription_domain} and
+             length $config{subscription_domain}) {
               my @source_packages = binary_to_source(binary => $p,
                                                      source_only => 1,
                                                     );
"""

Greets,
Mike
--

DAS-NETZWERKTEAM
mike gabriel, herweg 7, 24357 fleckeby
fon: +49 (1520) 1976 148

GnuPG Key ID 0x25771B31
mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/mailxchange/kronolith/fb.php?u=m.gabriel%40das-netzwerkteam.de

Attachment: pgpED3U8F_ZQd.pgp
Description: Digitale PGP-Signatur


Reply to: