Package: ssmtp
Version: 2.64-1
Severity: normal

Hello,

I am just hit by this bug. I understand the fix, and agree with the
problem described in #500454. 

However the error message:
"Fails to send any mail with send-mail: Cannot open mailhub:25"
is quite not helpful for debugging this.

The first solution would to have a more explicit error message:
"File /etc/ssmtp/ssmtp.conf exists but cannot be read, try adding $USER
to group mail" for example

The second solution, for a smoother upgrade is to split configuration
between ssmtp.conf and ssmtp.conf.secret. This require more work but
will allow people that don't use SMTP AUTH to keep the same ssmtp.conf
file and for the other to not disclose their information (they should be
stored in .secret). 

Then there is 3 cases:
- no Auth* keyword in ssmtp.conf -> keep it this way
- package ssmtp detect Auth* in ssmtp.conf -> either move these fields
  to .secret or issue a warning
- program ssmtp.conf detect that .secret exists but cannot be read ->
  error message "File /etc/ssmtp/ssmtp.conf.secret exists but cannot be
  read, try adding $USER to group mail"
  
Note that I run several servers that communicate with me only through
mails. Due to the inability to send mails with ssmtp, I was not able to
detect that there was a problem.

I think this is a quite big issue that should be upgraded to
severity:grave (but this is my POV).

Thanks for maintaining ssmtp, this is a great tool
Regards
Sylvain Le Gall

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

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

Versions of packages ssmtp depends on:
ii  debconf [debconf-2.0]         1.5.28     Debian configuration management sy
ii  libc6                         2.10.2-2   GNU C Library: Shared libraries
ii  libgnutls26                   2.8.5-2    the GNU TLS library - runtime libr

ssmtp recommends no packages.

ssmtp suggests no packages.

-- debconf information:
  ssmtp/overwriteconfig: true
  ssmtp/mailname:
* ssmtp/mailhub: smtp.gallu.homelinux.org
* ssmtp/fromoverride: true
* ssmtp/hostname: yocto.gallu.homelinux.org
* ssmtp/root: postmaster
* ssmtp/rewritedomain: gallu.homelinux.org
* ssmtp/port: 25





-- 
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