[Mimedefang] info cuestions

Jan-Pieter Cornet johnpc at xs4all.nl
Thu Nov 2 05:10:41 EST 2006


On Wed, Nov 01, 2006 at 06:18:18PM +0100, Jonas Eckerman wrote:
> >Also i need know the size of a message (i use sendmail/milter) Sendmail
> >have this data but i do not know how i can get this data.
> 
> Of course you can't do this in "filter_sender", as "filter_sender" is 
> called before your system even knows if the sender wants to send a message.

However, sensible ESMTP mailers nowadays provide a SIZE= parameter 
on the From: line. You can either parse the arguments in @ESMTPArgs,
or you can pass the {msg_size} sendmail macro to mimedefang explicitly
(then you'll have to use the -a switch on mimedefang and add
{msg_size} to the Milter.macros.envfrom).

-- 
Jan-Pieter Cornet <johnpc at xs4all.nl>
!! Disclamer: The addressee of this email is not the intended recipient. !!
!! This is only a test of the echelon and data retention systems. Please !!
!! archive this message indefinitely to allow verification of the logs.  !!



More information about the MIMEDefang mailing list