[ubuntu-dev] Bug#637169: /usr/bin/requestsync: default mail configuration fails (with a traceback)

Michael Bienia michael at bienia.de
Tue Aug 9 11:17:15 UTC 2011


On 2011-08-09 13:07:30 +1000, Karl Goetz wrote:
> Package: ubuntu-dev-tools
> Version: 0.101
> Severity: normal
> File: /usr/bin/requestsync
> 
> I've stepped all the way through requestsync, and the final step bombs out on me:
> Press [Enter] to continue or [Ctrl-C] to abort. 
> Connecting to fiordland.ubuntu.com:25 ...
> Traceback (most recent call last):
>   File "/usr/bin/requestsync", line 240, in <module>
>     mailBug(srcpkg, subscribe, status, title, report, options.keyid)
>   File "/usr/lib/pymodules/python2.6/ubuntutools/requestsync/mail.py", line 226, in mailBug
>     s.sendmail(myemailaddr, to, mail.encode('utf-8'))
>   File "/usr/lib/python2.6/smtplib.py", line 709, in sendmail
>     raise SMTPRecipientsRefused(senderrs)
> smtplib.SMTPRecipientsRefused: {'new at bugs.launchpad.net': (554, '5.7.1 <new at bugs.launchpad.net>: Relay access denied')}
> 
> I invoked the command as `requestsync -d sid -s -e freeciv oneiric`

That ubuntu-dev-tools version still has a SMTP server hardcoded which
isn't a MX for launchpad.net anymore. This got fixed in ubuntu-dev-tools
0.115 but didn't made it yet as a SRU into stable.

The relevant commit is
http://bazaar.launchpad.net/~ubuntu-dev/ubuntu-dev-tools/trunk/revision/996

Till then you can either use "requestsync --lp" to directly file the bug
through the LP API (if you have allowed the requestsync script to access
LP on your behalf). Alternatively you can try to set the UBUSMTP (or
DEBSMTP) environment variable to a current MX for launchpad.net (or any
other SMTP server which will accept your mail).

Michael





More information about the ubuntu-dev-team mailing list