Maildev is running with
maildev -s 25
PHP is setup with
[mail function]
SMTP = 127.0.0.1
smtp_port = 25
When I try to send mail (with PHPMailer), I see that sendmail is running:
0784 www-data 20 0 4508 748 672 S 0.0 0.0 0:00.00 sh -c /usr/sbin/sendmail -t -i -oi [email protected]
And after about ~2mn, that process ends and mails are sent to Maildev.
I don't understand why mails are not directly sent to Maildev...