Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I limit the size of an outgoing sendmail message?

0
Posted

How do I limit the size of an outgoing sendmail message?

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123