Issue Cron emails not sent using external SMTP server

JulianDot

Regular Pleskian
Server operating system version
AlmaLinux 9
Plesk version and microupdate number
18.0.79 #2
A server on Amazon EC2, using msmtp as external SMTP server

Cron emails per domains are not sent anymore since April 8, probably due to a Plesk upgrade which killed this feature.
Scheduled tasks are set to send an email every time a cron is running.

Technically, domains do not have an email server set (only msmtp globally on server).
The daily server emails are sent ( about upgrades, about updates, etc)

How to re-enable those emails ?
 
Hi, @JulianDot . Could you please check what's being logged at /var/log/maillog concerning the cron recipients? Also, what's the option selected for "Send notifications to" in the scheduled task settings? Thanks in advance.
 
Hi, @JulianDot . Could you please check what's being logged at /var/log/maillog concerning the cron recipients? Also, what's the option selected for "Send notifications to" in the scheduled task settings? Thanks in advance.
In var/log/mailog I have a 1-2 daily lines, like below

Code:
Jul 10 03:29:39 alma9 msmtp[1922847]: host=mail.myhost.com tls=on auth=on [email protected] from=alma9.myhost.com [email protected] mailsize=728 smtpstatus=250 smtpmsg='250 2.0.0 Ok: queued as D40A1220650' exitcode=EX_OK
Jul 10 03:31:36 alma9 msmtp[1946152]: host=mail.myhost.com tls=on auth=on [email protected] from=alma9.myhost.com [email protected] mailsize=12525 smtpstatus=250 smtpmsg='250 2.0.0 Ok: queued as A3C8E22081A' exitcode=EX_OK

Those are the daily system cron emails, related to server updates and Plesk updates, which works and are received

2. The option selected for "Send notifications to" is Every time
And all crons are returning some sort of text message
 
Thanks for the confirmation. Could you please check the remote mail server and confirm if there are any SMTP authentication attempts?

Also, could you please perform a manual test:

Code:
echo "Test" | msmtp [email protected]

and confirm if that email is received successfully.
 
Thanks for the confirmation. Could you please check the remote mail server and confirm if there are any SMTP authentication attempts?

Also, could you please perform a manual test:

Code:
echo "Test" | msmtp [email protected]

and confirm if that email is received successfully.
Confirmed, it works.
I tested it as root and as domain user from Plesk SSH terminal, it was delivered, i received emails on boith situations .

I presume there is a logical loophole somewhere, as technically, the domains on that server have no-email set
 
Thank you for the confirmation. I still didn't catch what's the option selected for "Send notifications to" - "Subscription owner" or "Other users". If it's "Subscription owner", could you please change it to "Other users" and define the address there.

Also, kindly confirm if you were able to check the logs of the remote SMTP server. Thanks in advance.
 
Thank you for the confirmation. I still didn't catch what's the option selected for "Send notifications to" - "Subscription owner" or "Other users". If it's "Subscription owner", could you please change it to "Other users" and define the address there.

Also, kindly confirm if you were able to check the logs of the remote SMTP server. Thanks in advance.
Send Notifications to is set to Other users and addreses are set.
I confirm that i have access to remote SMTP server logs.
 
Thank you for the confirmation. Do you have SELinux enabled on the Plesk server? If yes, please try temporarily switching it off or setting it in Permissive mode.

Code:
getenforce
setenforce 0
 
Thank you. I am afraid that I am out of guesses what might be causing the issue. I would suggest opening a ticket with Plesk support for further investigation on your server. To sign-in and open a ticket please go to:
If you got your license from a reseller, your reseller is in charge of providing you with support. You can raise the inquiry with them and they can forward it to our team for further processing. If the reseller does not provide support, here is an alternative to get support directly from Plesk:
 
Back
Top