Prev | Current Page 440 | Next

Bryan Costales, Claus Assmann, George Jansen, Gregory Shapiro

"sendmail, 4th Edition"


These are described in the section discussing the $x sendmail macro (?§21.9.103 on page
851).
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
6.7 Alphabetized Command-Line Switches | 241
The -F command-line switch is used by programs and shell scripts that send email.
Consider the following administrative shell script that is run by cron(8) once per night:
#!/bin/sh
DISKUSE="du -s"
ARCHDIR=/admin/mail/lists
LIMIT=10
NOTIFY=root@localhost
# Run this nightly to detect an overgrown archive directory
BLOCKS=`$DISKUSE $ARCHDIR | awk '{print $1}'`
if [ $BLOCKS -gt $LIMIT ]; then
echo $BLOCKS over $LIMIT in $ARCHDIR |\
/usr/sbin/sendmail -F"DU Report by root" -f du-report $NOTIFY
fi
Here, in the full-name portion of the From: header, the delivered warning email message will
include the notation ???DU Report by root???:
From: "DU Report by root"
6.7.24 -f
Set sender??™s address All versions
The -f command-line switch* causes sendmail to take the address of the sender from the
command line rather than from the envelope or message header. The -f switchis used by
UUCP software and by mailing list software. The form of the -f switch is:
-faddr
-f addr
Space between the -f and the addr is optional. If addr is missing, sendmail prints the
following error message and ignores the -f switch:
sendmail: option requires an argument -- f
Multiple -f switches cause sendmail to print the following error message and exit:
More than one "from" person
The behavior of this switch varies depending on the version of sendmail you are running.


Pages:
428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452
katalog stron szambo betonowe wierszyki dieta light katalog stron