Operating System - Linux
1820590 Members
2443 Online
109626 Solutions
New Discussion юеВ

Sendmail and message size limit

 
SOLVED
Go to solution
Ivan Ferreira
Honored Contributor

Sendmail and message size limit

Sendmail allows you to limit the maximum message size for inconming and outgoing mail with the option:

O MaxMessageSize=

But, what if I want to limit just the incoming mail size but not the outgoing, or viceversa?
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
4 REPLIES 4
Ivan Ferreira
Honored Contributor

Re: Sendmail and message size limit

It seems that the only way is to use two sendmails instances running with differents configurations on differents ports.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Steven E. Protter
Exalted Contributor

Re: Sendmail and message size limit

Shalom Ivan,

Another possible scheme would be to have a second machine in front of the main sendmail box with limitations turned on. It would be told to process and DS relay to the main box.

The main box could send its mail to the Internet without passing through the second.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ivan Ferreira
Honored Contributor

Re: Sendmail and message size limit

Hi Steven, you solution will work. I would like to give you more points but I want to keep this thread without solution so new messages will be posted.

I just want to see if there is another way, using only one server. (Maybe something that runs with sendmail, like mailscanner)
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Ugo Bellavacne
New Member
Solution

Re: Sendmail and message size limit

With MailScanner, you can use rulesets to the "Maximum Message Size = " parameter to achieve what you need.