From: Manuel Mely on
On 8/8/10, Wietse Venema <wietse(a)porcupine.org> wrote:
> Manuel Mely:
>> Hi Wietse,
>>
>> My server is acting as relay for my network, so my internal clients
>> are MTAs that uses ESMTP. The problem is when other servers in
>> internet are delivering messages to my server, some of them are SMTP.
>> If i place my policy server in smtpd_end_of_data_restrictions i must
>> wait for the entire message and then check, and my internet bandwidth
>> is really poor. That's why I'm checking in other place rather than
>> end_of_data.
>
> Here is a revolutionary idea: configure Postfix announce to the
> right message size limit.
>
> You can use different master.cf configurations for smtpd, if local
> and remote clients have different limits (use a different server
> IP address).
>

Sorry Wietse, i didn't get your point. By the way, my three mail
servers are configured to have different set of policies looking at
the IP. The message size limit is random, postfix is configured for a
maximum of 20MB but the policy server is the one that is really
allowing or not in a range between 3 and 20MBs.

From: Wietse Venema on
Manuel Mely:
> On 8/8/10, Wietse Venema <wietse(a)porcupine.org> wrote:
> > Manuel Mely:
> >> Hi Wietse,
> >>
> >> My server is acting as relay for my network, so my internal clients
> >> are MTAs that uses ESMTP. The problem is when other servers in
> >> internet are delivering messages to my server, some of them are SMTP.
> >> If i place my policy server in smtpd_end_of_data_restrictions i must
> >> wait for the entire message and then check, and my internet bandwidth
> >> is really poor. That's why I'm checking in other place rather than
> >> end_of_data.
> >
> > Here is a revolutionary idea: configure Postfix announce to the
> > right message size limit.
> >
> > You can use different master.cf configurations for smtpd, if local
> > and remote clients have different limits (use a different server
> > IP address).
> >
>
> Sorry Wietse, i didn't get your point. By the way, my three mail
> servers are configured to have different set of policies looking at
> the IP. The message size limit is random, postfix is configured for a
> maximum of 20MB but the policy server is the one that is really
> allowing or not in a range between 3 and 20MBs.

/etc/postfix.master.cf:
# =================================================================
# service type private unpriv chroot wakeup maxproc command
# (yes) (yes) (yes) (never) (100)
# =================================================================
# SMTP service for "local" clients.
1.2.3.4:smtp inet n - n - - smtpd
-o message_size_limit=1234
-o smtpd_client_restrictions=permit_mynetworks,reject

# SMTP service for everyone else.
1.2.3.5:smtp inet n - n - - smtpd
-o message_size_limit=5678

If your size limit is a random function of client identity,
then you are probably working too hard.

Wietse

From: mmelyp on
On Aug 8, 2010 8:08pm, Wietse Venema <wietse(a)porcupine.org> wrote:


> /etc/postfix.master.cf:

> # =================================================================

> # service type private unpriv chroot wakeup maxproc command

> # (yes) (yes) (yes) (never) (100)

> # =================================================================

> # SMTP service for "local" clients.

> 1.2.3.4:smtp inet n - n - - smtpd

> -o message_size_limit=1234

> -o smtpd_client_restrictions=permit_mynetworks,reject



> # SMTP service for everyone else.

> 1.2.3.5:smtp inet n - n - - smtpd

> -o message_size_limit=5678



> If your size limit is a random function of client identity,

> then you are probably working too hard.


This is not going to help so much in what i need. Actually, my size limit
is a random function because we are trying to
sell email domains with different size limits for their users; it sounds
weird, but it's another way to get money from our services.