ESMTP Fails to send scans (BDAT Errors, Chunking, 6 Minute Timeout)
Problem
When performing a scan using SMTP (Scan to Email / Scan to Me) through an ESMTP relay, a number of issues can occur which may indicate chunking should be disabled for SMTP transmission in ScanPath:
BDAT command has been rejected by the server. The server responded: 451 4.7.0 Temporary server error. Please try again later. PRX5 . BDAT command has been rejected by the server. The server responded: 421 4.4.1 Connection timed out. Example SMTP Log. (Data chunks will fail at irregular intervals) [13:24:46.45] [SEND] [Data chunk of 8192 bytes sent.] [13:24:51.47] [RECV] 250 2.6.0 CHUNK received OK, 8192 octets\r\n [13:24:51.47] [SEND] BDAT 8192\r\n [13:24:51.47] [SEND] [Data chunk of 8192 bytes sent.] [13:24:56.48] [RECV] 250 2.6.0 CHUNK received OK, 8192 octets\r\n [13:24:56.48] [SEND] BDAT 8192\r\n [13:24:56.48] [SEND] [Data chunk of 8192 bytes sent.] [13:25:01.50] [RECV] 451 4.7.0 Temporary server error. Please try again later. PRX5 \r\n [13:25:01.51] [INFO] Error: BDAT command has been rejected by the server. The server responded: 451 4.7.0 Temporary server error. Please try again later. PRX5 . [13:25:01.51] [INFO] Will reset SMTP session. [13:25:01.51] [SEND] RSET\r\n
Solution
- Disable SMTP Chunking in ScanPath.
- Create the file SMTPDisableChunking.dat in the ScanPath Server installation folder. (Default is C:\Program Files (x86)\Prism Software\ScanPath\Server\).
- Edit SMTPDisableChunking.dat (using Notepad) and type in the value TRUE with no other text on the first line.
- Restart the ScanPath Server Service.
Applies To
ScanPath 3.4.x or higher.