Discussion:
Sendmail Max Message Size
Thom Paine
2006-02-23 14:55:26 UTC
Permalink
I thought I'd ask this question here before I post elsewhere and I
don't subscribe to the sendmail list and I would think other people
use this feature.

I'm looking to have a max message size that my one server accepts of
4M. However, I have a group of users who need to be able to bypass
this limit as they regularly receive email attachments of surveillance
videos that can be as large at 10M.

Is there a way to define a message size of 4M for everyone else except
for this group?

Thanks.
--
-=/>Thom
Chris Adams
2006-02-23 15:52:43 UTC
Permalink
Post by Thom Paine
I'm looking to have a max message size that my one server accepts of
4M. However, I have a group of users who need to be able to bypass
this limit as they regularly receive email attachments of surveillance
videos that can be as large at 10M.
Is there a way to define a message size of 4M for everyone else except
for this group?
You'd have to set the max message size to the max allowed for any user,
and then write a custom check_rcpt ruleset to check ${msg_size}.

Alternately, there is a Maxsize field for mailers (I don't know when
sendmail checks it though); it may be possible to use a mailertable to
select a different mailer for some users with a different size. You'd
still have to set the overall max message size to the max allowed for
any user and then lower it via the mailer field.
--
Chris Adams <cmadams-biH1agB2LTysTnJN9+***@public.gmane.org>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.
Thom Paine
2006-02-23 16:54:10 UTC
Permalink
Thanks for the reply Chris.

This gave me an idea to use in conjunction with MailScanner. I set my
global max message size to 10M and then created a ruleset to limit
other users to an even smaller size.

Thanks again.
Post by Chris Adams
Post by Thom Paine
I'm looking to have a max message size that my one server accepts of
4M. However, I have a group of users who need to be able to bypass
this limit as they regularly receive email attachments of surveillance
videos that can be as large at 10M.
Is there a way to define a message size of 4M for everyone else except
for this group?
You'd have to set the max message size to the max allowed for any user,
and then write a custom check_rcpt ruleset to check ${msg_size}.
Alternately, there is a Maxsize field for mailers (I don't know when
sendmail checks it though); it may be possible to use a mailertable to
select a different mailer for some users with a different size. You'd
still have to set the overall max message size to the max allowed for
any user and then lower it via the mailer field.
--
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.
--
Taroon-list mailing list
https://www.redhat.com/mailman/listinfo/taroon-list
--
-=/>Thom

Continue reading on narkive:
Loading...