Bryan Costales, Claus Assmann, George Jansen, Gregory Shapiro
"sendmail, 4th Edition"
Consider the following
.vacation.msg file:
From: Your Full Name
Subject: I got your Message
Precedence: bulk
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
384 | Chapter 10: Build and Use Companion Programs
As you know, I often receive over 1,000 messages a week and cannot
reply to each message right away. This automatic reply is just to
reassure you that I receive all messages, and reply to them eventually.
For a plan such as this to work, you should avoid sending this message too often.
Consider resetting the default resend interval from a week to a month with the -r
command-line switch (?§10.9.4.10 on page 390).
10.9.2.2 Retire users with notification
The vacation program is also useful as a graceful way to retire users while keeping
their accounts open for a while. Consider, for example, the following .vacation.msg
file:
From: Full Name
Subject: I have moved
Precedence: bulk
Thanks for your email. It has been forwarded to my new address at:
user@a.new.domain
Please update your records to contain this new address.
To complement this message, the user??™s ~/.forward file could be set up like this:
user@a.new.domain
|"/usr/ucb/vacation user"
After the account is closed, you can fall back to the less graceful method described
for the FEATURE(redirect) (?§17.
Pages:
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692