Skip to content
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

Anacron does not support MAILFROM #17

Closed
mlazze opened this issue Jan 24, 2018 · 3 comments
Closed

Anacron does not support MAILFROM #17

mlazze opened this issue Jan 24, 2018 · 3 comments

Comments

@mlazze
Copy link

mlazze commented Jan 24, 2018

Unless I'm missing something obvious, MAILFROM works correctly in a crontab, but it gets ignored in an anacrontab.

Crontab example:

[email protected]
[email protected]
*  *  *  *  *  echo "error" 1>&2

This correctly sets From Header to [email protected].

While
Anacrontab example:

[email protected]
[email protected]
@daily       5       test              echo "error" 1>&2

This has From Header set to Anacron <root>.

Problem is, gmail blocks anacron email with reason 'From' header has non compliant domain name.

Mails are sent using sendmail, which is symlinked to msmtp.

Is Anacron supposed to ignore MAILFROM?

@t8m t8m changed the title Anacrontab MAILFROM Anacron does not support MAILFROM Jan 24, 2018
@t8m
Copy link
Member

t8m commented Jan 24, 2018

Yes, the support for MAILFROM in anacron is missing.

t8m added a commit that referenced this issue Jan 24, 2018
@t8m t8m closed this as completed Jan 24, 2018
@lkraav
Copy link

lkraav commented Dec 15, 2018

@t8m is MAILFROM supposed to substitute environment variables?

MAILFROM=cron+$USER currently doesn't seem to be substituted.

@t8m
Copy link
Member

t8m commented Dec 17, 2018

No, unfortunately not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants