How do I limit the size of an outgoing sendmail message?
A3: How do I limit the size of an outgoing sendmail message? In the sendmail.cf file, there are severeal “mailers” defined. Of primary interest are “uucp”, “ddn” and “ether”. They are used for uucp mail, mail outside your domain, and mail inside your domain. You can define the maximum outbound message size on a per-mailer basis, in the mailers definition. Just add M=xxxxx to the mailer definition, where xxxxxx is the maximum outbound message size. For example, to limit the maximum uucp message size to 100,000 bytes: Muucp, P=/usr/bin/uux, F=msDFMhuU, S=13, R=23, to: Muucp, P=/usr/bin/uux, F=msDFMhuU, S=13, R=23, M=100000, ^^^^^^^^ For the ddn mailer, to limit to 250,000 bytes: Mddn, P=[TCP], F=msDFMuCX, S=22, R=22, A=TCP $h, E=\r\n, M=250000 ^^^^^^^^ NOTE: this will not work for QUEUED messages on 2.3/2.4 without the sendmail version 8 patch(es). Reference: “sendmail”, pub by O’Reilly and Assoc, P. 388.