Copy
an existing m4 file, one that is similar to your needs. Then edit that new file, and
include it in your configuration file with:
MAILER(newname)
Note that the MAILER mc configuration command automatically prefixes the name
with the following (where _CF_DIR_ is described in ?§17.2.1 on page 588):
_CF_DIR_/mailer/
and adds the suffix .m4, here forming cf/mailer/newname.m4.
Be aware, however, that creation of a new delivery agent is not for the fainthearted.
In addition to the delivery agent definition, you might also need to create brand-new
S= and R= rules and rule sets.
20.3.3.1 MAILER_DEFINITIONS
Prior to V8.8 sendmail, you had to use a divert(7) statement to force your new delivery
agent definitions to be grouped with all the other delivery agent definitions.
Beginning with V8.8, this bit of ???black magic??? has been removed.
To force new delivery agent definitions to be grouped with the other delivery agent
definitions, use the MAILER_DEFINITIONS m4 command. For example:
MAILER_DEFINITIONS
place your new delivery agent definitions here
See ?§20.3.2 on page 715 for an example of this m4 command.
20.4 Delivery Agents by Name
As we have shown earlier, the MAILER command is used to enable a class of delivery
agents. For example:
MAILER(`smtp??)
This command causes support for the smtp, esmtp, smtp8, dsmtp, and relay delivery
agents to be included in your configuration file.
Pages:
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254