Updated cron?

Leroy Tennison leroy at datavoiceint.com
Fri Aug 16 20:49:27 UTC 2019


Just a quick update for anyone facing a similar situation and finding this: Postfix does have a way to do this through a feature called "smtp generic maps" and it's easy:

Create /etc/postfix/generic with, or example: root@<contents of /etc/mailname>   <some valid email address> (one "mapping" per line)
Run postmap hash:generic
Add "smtp_generic_maps = hash:/etc/postfix/generic" to /etc/postfix/main.cf
Restart Postfix



Register now for 
the dataVoice User Conference
, 
October 9-11 at the Gaylord Rockies in 
Denver, CO.
To register click
Here
Leroy Tennison
Network Information/Cyber Security Specialist
E: leroy at datavoiceint.com
2220 Bush Dr
McKinney, Texas
75070
www.datavoiceint.com
This message has been sent on behalf 
of a company that is part of the Harris Operating Group of 
Constellation Software Inc. These companies are listed 
here
.
If you prefer not to be contacted by Harris 
Operating Group 
please notify us
.
This message is intended exclusively for the 
individual or entity to which it is addressed. This communication 
may contain information that is proprietary, privileged or 
confidential or otherwise legally exempt from disclosure. If you are 
not the named addressee, you are not authorized to read, print, 
retain, copy or disseminate this message or any part of it. If you 
have received this message in error, please notify the sender 
immediately by e-mail and delete all copies of the 
message.
?
-----Original Message-----
From: Robie Basak <robie.basak at ubuntu.com> 
Sent: Tuesday, August 13, 2019 10:45 AM
To: Leroy Tennison <leroy at datavoiceint.com>
Cc: ubuntu-server at lists.ubuntu.com
Subject: [EXTERNAL] Re: Updated cron?

On Tue, Aug 13, 2019 at 02:04:14PM +0000, Leroy Tennison wrote:
> I don't know about a specification but, from "man 5 crontab" on 
> OpenSUSE 13.2 'If MAILFROM is defined (and non-empty), it is used as 
> the envelope sender address, otherwise, "root" is used.

Sounds like it is using "sendmail -f <MAILFROM>".

Thank you for bringing this up Leroy. I thought I'd share my thoughts on what we should be doing generally in Ubuntu, rather than in answer to your specific question:

I have no particular objection to tweaking cron, but:

 1) it does seem to me that if users find MAILFROM necessary, then they  would be better served by being advised to tweak their MTA  configuration rather than hoping for a similar feature in every email  sending app and configuring each app individually.

 2) perhaps it's better to leave cron as-is for legacy purposes, but  advise that users look at newer tools that don't have a backward  compatibility burden for additional functionality (eg. systemd timers).

If there is clearly a leading cron compatible replacement in wide use in the community then switching to that might make sense, but it would need someone to take the ongoing effort to make sure that we don't break any existing users currently happy with the current cron implementation.



More information about the ubuntu-server mailing list