Bug#597808: caff: SMTP errors are ignored

2014-02-24 Thread Guilhem Moulin
Well you've been warned :-P

[WARN] You have set arguments to pass to Mail::Mailer.  Better fix
your MTA.  (Also, Mail::Mailer's error reporting is non existant, so
it won't tell you when it doesn't work.)

As for the error itself, it has nothing to do with caff but with the
“non existence“ of Mail::Mailer's error reporting.  Rather than making 
caff (MIME::Entity, actually) use another SMTP client, it'd be easier to 
improve Mail::Mailer.

Cheers,
-- 
Guilhem.


signature.asc
Description: Digital signature


Bug#597808: caff: SMTP errors are ignored

2010-09-23 Thread Rimas Kudelis

Package: signing-party
Version: 1.1.3-1
Severity: important

Even when the SMTP server returns a 5xx error code, caff continues to 
transmit the email. See the log below.


[WARN] You have set arguments to pass to Mail::Mailer.  Better fix your
MTA.  (Also, Mail::Mailer's error reporting is non existant, so it won't
tell you whe
n it doesn't work.)
Net::SMTP  Net::SMTP(2.31)
Net::SMTPNet::Cmd(2.29)
Net::SMTP  Exporter(5.63)
Net::SMTPIO::Socket::INET(1.31)
Net::SMTP  IO::Socket(1.31)
Net::SMTPIO::Handle(1.28)
Net::SMTP=GLOB(0x9ad9c68)  220 smtp.example.org ESMTP Postfix
Net::SMTP=GLOB(0x9ad9c68)  EHLO localhost.localdomain
Net::SMTP=GLOB(0x9ad9c68)  250-smtp.example.org
Net::SMTP=GLOB(0x9ad9c68)  250-PIPELINING
Net::SMTP=GLOB(0x9ad9c68)  250-SIZE 78643200
Net::SMTP=GLOB(0x9ad9c68)  250-VRFY
Net::SMTP=GLOB(0x9ad9c68)  250-ETRN
Net::SMTP=GLOB(0x9ad9c68)  250-STARTTLS
Net::SMTP=GLOB(0x9ad9c68)  250-AUTH LOGIN PLAIN
Net::SMTP=GLOB(0x9ad9c68)  250-ENHANCEDSTATUSCODES
Net::SMTP=GLOB(0x9ad9c68)  250-8BITMIME
Net::SMTP=GLOB(0x9ad9c68)  250 DSN
Net::SMTP=GLOB(0x9ad9c68)  AUTH LOGIN
Net::SMTP=GLOB(0x9ad9c68)  334 
Net::SMTP=GLOB(0x9ad9c68)  
Net::SMTP=GLOB(0x9ad9c68)  334 
Net::SMTP=GLOB(0x9ad9c68)  
Net::SMTP=GLOB(0x9ad9c68)  235 2.7.0 Authentication successful
Net::SMTP=GLOB(0x9ad9c68)  MAIL FROM:r...@sugar
Net::SMTP=GLOB(0x9ad9c68)  553 5.7.1r...@sugar: Sender address
rejected: not owned by user m...@example2.org
Net::SMTP=GLOB(0x9ad9c68)  RCPT TO:some...@example3.org
Net::SMTP=GLOB(0x9ad9c68)  503 5.5.1 Error: need MAIL command
Net::SMTP=GLOB(0x9ad9c68)  DATA
Net::SMTP=GLOB(0x9ad9c68)  503 5.5.1 Error: need RCPT command
Net::SMTP=GLOB(0x9ad9c68)  User-Agent: caff 0.0.0.452 -
http://pgp-tools.alioth.debian.org/
Net::SMTP=GLOB(0x9ad9c68)  Subject: Your signed PGP key 
0x123456789ABCDEF0

Net::SMTP=GLOB(0x9ad9c68)  MIME-Version: 1.0
Net::SMTP=GLOB(0x9ad9c68)  X-Mailer: Mail::Mailer[v2.06] Net::SMTP[v2.31]
Net::SMTP=GLOB(0x9ad9c68)  Sender: Rimas Kudelism...@example2.org
Net::SMTP=GLOB(0x9ad9c68)  Reply-To: m...@example2.org
Net::SMTP=GLOB(0x9ad9c68)  Content-Type: multipart/encrypted;
Net::SMTP=GLOB(0x9ad9c68)   protocol=application/pgp-encrypted;
Net::SMTP=GLOB(0x9ad9c68)   boundary=--=_1281616228-5106-1
Net::SMTP=GLOB(0x9ad9c68)  To: some...@example3.org
Net::SMTP=GLOB(0x9ad9c68)  Content-Transfer-Encoding: 7bit
Net::SMTP=GLOB(0x9ad9c68)  From: Rimas Kudelism...@example2.org
Net::SMTP=GLOB(0x9ad9c68)  This is a multi-part message in MIME format...
Net::SMTP=GLOB(0x9ad9c68)  =_1281616228-5106-1
Net::SMTP=GLOB(0x9ad9c68)  Content-Type: application/pgp-encrypted;
name=signedkey.msg
Net::SMTP=GLOB(0x9ad9c68)  Content-Disposition: attachment;
filename=signedkey.msg
Net::SMTP=GLOB(0x9ad9c68)  Content-Transfer-Encoding: 7bit
Net::SMTP=GLOB(0x9ad9c68)  Version: 1
Net::SMTP=GLOB(0x9ad9c68)  =_1281616228-5106-1
Net::SMTP=GLOB(0x9ad9c68)  Content-Type: application/octet-stream;
name=msg.asc
Net::SMTP=GLOB(0x9ad9c68)  Content-Disposition: inline; 
filename=msg.asc

Net::SMTP=GLOB(0x9ad9c68)  Content-Transfer-Encoding: 7bit
Net::SMTP=GLOB(0x9ad9c68)  -BEGIN PGP MESSAGE-
Net::SMTP=GLOB(0x9ad9c68)  Version: GnuPG v1.4.10 (GNU/Linux)
SNIP
Net::SMTP=GLOB(0x9ad9c68)  -END PGP MESSAGE-
Net::SMTP=GLOB(0x9ad9c68)  =_1281616228-5106-1--
Net::SMTP=GLOB(0x9ad9c68)  .
Net::SMTP=GLOB(0x9ad9c68)  221 2.7.0 Error: I can break rules, too.
Goodbye.
Net::SMTP=GLOB(0x9ad9c68)  QUIT
Net::SMTP: Unexpected EOF on command channel at
/usr/share/perl5/Mail/Mailer/smtp.pm line 59


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

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=lt_LT.UTF-8, LC_CTYPE=lt_LT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages signing-party depends on:
ii  gnupg   1.4.10-4 GNU privacy guard - a free
PGP rep
ii  libc6   2.11.2-2 Embedded GNU C Library:
Shared lib
ii  libclass-methodmaker-perl   2.15-2   Perl module for creating
generic m
ii  libgnupg-interface-perl 0.42-3   Perl interface to GnuPG
ii  libmailtools-perl   2.06-1   Manipulate email in perl
programs
ii  libmime-tools-perl  5.428-1  Perl5 modules for
MIME-compliant m
ii  libterm-readkey-perl2.30-4   A perl module for simple
terminal
ii  libtext-template-perl   1.45-1   Text::Template perl module
ii  perl5.10.1-13Larry Wall's Practical
Extraction
ii  qprint  1.0.dfsg.2-2 encoder and decoder for
quoted-pri

Versions of packages signing-party recommends:
ii  dialog1.1-20100428-1 Displays user-friendly
dialog boxe
ii  exim4 4.72-1 metapackage to ease Exim
MTA (v4)
ii  exim4-daemon-light [mail- 4.72-1