Package: painintheapt Version: 0.20150504-2~bpo8+1 Severity: minor Tags: patch
Dear Maintainer, I have postfix relays running on my servers and would prefer that painintheapt use /usr/lib/sendmail like many other monitoring scripts. In lieu of this, I've configured painintheapt to connect to localhost, however SMTP AUTH is required even when the username and password configuration options are missing. I've modified painintheapt to only attempt SMTP AUTH if username or password are non-empty. -- System Information: Debian Release: 8.1 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages painintheapt depends on: ii python3 3.4.2-2 ii python3-apt 0.9.3.11 ii python3-prettytable 0.7.2-3 ii python3-sleekxmpp 1.0~beta5-2 Versions of packages painintheapt recommends: ii cron [cron-daemon] 3.0pl1-127 painintheapt suggests no packages. -- Configuration Files: /etc/cron.d/painintheapt changed [not included] /etc/painintheapt.conf [Errno 13] Permission denied: u'/etc/painintheapt.conf' -- no debconf information -- Gerald Turner <gtur...@unzane.com> Encrypted mail preferred! OpenPGP: 4096R / CA89 B27A 30FA 66C5 1B80 3858 EC94 2276 FDB8 716D
Description: Allow SMTP AUTH to be optional Author: Gerald Turner <gtur...@unzane.com> --- painintheapt-0.20150504.orig/painintheapt +++ painintheapt-0.20150504/painintheapt @@ -170,7 +170,8 @@ def sendmail(config, table, count, host, s.set_debuglevel(True) s.starttls() s.ehlo_or_helo_if_needed() - s.login(username, password) + if username or password: + s.login(username, password) recipients = [r[1] for r in email.utils.getaddresses([to + "," + cc])] s.sendmail(from_, list(set(recipients)), msg.as_string()) s.quit()
signature.asc
Description: PGP signature