Package: msmtp
Version: 1.4.19-1
Severity: normal

vixie-cron runs /usr/sbin/sendmail with the HOME environment variable
set to /.  Because msmtp looks for per-user configuration in
$HOME/.msmtp, it will fail to find the configuration file of the user
cron is sending mail on behalf of.  On a system that depends on
per-user configuration files, this makes cron incapable of sending
mail as any user (including root).

This problem manifests itself in the syslog as something like
  Feb 10 01:18:01 drake /USR/SBIN/CRON[26100]: (root) MAIL (mailed 8 bytes of 
output but got status 0x004e )
and, in fact, if you mimic how cron runs sendmail
  HOME=/ /usr/sbin/sendmail -i -FCronDaemon -oem amd...@mit.edu
sendmail (msmtp) immediately exits with
  sendmail: account default not found: no configuration file available
and exit code 78 (0x4e).

It's entirely possible this should also be considered a bug in cron.
I reported it against msmtp because it is an incompatibility with
sendmail that can easily be rectified (by retrieving the user's home
directory from the password database instead of relying on HOME to
have a sane value).


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.30-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages msmtp depends on:
ii  debconf [debconf-2.0]  1.5.28            Debian configuration management sy
ii  dpkg                   1.15.5.6          Debian package management system
ii  install-info           4.13a.dfsg.1-5    Manage installed documentation in 
ii  libc6                  2.10.2-5          Embedded GNU C Library: Shared lib
ii  libcomerr2             1.41.9-1          common error description library
ii  libgnutls26            2.8.5-2           the GNU TLS library - runtime libr
ii  libgsasl7              1.4.0-1           GNU SASL library
ii  libgssapi-krb5-2       1.8+dfsg~alpha1-3 MIT Kerberos runtime libraries - k
ii  libidn11               1.15-2            GNU Libidn library, implementation
ii  libk5crypto3           1.8+dfsg~alpha1-3 MIT Kerberos runtime libraries - C
ii  libkrb5-3              1.8+dfsg~alpha1-3 MIT Kerberos runtime libraries
ii  libntlm0               1.1-1             NTLM authentication library
ii  ucf                    3.0025            Update Configuration File: preserv

Versions of packages msmtp recommends:
ii  ca-certificates               20090814   Common CA certificates

msmtp suggests no packages.

-- debconf information excluded



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to