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?
This looks more promising than my other previous suggestions. http://raspberry.znix.com/2013/03/nullmailer-on-raspberry-pi.html esp. /etc/nullmailer/helohost "You only need this file if you are relaying through an smtp smarthost that won't accept your default domain as a valid mail server. By default, nullmailer uses the value from /etc/mailname for the HELO message in the smtp protocol. Any domain set in this file will be used in the HELO message instead." -- "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 -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20150131193005.GB18392@tal