Re: Sendmail rule questions

2004-02-20 Thread Mark Frank
* On Thu, Feb 19, 2004 at 07:20:13PM + Matthew Seaman wrote:
 On Thu, Feb 19, 2004 at 01:11:55PM -0500, Chuck Swiger wrote:
  Benjamin Meade wrote:
  Just wondering if sendmail (not procmail) can reject messages from a 
  specific user that are above a certain size?
  
  You can control the max message size on a sitewide basis via:
  
  define(`confMAX_MESSAGE_SIZE', `2100')dnl
  
  ...but I don't believe you can do so on a per-user basis, no.
 
 The only way I could think of for doing this would be to create a
 second set of mailer definitions with the 'M=' (Maximum message size)
 setting altered appropriately, and custom parsing rules to force the
 messages sent from a particular address to be delivered via those
 mailers.  Needless to say, that's going to be a pig of a job to set up
 and configure correctly.  You would be better off setting up some sort
 of Milter or indeed forcing all of the messages to be processed
 through procmail(8).

Also in the milter vein, if you're conversant with Perl you could try 
MIMEDefang (it's in ports.)  You could probably find a workable example 
for what you want to do from the MIMEDefang mailing list archives.

http://lists.roaringpenguin.com/pipermail/mimedefang/

-- 
Mark Frank
Director of Technical Services - eDoxs Corp.
The fix is only temporary...unless it works. - Red Green
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Sendmail rule questions

2004-02-19 Thread Benjamin Meade
Hey all,

Just wondering if sendmail (not procmail) can reject messages from a specific 
user that are above a certain size?

--
Benjamin Meade
System Administrator
LanWest Pty Ltd
Ph:  +61 (8) 9440 3033
Fax: +61 (8) 9440 3370
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Sendmail rule questions

2004-02-19 Thread Chuck Swiger
Benjamin Meade wrote:
Just wondering if sendmail (not procmail) can reject messages from a 
specific user that are above a certain size?
You can control the max message size on a sitewide basis via:

define(`confMAX_MESSAGE_SIZE', `2100')dnl

...but I don't believe you can do so on a per-user basis, no.

--
-Chuck
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Sendmail rule questions

2004-02-19 Thread Matthew Seaman
On Thu, Feb 19, 2004 at 01:11:55PM -0500, Chuck Swiger wrote:
 Benjamin Meade wrote:
 Just wondering if sendmail (not procmail) can reject messages from a 
 specific user that are above a certain size?
 
 You can control the max message size on a sitewide basis via:
 
 define(`confMAX_MESSAGE_SIZE', `2100')dnl
 
 ...but I don't believe you can do so on a per-user basis, no.

The only way I could think of for doing this would be to create a
second set of mailer definitions with the 'M=' (Maximum message size)
setting altered appropriately, and custom parsing rules to force the
messages sent from a particular address to be delivered via those
mailers.  Needless to say, that's going to be a pig of a job to set up
and configure correctly.  You would be better off setting up some sort
of Milter or indeed forcing all of the messages to be processed
through procmail(8).

See http://www.benzedrine.cx/milter-regex.html or
http://www.snert.com/Software/milter-sender/ for somethings that might
do the job -- except that apparently neither of those can filter by
message size.  Both are available in ports -- if the term 'Milter'
means anything to you, and you're fluent at C programming then adding
a check on message size might be possible.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature