#1486537 closed Bugs (fixed)
Attachments are sent with "bare LF's" - qmail rejects message
| Reported by: | nick.lock | Owned by: | |
|---|---|---|---|
| Priority: | 5 | Milestone: | 0.4-beta |
| Component: | SMTP connection | Version: | git-master |
| Severity: | normal | Keywords: | 0.4, svn, attachments, qmail, bare LF |
| Cc: |
Description
SVN trunk version r3325 - mails sent with attachments are rejected by our qmail SMTP server with a 451 return code for having "bare LF's". See the logs/smtp excerpt below:
[05-Mar-2010 13:59:02 +0000]: Recv: 220 smtp-1.mail.exa.net.uk ESMTP [Exa Networks Mail Cluster] [05-Mar-2010 13:59:02 +0000]: Send: EHLO proxy2.tcm.exa.net.uk [05-Mar-2010 13:59:02 +0000]: Recv: 250-smtp-1.mail.exa.net.uk [Exa Networks Mail Cluster] [05-Mar-2010 13:59:02 +0000]: Recv: 250-PIPELINING [05-Mar-2010 13:59:02 +0000]: Recv: 250-SIZE 62914560 [05-Mar-2010 13:59:02 +0000]: Recv: 250-STARTTLS [05-Mar-2010 13:59:02 +0000]: Recv: 250-AUTH LOGIN PLAIN [05-Mar-2010 13:59:02 +0000]: Recv: 250 8BITMIME [05-Mar-2010 13:59:02 +0000]: Send: MAIL FROM:<nicklock@xxx> [05-Mar-2010 13:59:02 +0000]: Recv: 250 ok [05-Mar-2010 13:59:02 +0000]: Send: RCPT TO:<NICKLOCK@xxx> [05-Mar-2010 13:59:02 +0000]: Recv: 250 ok [05-Mar-2010 13:59:02 +0000]: Send: DATA [05-Mar-2010 13:59:02 +0000]: Recv: 354 go ahead punk, make my day [05-Mar-2010 13:59:02 +0000]: Send: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=_2906924a873936cc176438747fc39608" Date: Fri, 05 Mar 2010 13:59:02 +0000 From: Nick Lock <nicklock@xxx> To: NICKLOCK <NICKLOCK@xxx> Subject: test Message-ID: <57851153b49325888617cca0dfabb2c3@xxx> X-Sender: nicklock@xxx User-Agent: RoundCube Webmail/0.4-beta (Exa Networks)^M [05-Mar-2010 13:59:02 +0000]: Send: --=_2906924a873936cc176438747fc39608 [05-Mar-2010 13:59:02 +0000]: Send: Content-Transfer-Encoding: 7bit [05-Mar-2010 13:59:02 +0000]: Send: Content-Type: text/plain; [05-Mar-2010 13:59:02 +0000]: Send: charset=UTF-8 [05-Mar-2010 13:59:02 +0000]: Send: [05-Mar-2010 13:59:02 +0000]: Send: test [05-Mar-2010 13:59:02 +0000]: Send: --=_2906924a873936cc176438747fc39608 [05-Mar-2010 13:59:02 +0000]: Send: Content-Transfer-Encoding: base64 [05-Mar-2010 13:59:02 +0000]: Send: Content-Type: application/x-archive ; [05-Mar-2010 13:59:02 +0000]: Send: name=libssl0.9.8_0.9.8g-16ubuntu3_i386.deb; [05-Mar-2010 13:59:02 +0000]: Send: charset=UTF-8 [05-Mar-2010 13:59:02 +0000]: Send: Content-Disposition: attachment; [05-Mar-2010 13:59:02 +0000]: Send: filename=libssl0.9.8_0.9.8g-16ubuntu3_i386.deb [05-Mar-2010 13:59:02 +0000]: Send: [05-Mar-2010 13:59:02 +0000]: Send: ITxhcmNoPgpkZWJpYW4tYmluYXJ5ICAgMTI1MjUxMTcxNiAgMCAgICAgMCAgICAgMTAwNjQ0ICA0 [05-Mar-2010 13:59:02 +0000]: Send: ICAgICAgICAgYAoyLjAKY29udHJvbC50YXIuZ3ogIDEyNTI1MTE3MTYgIDAgICAgIDAgICAgIDEw [05-Mar-2010 13:59:02 +0000]: Send: MDY0NCAgMTUwMTAgICAgIGAKH4sIAAAAAAACA+1963NU15Vvvlp/xY5CDSYlNXo/SJyM48fEM47t ... [05-Mar-2010 13:59:12 +0000]: Send: FbkiV+SKXJErckWuyBW5IlfkilyRK3JFrsgVuSJX5IpckStyRa7/V6//A06K/DMAQG8ACg== [05-Mar-2010 13:59:12 +0000]: Send: --=_2906924a873936cc176438747fc39608-- [05-Mar-2010 13:59:12 +0000]: Send: ^M . [05-Mar-2010 13:59:12 +0000]: Recv: 451 See http://pobox.com/~djb/docs/smtplf.html. [05-Mar-2010 13:59:12 +0000]: Send: RSET [05-Mar-2010 13:59:12 +0000]: Send: QUIT
Sending a mail without an attachment works correctly.
[05-Mar-2010 13:59:42 +0000]: Recv: 220 smtp-2.mail.exa.net.uk ESMTP [Exa Networks Mail Cluster] [05-Mar-2010 13:59:42 +0000]: Send: EHLO proxy2.tcm.exa.net.uk [05-Mar-2010 13:59:42 +0000]: Recv: 250-smtp-2.mail.exa.net.uk [Exa Networks Mail Cluster] [05-Mar-2010 13:59:42 +0000]: Recv: 250-PIPELINING [05-Mar-2010 13:59:42 +0000]: Recv: 250-SIZE 62914560 [05-Mar-2010 13:59:42 +0000]: Recv: 250-STARTTLS [05-Mar-2010 13:59:42 +0000]: Recv: 250-AUTH LOGIN PLAIN [05-Mar-2010 13:59:42 +0000]: Recv: 250 8BITMIME [05-Mar-2010 13:59:42 +0000]: Send: MAIL FROM:<nicklock@xxx> [05-Mar-2010 13:59:42 +0000]: Recv: 250 ok [05-Mar-2010 13:59:42 +0000]: Send: RCPT TO:<NICKLOCK@xxx> [05-Mar-2010 13:59:42 +0000]: Recv: 250 ok [05-Mar-2010 13:59:42 +0000]: Send: DATA [05-Mar-2010 13:59:42 +0000]: Recv: 354 go ahead punk, make my day [05-Mar-2010 13:59:42 +0000]: Send: MIME-Version: 1.0^M Content-Type: text/plain;^M charset=UTF-8^M Content-Transfer-Encoding: 7bit^M Date: Fri, 05 Mar 2010 13:59:42 +0000^M From: Nick Lock <nicklock@xxx>^M To: NICKLOCK <NICKLOCK@xxx>^M Subject: test^M Message-ID: <b1024efc0b374aa2ec42f5da7645def1@xxx>^M X-Sender: nicklock@xxx^M User-Agent: RoundCube Webmail/0.4-beta (Exa Networks)^M ^M test^M . [05-Mar-2010 13:59:42 +0000]: Recv: 250 ok 1267797582 qp 22720 by smtp-2.mail.exa.net.uk [05-Mar-2010 13:59:42 +0000]: Send: QUIT
RC version 0.3.1 does not cause this error message from our SMTP server ;)
Attachments (1)
Change History (6)
comment:1 Changed 3 years ago by alec
comment:2 Changed 3 years ago by nick.lock
PHP Version 5.2.6-3ubuntu4.5
Linux 1850-1 2.6.28-16-server #55-Ubuntu SMP Tue Oct 20 20:50:00 UTC 2009 i686
Full output from phpinfo() attached.
comment:3 Changed 3 years ago by alec
Please, check with this patch: http://pear.php.net/bugs/bug.php?id=17199
comment:4 Changed 3 years ago by alec
- Resolution set to fixed
- Status changed from new to closed
Patch applied in [cc2c8337]. Works for me.
comment:5 Changed 3 years ago by nick.lock
Have installed [be5133a6], and confirm that this issue is now fixed. Thanks!
Note: See
TracTickets for help on using
tickets.

PHP/OS versions?