Operating System - Linux
1826414 Members
4342 Online
109692 Solutions
New Discussion

Re: Sendmail message size limit per domain

 
Leovino A. Trinidad, Jr
Frequent Advisor

Sendmail message size limit per domain

Hello!

My superior would like to limit the size of the mails per domain... how can i do it in sendmail acting as a mail relay? I 've tried duplicating the mail agent and add the M= option but it doesn't work... so I think the best option is a rule for it... I am not versed in rule... I appreciate any help from you guys.

Regards,


LAT
4 REPLIES 4
Vitaly Karasik_1
Honored Contributor

Re: Sendmail message size limit per domain

You can do this with milter-length : http://www.snertsoft.com/sendmail/milter-length/.
Stuart Browne
Honored Contributor

Re: Sendmail message size limit per domain

Vitaly suggestion is good. Just expanding on it a bit.

Sendmail, whilst it can be set up to accept for a wide variety of domains, protocols, and with vast amounts of options, have no nice rules for messages size limits.

It has *ONE* option:

O MaxMessageSize=

This applies to all incoming mails, as well as all outgoing mails. It's granulated enough to do a per-domain size limit.

So yea, look at a Milter. We use custom (perl) milters to limit message size (and other things) by user class. It's pretty easy to do (even easier as there is one written already).

Good luck! :)
One long-haired git at your service...
Vitaly Karasik_1
Honored Contributor

Re: Sendmail message size limit per domain

> It's granulated enough to do a per-domain >size limit.

do you mean "it isn't"?
Stuart Browne
Honored Contributor

Re: Sendmail message size limit per domain

Haha, yea. My apologies.. I missed the word 'not' :)
One long-haired git at your service...