Pitfalls
The
F=fandF=rdelivery agent flags are similar in their implementation but can differ in their result. Consider, for example, the SunOS 4.x version of /bin/mail. That program expects the-rcommand-line argument to specify the sender’s name. Setting theF=rdelivery agent flag correctly causes mail to be seen as being from the sender (-r sender), but mistakenly using theF=fdelivery agent flag invokes /bin/mail with-f senderinstead. This fails because the SunOS 4.x version of /bin/mail expects the-fcommand-line argument to mean that it should interactively read mail from the mailbox named sender.The
F=Cdelivery agent flag can cause problems when it is specified for delivery agents for which the @domain form of address is inappropriate. This delivery agent flag should be avoided for DECnet and thelocaldelivery agents. Note that LMTP-aware local delivery agents that can handle domain addresses can use this delivery agent flag.A common problem with SysV versions of /bin/mail is their annoying habit of prefixing a "
From" line to the beginning of each message, even if one is already there. This confuses users because it makes their mail appear to come from uucp or daemon instead of the real sender. The problem stems from the fact that the SysV /bin/mail lacks a-rcommand-line argument (or its equivalent) to indicate who the sender is. Instead, that program assumes that the sender’s identity can be taken from the identity of the person who ran the program. This ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access