Sometimes a big delay when using PHP mail ()

I have a website that processes orders from a Windows application. This works as follows:

  • The user clicks "Order Now" in the Windows application.
  • The application uploads the file with the POST to the PHP script
  • the script immediately calls the PHP mail () function (order is not stored in db)

This works great in most cases. However, sometimes a large delay occurs (several days). Customers call why the product is not yet delivered.

The following are delayed email headers:

The delay seems to occur here:

Received: (from @localhost)
by ---- (8.13.8/8.13.8/Submit) id o4J9lA7M031307;
Wed, 19 May 2010 11:47:10 +0200

I have repeatedly reported this problem to the web hosting that hosts my site. They say that the delay does not occur on their network (impossible).

, 26 , 7 , . , 19 ( )

, ( ) . 14 .

, ? PHP-, ? ( , 7 PHP-)

0
3

- PHP.

DNS, .

, MTA ( ), , 7 .

, ( ) .

, MTA 7 (!) - , 7 .

,

.

.

+1

- .

, , .

( , 6 ). , , , , , , , .

, , .

, , , , - .

0

:

X-Virus-Scanned: by amavisd-new

, . amavis ClamAV, Spamassassin ..... - .

Given the version number 8.13 on the SMTP web server, this is most likely Sendmail. If you have any access to the server, check the outgoing mail queue at "mailq", if you have rights, or administrators have this for you. Since the delay occurs somewhere inside the server, at some point it should be filled in the waiting sendmail queue, in which case the reason for the delay will also be called.

0
source

Source: https://habr.com/ru/post/1747982/


All Articles