-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MAILFROM option broken between 1.6.1 and 1.7.0 #166
Comments
Do you see this for both cron based and anacron based jobs or just for one of these? |
Hmm... actually this was an intentional change from #118 |
I assume we could make this optional. |
I get the reasoning behind #118, but if I'm understanding correctly what's happening on my end, now even explicitly setting MAILFROM to a valid address in the crontab results in outgoing mail being rejected from the relay because of the missing FROM header. I should be able to downgrade to 1.5.7 for the time being until fixed. The full postfix log when an email should be sent:
|
Yes, perfect! That works for me as expected and makes the Apple servers happy again. Thanks for the quick attention! |
Hi, may I know when there will be a release with this fix? As the |
I've done a new release now. |
Thank you! 🎉 |
I'm using postfix to route outgoing email from a cronie crontab entry to an Apple iCloud+ SMTP server, which requires the FROM address to be on the approved list in order to send mail.
In my (root) crontab, I've set the appropriate MAILFROM address:
MAILFROM='[email protected]'
After updating cronie to 1.7.0, the journalctl entry for postfix after the cron job outputs shows:
postfix/qmgr[887]: 1BC705E2030: from=<>, size=782, nrcpt=1 (queue active)
Downgrading cronie to 1.5.7 gives the expected result, and I receive the email:
postfix/qmgr[887]: 0531D5E2030: from=<[email protected]>, size=766, nrcpt=1 (queue active)
My other server is still running version 1.6.1, and that also is still working correctly, so the regression seems to have happened somewhere between 1.6.1 and 1.7.0.
Git-diffing the two commits, there seem to be a couple of places where "mailfrom" is touched between releases, notably in anacron/runjob.c and src/do_command.c.
The text was updated successfully, but these errors were encountered: