Re: nullmailer, cron email & email provider requiring appropriate "From" field
On Sat, Jan 31, 2015 at 09:03:44PM +0300, Johannes Graumann wrote:
> Hello,
>
> I have setup nullmailer on a debian stable system of mine to forward email
> to the smtp server of my mykolab.com account. That account requires that
> "From" in the header matches the account email.
> Cron on my system insists to send email (as e.g. produced by a logcheck cron
> job) using "From" as derived from the user the executed script runs under
> ("logcheck", in this case) and the provider accordingly refuses the email.
>
> Googling leeds to the conclusion, that while cron on debian (stable) is
> accepting "MAILTO" in crontab, it doesn't accept "MAILFROM", which other
> distributions (Centos?) seem to have ...
>
> Can anyone propose an elegant way to solve this issue?
>
> Thank you for your consideration,
Does this help:
http://www.debianhelp.co.uk/logcheck.htm
First hit on google searching for 'logcheck email from'
--
"If you're not careful, the newspapers will have you hating the people
who are being oppressed, and loving the people who are doing the
oppressing." --- Malcolm X
Reply to: