Hi,
I installed Plesk on a machine where I have to use an external smtp server.
I have set a cron job via the interface at /user/scheduler/tasks-list.
The cron execute a command as root and send an email in case of errors.
The problem is that the mail sender address is set by plesk as "root (cron daemon)" and for this reason the mail is bounced when sent to a gmail address.
To be more specific gmail bounce the email with the following error message:
How can I change the from address (in this case for the root user) and set it to something like [email protected]?
Thanks
I installed Plesk on a machine where I have to use an external smtp server.
I have set a cron job via the interface at /user/scheduler/tasks-list.
The cron execute a command as root and send an email in case of errors.
The problem is that the mail sender address is set by plesk as "root (cron daemon)" and for this reason the mail is bounced when sent to a gmail address.
To be more specific gmail bounce the email with the following error message:
Our system has detected that this message is 550-5.7.1 not RFC 5322 compliant: 550-5.7.1 'From' header is missing. 550-5.7.1 To reduce the amount of spam sent to Gmail, this message has been 550-5.7.1 blocked.
How can I change the from address (in this case for the root user) and set it to something like [email protected]?
Thanks