|Delivery agent flags||All versions|
Beginning with V8.10 sendmail it is possible to delete from, add to, and modify delivery agent flags with a single command. The MODIFY_MAILER_FLAGS command is used like this:
Here, which is the first part (up to the underscore) of any of the _MAILER_FLAGS shown for the various delivery agents, beginning in Section 20.4. That is, name_MAILER_FLAGS, for example, could be SMTP_MAILER_FLAGS, thus causing which to become SMTP. This name is case-sensitive and must match the case of the _MAILER_FLAGS you use (SMTP and LOCAL will work, but smtp and local will not).
Thus, to add an F=% to the smtp8 delivery agent, you could use this command:
But be aware that this modifies all the delivery agents that are associated with the SMTP_MAILER_FLAGS mc configuration macro, not just the smtp8 delivery agent.
You can also use MODIFY_MAILER_FLAGS to remove delivery agent flags by prefixing the change with a minus character:
Here, the intention is to remove ESMTP support from the relay delivery agent.
The MODIFY_MAILER_FLAGS command can also be used to totally replace all a delivery agent's delivery agent flags with a whole new set. To replace, just omit the plus or minus from the front of change:
Here, all the delivery agents associated with the SMTP_MAILER_FLAGS mc configuration macro will have their delivery agent flags set to the common set mDFMuXa8.
As a final caution, note that the local_lmtp (FEATURE(local_lmtp)) and procmail (FEATURE(local_procmail)) features unconditionally set their LOCAL_MAILER_FLAGS, and that those delivery agent flags can only be overridden with this MODIFY_MAILER_FLAGS command, if it follows the feature:
FEATURE(`local_lmtp') must be first MODIFY_MAILER_FLAGS(`LOCAL', `-P')
Prior to V8.10 sendmail, you could use your mc configuration to modify various delivery agent flags for inclusion with most delivery agents. Some modifications were made by appending the new delivery agent flags to the original delivery agent flags. Others are made by replacing a few delivery agent flags with new ones and appending the result to the originals. For example, the following declaration:
define(`LOCAL_MAILER_FLAGS', `Prmn9f') first MAILER(`local') second
resulted in these delivery agent flags being defined for the local delivery agent:
Here, the lsDFMAwq5:/|@ flags were retained, and the f flag was added. The Prmn9 flags would have been replaced if we had not restated them.
See cf/README to learn which are retained and which are replaced. For example, the following extract from that file illustrates the earlier example:
LOCAL_MAILER_FLAGS [Prmn9] The flags used by the local mailer. The flags lsDFMAw5:/|@q are always included.
See the section describing a particular delivery agent to find an appropriate mc macro with which to redefine the F= for that delivery agent. See Table 20-1, in Section 20.4, for a guide to all delivery agents.
Beginning with V8.10 sendmail you instead use the MODIFY_MAILER_FLAGS mc command described in the previous section.