Bug 174905 - [patch] make cron(8) honor rfc821, rfc5321, rfc2076, rfc3834
Summary: [patch] make cron(8) honor rfc821, rfc5321, rfc2076, rfc3834
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: unspecified
Hardware: Any Any
: Normal Affects Many People
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-02 18:10 UTC by Olli Hauer
Modified: 2016-01-17 15:20 UTC (History)
0 users

See Also:


Attachments
cron_2013-01-02.diff (6.15 KB, patch)
2013-01-02 18:10 UTC, Olli Hauer
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Olli Hauer freebsd_committer 2013-01-02 18:10:05 UTC
o per rfc821, rfc5321 and others there should be an CRLF after each mail-headers line,
  so change '\n' to '\r\n'
o enclose mail addresses between '<>' (rfc821)
o swap From: line to DisplayName <mail address> (rfc5312)

Add various mail headers to suppress auto-replies (out of office ...)

 o add rfc2076 header (Precedence: bulk)
 o add rfc3834 header (Auto-Submitted: auto-generated)
   (this header is already honored by dovecot2)
 o add special header for MS Exchange (X-Auto-Response-Suppress: OOF, DR, RN, NRN, AutoReply)

patch can be grabbed additional from here:
 http://people.freebsd.org/~ohauer/diffs/cron_2013-01-02.diff

How-To-Repeat: - replace sendmail with another mailer and do a strict rfc821 enforce.
- implement a vacation mail on your main mailbox (dovecot2/MS-Exchange/...) and let a couple of machines send cron mails to your mailbox