Community Discussions and Support
Error message "354 Start mail input; end with <CRLF>.<CRLF>" while sending a .pdf attachment

Creating a new mail with To:, Subject:, and simple text in the body, add an attachment like blabla.pdf (with or without choosing File Type: Adobe or Mailer decides) and sending this one results in an


"354 Start mail input; end with <CRLF>.<CRLF>"


and a message with "mail delivery failure". The mail remainsl in the queued folder.
Tried different filenames like "bla bla.pdf", "bla_bla.pdf" and "bla_bla.pdf" - same behavior.
Size of "blabla.pdf" is ~ 2MB.


Tried different pdf-files with different sizes as attachment - same behavior. Seems to be a problem with the .pdf-filetype and not with the files.


Attachment for example like "bla.txt" works fine...


"Filetype.pm" is untouched - no Adobe or pdf-entry is in there...


=================


Version Informations:
Pegasus Mail for Microsoft Windows
Copyright (C) 1992-2022, David Harris, all rights reserved
Electronic mail to support@pmail.gen.nz.


WinPMail version: Version 4.80.1028, Jan 16 2022, build ID 1028
Language resources: Standard UK English resources (EN,0,LL)
Extension Manager version: 1.14
Operating mode: Standalone
User name and ID: Single-user mode, 0
Windows version: 6.2
Windows flag word: 0
WINPMAIL.EXE directory: C:\Program Files (x86)\Internet\PMail\Programs
Home mailbox location: D:\PMAIL\MAIL
New mailbox location: D:\PMAIL\MAIL
TMP environment variable: H:\Temp
TEMP environment variable: H:\Temp
LAN-based SMTP support: N, N, N
NetWare MHS support: N, N, N
Built-in TCP/IP support: Enabled
-WINSOCK version: WinSock 2.0
-WINSOCK path: WSOCK32.DLL
Commandline:
Active -Z options: 32768
PMR variable: (None)
PML variable: (None)
MAI variable: (None)
NB variable: (None)
Autofiltering folders: 3 (3 active, 0 inactive)
Last new mail count: 21
Message size soft limit: 0 bytes
Message size hard limit: 0 bytes
Attachment size soft limit: 0 bytes
Attachment size hard limit: 0 bytes


Creating a new mail with To:, Subject:, and simple text in the body, add an attachment like blabla.pdf (with or without choosing File Type: Adobe or Mailer decides) and sending this one results in an &quot;354 Start mail input; end with &lt;CRLF&gt;.&lt;CRLF&gt;&quot; and a message with &quot;mail delivery failure&quot;. The mail remainsl in the queued folder. Tried different filenames like &quot;bla bla.pdf&quot;, &quot;bla_bla.pdf&quot; and &quot;bla_bla.pdf&quot; - same behavior. Size of &quot;blabla.pdf&quot; is ~ 2MB. Tried different pdf-files with different sizes as attachment - same behavior. Seems to be a problem with the .pdf-filetype and not with the files. Attachment for example like &quot;bla.txt&quot; works fine... &quot;Filetype.pm&quot; is untouched - no Adobe or pdf-entry is in there... ================= Version Informations: Pegasus Mail for Microsoft Windows Copyright (C) 1992-2022, David Harris, all rights reserved Electronic mail to support@pmail.gen.nz. WinPMail version: Version 4.80.1028, Jan 16 2022, build ID 1028 Language resources: Standard UK English resources (EN,0,LL) Extension Manager version: 1.14 Operating mode: Standalone User name and ID: Single-user mode, 0 Windows version: 6.2 Windows flag word: 0 WINPMAIL.EXE directory: C:\Program Files (x86)\Internet\PMail\Programs Home mailbox location: D:\PMAIL\MAIL New mailbox location: D:\PMAIL\MAIL TMP environment variable: H:\Temp TEMP environment variable: H:\Temp LAN-based SMTP support: N, N, N NetWare MHS support: N, N, N Built-in TCP/IP support: Enabled -WINSOCK version: WinSock 2.0 -WINSOCK path: WSOCK32.DLL Commandline: Active -Z options: 32768 PMR variable: (None) PML variable: (None) MAI variable: (None) NB variable: (None) Autofiltering folders: 3 (3 active, 0 inactive) Last new mail count: 21 Message size soft limit: 0 bytes Message size hard limit: 0 bytes Attachment size soft limit: 0 bytes Attachment size hard limit: 0 bytes

I have a number of comments.


Regarding the .PDF attachment sending issue, turn on internet session logging and the do a send. The resulting log file may provide a clue into what is happening.
To enable internet session logging go to Tools > Internet options. You will see the logging option at the bottom of the General tab.
The log file will be created in a subdirectory named TCPLogs located in your mailbox directory.


I assume you are running Windows XP or Windows 7. Anything newer should be a problem for Pegasus Mail to run from a subdirectory under C:\Program Files (x86).


Also, H:\Temp is an interesting choice for the location of the system temporary directory. Surprisingly, this does not necessarily reflect the directory being used by Pegasus Mail for its temporary files. That can be specified in PMAIL.INI and is not included in the content of the Info button. My point about this is to make sure that the Pegasus Mail temp directory is accessible.


I have a number of comments. Regarding the .PDF attachment sending issue, turn on internet session logging and the do a send. The resulting log file may provide a clue into what is happening. To enable internet session logging go to Tools &gt; Internet options. You will see the logging option at the bottom of the General tab. The log file will be created in a subdirectory named TCPLogs located in your mailbox directory. I assume you are running Windows XP or Windows 7. Anything newer should be a problem for Pegasus Mail to run from a subdirectory under C:\Program Files (x86). Also, H:\Temp is an interesting choice for the location of the system temporary directory. Surprisingly, this does not necessarily reflect the directory being used by Pegasus Mail for its temporary files. That can be specified in PMAIL.INI and is not included in the content of the Info button. My point about this is to make sure that the Pegasus Mail temp directory is accessible.

I assume you are running Windows XP or Windows 7. Anything newer should be a problem for Pegasus Mail to run from a subdirectory under C:\Program Files (x86).


Windows 6.2 is actually at least Windows 8, the default GetVersion() function of the Windows SDK only returns this value for all versions since Windows 8 unless using a workaround as IER does. IOW: There certainly is an issue with the install path unless all user account control is turned off.


[quote=&quot;pid:56980, uid:28772&quot;]I assume you are running Windows XP or Windows 7. Anything newer should be a problem for Pegasus Mail to run from a subdirectory under C:\Program Files (x86).[/quote] Windows 6.2 is actually at least Windows 8, the default GetVersion() function of the Windows SDK only returns this value for all versions since Windows 8 unless using a workaround as IER does. IOW: There certainly *is* an issue with the install path unless all user account control is turned off.
			Michael
--
IERenderer's Homepage
PGP Key ID (RSA 2048): 0xC45D831B
S/MIME Fingerprint: 94C6B471 0C623088 A5B27701 742B8666 3B7E657C
edited Sep 12 at 1:19 pm

Hi and thanks for reply
OS is Win 10 Pro, user account control is not turned off, active acc is an admin and "H:/temp" is the (sure, moved) window temp directory. You will find there a folder called "Pegasus Mail" with the imageCache and actual entries.
Location in Program Files(x86) remains from the OS upgrade for a long time smile


New testcycle with session log on / off


  • test with session logging off and .pdf as attachment (Filetype is unknown, Encoding is Mailer decides) - failure window and mail entry "Mail Delivery System"... mail ist still in queued folder
  • clean up queued mails and exit pegaus
  • restart pegasus, creating a new mail with this .pdf attachment (Filetype is unknown, Encoding is Mailer decides), send button pressed, switch session log on and pressed upload - it works with no failure - confused
  • switch session log off
  • exit pegaus
  • restart pegasus, creating a new mail with this .pdf attachment (Filetype is unknown, Encoding is Mailer decides), send button pressed, switch session log off and pressed upload - failure window and mail entry "Mail Delivery System"... mail ist still in queued folder

Hmm... the little network protocol window says... "Connection timeout (no response from host)" in the upper section. Sorry but I took a look at the trace part. But in SMTP settings the timeout parameter is 30 seconds as timeout parameter, in "General" the same and the error window comes ~2 seconds after "POP3: transferring 1%".

next try (with two mails, one without and one with attachment)

  • switch session log is off
  • restart pegasus, new mail without attachment and send button
  • new mail with the .pdf attachment and send button
  • upload both messages and works for both messages - are still on provider server and ready for download

last try (again with one mail and attachment)

  • switch session log is off
  • restart pegasus, new mail with the .pdf attachment, send button and upload - same error at stated above - what the hell...

Seems to be a too specific problem in my installation and I have to life with. A new clean installation with customizing takes a longer time - so no option for me.


Hi and thanks for reply OS is Win 10 Pro, user account control is not turned off, active acc is an admin and &quot;H:/temp&quot; is the (sure, moved) window temp directory. You will find there a folder called &quot;Pegasus Mail&quot; with the imageCache and actual entries. Location in Program Files(x86) remains from the OS upgrade for a long time (wasntme) #### New testcycle with session log on / off - test with session logging off and .pdf as attachment (Filetype is unknown, Encoding is Mailer decides) - failure window and mail entry &quot;Mail Delivery System&quot;... mail ist still in queued folder - clean up queued mails and exit pegaus - restart pegasus, creating a new mail with this .pdf attachment (Filetype is unknown, Encoding is Mailer decides), send button pressed, switch session log on and pressed upload - **_it works with no failure_** - confused - switch session log off - exit pegaus - restart pegasus, creating a new mail with this .pdf attachment (Filetype is unknown, Encoding is Mailer decides), send button pressed, switch session log off and pressed upload - failure window and mail entry &quot;Mail Delivery System&quot;... mail ist still in queued folder Hmm... the little network protocol window says... &quot;Connection timeout (no response from host)&quot; in the upper section. Sorry but I took a look at the trace part. But in SMTP settings the timeout parameter is _30 seconds_ as timeout parameter, in &quot;General&quot; the same and the error window comes ~2 seconds after &quot;POP3: transferring 1%&quot;. #### next try (with two mails, one without and one with attachment) - switch session log is off - restart pegasus, new mail without attachment and send button - new mail with the .pdf attachment and send button - upload both messages and works for both messages - are still on provider server and ready for download #### last try (again with one mail and attachment) - switch session log is off - restart pegasus, new mail with the .pdf attachment, send button and upload - same error at stated above - what the hell... Seems to be a too specific problem in my installation and I have to life with. A new clean installation with customizing takes a longer time - so no option for me.

But in SMTP settings the timeout parameter is 30 seconds as timeout parameter, in "General" the same and the error window comes ~2 seconds after "POP3: transferring 1%".


POP3 doesn't matter here, and 354 isn't an error (it means "start mail input" or "start with data" ), so without the contents of the SMTP log file there's no way to figure out what actually happens on trying to send the message - you could start with comparing a failing one with a successful one. If posting anything from a log here please make sure it doesn't contain any authentication data (starting with AUTH LOGIN up to something like "Authentication successful" ): Even though they look as being encrypted they are not, it's only a transport encoding being easily decoded by everyone knowing the SMTP rules.


[quote=&quot;pid:56986, uid:43703&quot;]But in SMTP settings the timeout parameter is 30 seconds as timeout parameter, in &quot;General&quot; the same and the error window comes ~2 seconds after &quot;POP3: transferring 1%&quot;.[/quote] POP3 doesn&#039;t matter here, and 354 isn&#039;t an error (it means &quot;start mail input&quot; or &quot;start with data&quot; ), so without the contents of the SMTP log file there&#039;s no way to figure out what actually happens on trying to send the message - you could start with comparing a failing one with a successful one. If posting anything from a log here please make sure it doesn&#039;t contain any authentication data (starting with AUTH LOGIN up to something like &quot;Authentication successful&quot; ): Even though they look as being encrypted they are not, it&#039;s only a transport encoding being easily decoded by everyone knowing the SMTP rules.
			Michael
--
IERenderer's Homepage
PGP Key ID (RSA 2048): 0xC45D831B
S/MIME Fingerprint: 94C6B471 0C623088 A5B27701 742B8666 3B7E657C

Hi Michael,


as I stated above, it works with "Create Internet session logs.." is ON and doesn't work with OFF.


There is no log file in "..\TCPLogs" with setting "OFF" only the little protocol window.
And with "ON" it works and the log file tells us nothing about an error.


Mysterious...


Tried "Encoding:" no encoding and "File Type" Acrobat... - same problem...


Last try with another provider... (session log is OFF)
Same problem, "SMTP: Sending message 1 of 1... 0%" and the "Network or Protocol Error" window appears with


10:24:03.795: << MAIL FROM:<xxx@xxxx.xxx> SIZE=1057618
10:24:03.872: >> 250 2.1.0 Ok
10:24:03.872: << RCPT TO:<xxx@xxxx.xxx>
10:24:06.890: >> 250 2.1.5 Ok
10:24:06.890: << DATA
10:24:06.902: >> 354 End data with <CR><LF>.<CR><LF>

For the few times I need to send attachments, the workaround with sending a litte mail before this one works for me.
Thanks for you time and replies - no further investigations, please close this thread...


Hi Michael, as I stated above, it works with &quot;Create Internet session logs..&quot; is ON and doesn&#039;t work with OFF. There is no log file in &quot;..\TCPLogs&quot; with setting &quot;OFF&quot; only the little protocol window. And with &quot;ON&quot; it works and the log file tells us nothing about an error. Mysterious... Tried &quot;Encoding:&quot; no encoding and &quot;File Type&quot; Acrobat... - same problem... **Last try with another provider... (session log is OFF)** Same problem, &quot;SMTP: Sending message 1 of 1... 0%&quot; and the &quot;Network or Protocol Error&quot; window appears with ```` 10:24:03.795: &lt;&lt; MAIL FROM:&lt;xxx@xxxx.xxx&gt; SIZE=1057618 10:24:03.872: &gt;&gt; 250 2.1.0 Ok 10:24:03.872: &lt;&lt; RCPT TO:&lt;xxx@xxxx.xxx&gt; 10:24:06.890: &gt;&gt; 250 2.1.5 Ok 10:24:06.890: &lt;&lt; DATA 10:24:06.902: &gt;&gt; 354 End data with &lt;CR&gt;&lt;LF&gt;.&lt;CR&gt;&lt;LF&gt; ```` For the few times I need to send attachments, the workaround with sending a litte mail before this one works for me. Thanks for you time and replies - no further investigations, please close this thread...

Since it might be of interest for later cases: Did you ever try to send a failing PDF as a zipped file, Sam?


Since it might be of interest for later cases: Did you ever try to send a failing PDF as a zipped file, Sam?
			Michael
--
IERenderer's Homepage
PGP Key ID (RSA 2048): 0xC45D831B
S/MIME Fingerprint: 94C6B471 0C623088 A5B27701 742B8666 3B7E657C

I am as curious as can be about how Pegasus Mail is functioning installed under \Program Files (x86) on Win 10 Pro. Thinking more about this, I guess it would work considering the mailbox location is somewhere else. @idw, would IER update?

Seems to be a too specific problem in my installation and I have to life with. A new clean installation with customizing takes a longer time - so no option for me.


It shouldn't take long at all. All settings are stored in the mailbox directory so a new single-user installation, told that the mailbox root directory is at D:\Pmail should just pick up all existing setting and email data. BUT, an unknown to me is whether the current installer will allow you to specify a mailbox location when doing a single-user installation. That would need to be determined.


I am as curious as can be about how Pegasus Mail is functioning installed under \Program Files (x86) on Win 10 Pro. Thinking more about this, I guess it would work considering the mailbox location is somewhere else. @idw, would IER update? [quote=&quot;pid:56986, uid:43703&quot;]Seems to be a too specific problem in my installation and I have to life with. A new clean installation with customizing takes a longer time - so no option for me.[/quote] It shouldn&#039;t take long at all. All settings are stored in the mailbox directory so a new single-user installation, told that the mailbox root directory is at D:\Pmail should just pick up all existing setting and email data. BUT, an unknown to me is whether the current installer will allow you to specify a mailbox location when doing a single-user installation. That would need to be determined.

would IER update?

I don't know, since it requests admin permission for installation I think so, but as there are valid reasons for not doing so I never tested. But there's something that would definitely not work anymore: The new feature of switching to and from built-in renderer since it requires to rename files in Pegasus Mail's \programs\ subdirectory. This would need a separate small commandline tool being launched with elevated access rights - IOW: It even doesn't work right now on LAN installations, guess I need to implement a respective error handling, so thanks for asking, Brian!


[quote=&quot;pid:57002, uid:28772&quot;]would IER update?[/quote] I don&#039;t know, since it requests admin permission for installation I think so, but as there are valid reasons for not doing so I never tested. But there&#039;s something that would definitely *not* work anymore: The new feature of switching to and from built-in renderer since it requires to rename files in Pegasus Mail&#039;s \programs\ subdirectory. This would need a separate small commandline tool being launched with elevated access rights - IOW: It even doesn&#039;t work right now on LAN installations, guess I need to implement a respective error handling, so thanks for asking, Brian!
			Michael
--
IERenderer's Homepage
PGP Key ID (RSA 2048): 0xC45D831B
S/MIME Fingerprint: 94C6B471 0C623088 A5B27701 742B8666 3B7E657C

Since it might be of interest for later cases: Did you ever try to send a failing PDF as a zipped file, Sam?



Hi Michael,
yes,
pdf packed in a zip file, mail created with this attachment, "File Type" is ZIP-Archive, so known by pegasus but the same error occurs when uploading.
Fyi,


  • program location is "C:\Program Files (x86)\Internet\PMail\Programs\winpm-32.exe"
  • single-user mailbox locates at "D:\Pmail\Mail"
  • AND the installation of pmail was manually, means after upgrating the OS to Win10, I copied the "old" program folder to the above mentioned location. The first installation was a very long time ago with Win95. All new versions are installed on top of the old one - i.e. copying from the installation zip-file to the corresponding folder.
  • IERenderer (2.7.2.1) is installed and makes updates without problems, means "Update IERenderer" is active (i.e. not grey) after the check at start, click at and download the zip, execute the setup and go.

Hope my english is good enough to explain all smile.


&gt; Since it might be of interest for later cases: Did you ever try to send a failing PDF as a zipped file, Sam? Hi Michael, yes, pdf packed in a zip file, mail created with this attachment, &quot;File Type&quot; is ZIP-Archive, so known by pegasus but the same error occurs when uploading. Fyi, - program location is &quot;C:\Program Files (x86)\Internet\PMail\Programs\winpm-32.exe&quot; - single-user mailbox locates at &quot;D:\Pmail\Mail&quot; - _AND_ the installation of pmail was manually, means after upgrating the OS to Win10, I copied the &quot;old&quot; program folder to the above mentioned location. The first installation was a very long time ago with Win95. All new versions are installed on top of the old one - i.e. copying from the installation zip-file to the corresponding folder. - IERenderer (2.7.2.1) is installed and makes updates without problems, means &quot;Update IERenderer&quot; is active (i.e. not grey) after the check at start, click at and download the zip, execute the setup and go. Hope my english is good enough to explain all (blush).

Sam,
I am still trying to understand how your installation is actually functioning so I have this request. Please look in your "C:\Program Files (x86)\Internet\PMail\Programs\" directory for a file named PMAIL.CFG and let me know if it exists.


Regarding the failure when sending a .pdf attachment, I am baffled. I do not understand why sending a message followed by sending another with the .pdf attached results in a successful send.


Sam, I am still trying to understand how your installation is actually functioning so I have this request. Please look in your &quot;C:\Program Files (x86)\Internet\PMail\Programs\&quot; directory for a file named PMAIL.CFG and let me know if it exists. Regarding the failure when sending a .pdf attachment, I am baffled. I do not understand why sending a message followed by sending another with the .pdf attached results in a successful send.

Hi Brian,


the mentioned file is still there.


66e6ba992cc31


And points to "D:\Pmail\Mail"... and as you see, very old. Created and last changed in 2002 and last moved 2017. The oldest file is "pmsort.exe" from 1993 smile


Hi Brian, the mentioned file is still there. ![66e6ba992cc31](serve/attachment&amp;path=66e6ba992cc31) And points to &quot;D:\Pmail\Mail&quot;... and as you see, very old. Created and last changed in 2002 and last moved 2017. The oldest file is &quot;pmsort.exe&quot; from 1993 :)
edited Sep 15 at 11:48 am

I have never seen a PMAIL.CFG file contain a path like "D:\Pmail\Mail". In a multi-user installation it will contain a path like "D:\Pmail\Mail~8" or "D:\Pmail\Mail~N", and in a single-user installation it won't exist at all, at least not with the current installer. I wonder if it did in older installers. That would explain why it exists like it does. It sure explains why your installation is working, so thank you for that.


I am sorry that I am still clueless about your .pdf attachment issue.


I have never seen a PMAIL.CFG file contain a path like &quot;D:\Pmail\Mail&quot;. In a multi-user installation it will contain a path like &quot;D:\Pmail\Mail\~8&quot; or &quot;D:\Pmail\Mail\~N&quot;, and in a single-user installation it won&#039;t exist at all, at least not with the current installer. I wonder if it did in older installers. That would explain why it exists like it does. It sure explains why your installation is working, so thank you for that. I am sorry that I am still clueless about your .pdf attachment issue.

I am sorry that I am still clueless about your .pdf attachment issue.

Hi Brian,
and I know I sent mails with attachment like .zip / .pdf long time ago. But now other methods / channels are possible and so I don't miss it smile . Tomorrow I have to send mails with attachments again and will use the providers website for this (like last week).


[quote=&quot;pid:57011, uid:28772&quot;]I am sorry that I am still clueless about your .pdf attachment issue.[/quote] Hi Brian, and I know I sent mails with attachment like .zip / .pdf long time ago. But now other methods / channels are possible and so I don&#039;t miss it :) . Tomorrow I have to send mails with attachments again and will use the providers website for this (like last week).
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft