gateway > $* $#gateway $@ 26 $: $1 < @ $2 .gateway> $3
This rule selects the gateway delivery agent for any address that ends in .gateway. The host
part that is returned by the $@ is the port number to use. The $: part (the address) is passed
in the envelope. Note that the gateway also has to be listening on the same port for this to
work.
In the event that you wish to carry the port number in a sendmail macro, you can do so by
specifying the host with $h. For example:
Mgateway, P=[IPC], ..., A=TCP $h $P
R$+ < @ $+ .gateway > $* $#gateway $@ $2 $: $1 < @ $2 .gateway> $3
* Unless (V8.8 and later) the F=0 delivery agent flag is set (?§20.8.2 on page 761) or unless the hostname is surrounded
by square brackets.
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
740 | Chapter 20: The M (Mail Delivery Agent) Configuration Command
Then sendmail can be run with the command-line argument:
-MP26
to cause gateway mail to go out on port 26.
20.5.2.3 The special case of $u in A=
The $u sendmail macro is special in the A= delivery agent equate??™s field. If $u does not
appear in the array, sendmail assumes that the program in the P= delivery agent equate
speaks SMTP, or LMTP if the delivery agent has the F=z flag set (?§20.8.52 on page 783). If
$u does appear in the array, sendmail assumes that the program in P= will speak neither
SMTP nor LMTP.
Pages:
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295