7.2 Defining Macros
In the previous chapter you roughed out delivery agent definitions
for the
V7 # Delivery agent definition to forward mail to hub Mhub, P=[IPC], S=0, R=0, F=mDFMuXa, T=DNS/RFC822/SMTP, A=IPC
There are two kinds of macros: those that you define and those
that
sendmail
defines. Macros that begin with uppercase letters,
such as You have already seen an example of an uppercase macro:
D{REMOTE}mailhost
This gives the macro named
Somewhere on your network, there may be
a machine whose alias is
mailhost
or something similar, such as
mailrelay
.
This is the alias of the machine that serves your site's mail
hub. If no such alias exists, you must use an actual machine name (such as
mail.us.edu
).
Now edit
\%client.cf
, and add your first macro,
V7
Here, three new lines have been added to the
client.cf
file.
The first is a comment, and the third is a blank line to visually
separate macro definitions from delivery agent definitions.
The second line is the new macro definition. As the comment says,
this Take a moment to test this new version of the client.cf file:
% The sendmail program reads and parses the client.cf file. There are no errors in the client.cf file, so sendmail prints no error messages. |
|