I have this scheme:

The main server and several mail servers. Exim is installed on every mail server and there is a real send via phpmailer . Delivery logs are parsed to php and then recorded in mysql.

Recently, due to an increase in the volume of letters, the memory on mail servers began to run out.

How can I get Exim to immediately write the delivery log in mysql or at least run a php script in which to pass parameters?

    1 answer 1

    How do exim letters get through call to sendmail? This is the default behavior of php mail, as far as I know.

    You can configure php.ini to call your script, which will write to the database, then contact the Ex-mail sendmail.

    Setting up a php mail script: http://php.net/manual/ru/ref.mail.php
    Search current sendmail: which sendmail