Remote host closed connection in response to end of data (354 End data with <CR><LF>.<CR><LF> - writing message and terminating "."

postcd

New Member
Hello, i am sending an e-mail from my Linux server with Exim

and this is what i see on the unsent e-mail:

1282 SMTP>> DATA
31282 SMTP<< 250 2.1.0 Ok
31282 SMTP<< 250 2.1.5 Ok
31282 SMTP<< 354 End data with <CR><LF>.<CR><LF>
31282 SMTP>> writing message and terminating "."
31282 LOG: MAIN
31282 H=alt4.gmail-smtp-in.l.google.com [172.217.218.26]: Remote host closed connection in response to end of data
31282 SMTP(close)>>
Please what is the cause of this? It fails for numerous messages and starting to happen once i switched IP of the mailserver hostname and in SPF record. Then i switched back before around 10 hours, but still the problem.

The cause may be also something different.
The mail is sent by external server php script via SMTP and this server which outputs above warning do the sending. I think it worked before.
 


JulienCC

Active Member
Hello,

For some reason google decides to close the connection when they have the full mail in their possession. So there is probably something wrong with the mail or any of the filtering they use.

It could be
  • SPF related
  • DMARC related
  • blacklisted server IP
  • suspicious email header/content
  • email return-path header problem
I've also seen related cases online where a router was altering cleartext SMTP transactions.

Are you sure you DNS records are set properly ?
 

Members online


Top