Maximilian Füsslin
New Pleskian
Is there a way to change the "from"-address for cron emails?
I get messages from "[email protected]", but I want from address to be "[email protected]".
My full FQDN is "subdomain.domain.com" (also the URI where the plesk panel is accessible) which is also my /etc/hostname and /etc/mailname.
Mail server is reachable from "mail.domain.com".
Is there a way to tell cron or postfix to use "[email protected]" as sender address for cron / system emails? Otherwise my personal gmail account rejects all cron mails, because (presumably) DMARC fails...
I know I can achieve this if I pipe the output of my cron scripts to the mail command:
But that feels kinda hacky...
Thank you for your help.
I get messages from "[email protected]", but I want from address to be "[email protected]".
My full FQDN is "subdomain.domain.com" (also the URI where the plesk panel is accessible) which is also my /etc/hostname and /etc/mailname.
Mail server is reachable from "mail.domain.com".
Is there a way to tell cron or postfix to use "[email protected]" as sender address for cron / system emails? Otherwise my personal gmail account rejects all cron mails, because (presumably) DMARC fails...
I know I can achieve this if I pipe the output of my cron scripts to the mail command:
Code:
* * * * * mycroncommand | mail -s "my subject" -r [email protected] [email protected]
But that feels kinda hacky...
Thank you for your help.
Last edited: