[Mimedefang] Max recipient

Matthew.van.Eerde at hbinc.com Matthew.van.Eerde at hbinc.com
Tue Aug 31 16:13:54 EDT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jim McCullars wrote:
> On 31 Aug 2004, CONTRERAS, Pablo wrote:
> 
>> Hi, I want set mimedefang for max recipients with ingoing mail,
when
>> the number of recipients is more than 5, then mimedefang? reply
with
>> a message, for example: our server not admit more than 5 recipient,
>> Is it posible?
> 
>    This should do it (untested!):
> 
>      sub filter_begin {
>      #
>      #  reject email with too many recipients
>      #
>        if (@Recipients > 5) {
>          return action_bounce("Too many recipients, message
refused")
>        }
>      }

No need for Mimedefang-ery.  You can do this in Sendmail directly by
defining the SMTP_MAILER_MAXRCPTS option in your .mc file.

http://www.sendmail.org/m4/ostype.html#SMTP_MAILER_MAXRCPTS

Matthew.van.Eerde at hbinc.com                      805.964.4554 x902
Hispanic Business Inc./HireDiversity.com         Software Engineer
perl -e"map{y/a-z/l-za-k/;print}shift" "Jjhi pcdiwtg Ptga wprztg,"
-----BEGIN PGP SIGNATURE-----
Comment: pub key http://matthew.vaneerde.com/pgp-public-key.asc

iD8DBQFBNNv8UQQr0VWaglwRAouLAJ49RyU6UCr8rrIjQqO4XoCCIJWh7ACcCjfP
pEYlsjtrrVWnHOqWZGzPCVQ=
=SYoG
-----END PGP SIGNATURE-----



More information about the MIMEDefang mailing list