[Reportbug-maint] Bug#825408: reportbug: detect and properly fail if the SMTP server rejected a recipient

Jonas Wielicki jonas at wielicki.name
Thu May 26 17:54:30 UTC 2016

Package: reportbug
Version: 6.6.6
Severity: minor

Dear Maintainer,

When submitting a bug report, I accidentally used port 25 instead of 587 when
configuring my mailserver. reportbug prompted for a password and authenticated
with the SMTP server. However, as it connected to port 25, my mailserver simply
refused relay access to bugs.debian.org, like it should. It accepted however
the RCPT TO for the copy sent to my own user.

So my mailserver said:

Mai 26 07:33:58 sol.sotecware.net postfix/smtpd[24290]: NOQUEUE: reject: RCPT
554 5.7.1 <submit at bugs.debian.org>: Relay access denied;
from=<jonas at wielicki.name> to=<submit at bugs.debian.org> proto=ESMTP

But reportbug did not fail at all, which together with the copy of the mail in
my inbox led me to think that everything was fine. Only after I checked my
server logs after several hours I realised what happened.

reportbug should detect if the mail server refuses one or more recipients and
report that problem properly. Ideally, reportbug would allow re-configuration
of the mailserver in this case and hint that using the SMTP port instead of the
Submission port may be the problem.

-- Package-specific info:
** Environment settings:

** /home/horazont/.reportbugrc:
reportbug_version "6.6.6"
mode standard
ui gtk2
email "jonas at wielicki.name"
smtphost "mail.sotecware.net:587"
smtpuser "jonas"

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.5.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages reportbug depends on:
ii  apt               1.2.12
ii  python-reportbug  6.6.6
pn  python:any        <none>

reportbug recommends no packages.

Versions of packages reportbug suggests:
pn  claws-mail                    <none>
pn  debconf-utils                 <none>
pn  debsums                       <none>
pn  dlocate                       <none>
ii  emacs24-bin-common            24.5+1-6+b2
ii  file                          1:5.25-2
ii  gnupg                         1.4.20-6
ii  python-gtk2                   2.24.0-4
ii  python-gtkspellcheck          3.0-1.1
pn  python-urwid                  <none>
ii  python-vte                    1:0.28.2-5+b1
ii  ssmtp [mail-transport-agent]  2.64-8
ii  xdg-utils                     1.1.1-1

Versions of packages python-reportbug depends on:
ii  apt               1.2.12
ii  file              1:5.25-2
ii  python-debian     0.1.27
ii  python-debianbts  2.6.0
pn  python:any        <none>

python-reportbug suggests no packages.

-- no debconf information

More information about the Reportbug-maint mailing list