Your software
My Mautic version is: 3.3.2
My PHP version is: 7.4.19
My Database type and version is: mysql Ver 15.1 Distrib 10.5.9-MariaDB, for Linux (x86_64) using readline 5.1
Email server : postfix owned (postfix / rspamd / clamd)
Your problem
My problem is: when I run Cron Jobs, it fails as soon as a fake email happens.
These errors are showing in the log:
# php /var/www/html/mautic/bin/console mautic:emails:send
In LoggerPlugin.php line 124:
[…..]
.
<< 250 2.0.0 Ok: queued as 8CFCD411080B
> > MAIL FROM:<marketing+bounce_60a3e5be63bb6932332778@mydomain.tld>
>> RCPT TO:<contact@fakedomain.tld>
>> DATA
<< 250 2.1.0 Ok
<< 450 4.1.2 <contact@fakedomain.tld>: Recipient address rejected: Domain not found
!! Expected response code 250/251/252 but got code "450", with message "450 4.1.2
<contact@fakedomain.tld>: Recipient address rejected: Domain not found " (code: 450)
<< 554 5.5.1 Error: no valid recipients !! Expected response code 354 but got code "554", with message "554 5.5.1 Error: no valid recipients " (code: 554) (code: 554)
Then I must restart cron job a lot, email is marked as “bounced” at the third time. Is there a way to mark email as bounced and continue automatically cronjob ? I’ve searched from postfix side, bounce mailbox works fine. I do not understand why cronjob crash when a fake domain happens ?
Thank you.
Romain