Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Qmail: users

qmail single rct vs multiple rctp

 

 

Qmail users RSS feed   Index | Next | Previous | View Threaded


rejaine at bhz

Aug 17, 2010, 6:26 AM

Post #1 of 19 (1583 views)
Permalink
qmail single rct vs multiple rctp

hello,

I read the articles below about qmail :

http://www.dt.e-technik.uni-dortmund.de/~ma/qmail-bugs.html (4.3
Bandwith hogging)

and this

http://www.lifewithqmail.org/lwq.html#multi-rcpt

Does not really exist any possiblity to implement the multi-RCTP on qmail?


feh at fehcom

Aug 17, 2010, 7:51 AM

Post #2 of 19 (1546 views)
Permalink
Re: qmail single rct vs multiple rctp [In reply to]

Hi,

Am Dienstag, den 17.08.2010, 10:26 -0300 schrieb Rejaine Monteiro:
>
> hello,
>
> I read the articles below about qmail :
>
> http://www.dt.e-technik.uni-dortmund.de/~ma/qmail-bugs.html (4.3
> Bandwith hogging)
>
Personally, I'm not very pleased that Matthias Andree still uses the
Webserver of the University of Dortmund to host his private opinion.

Anyway. As Dave Sill pointed out: This is not a bug; it is a design
decision of DJB and it touches deeply the way emails are kept in the
Message Store, the queue.

At that time when DJB wrote qmail, RFC 821 was relevant and it defines
SMTP mail as <transaction>. Later, with RFC 2821 (the famous Klensin
draft) with ESMTP a <session> was introduced (you find more details
about that on my SMTP Auth web site).

> and this
>
> http://www.lifewithqmail.org/lwq.html#multi-rcpt
>
> Does not really exist any possiblity to implement the multi-RCTP on
> qmail?

qmail stores each email at two locations: the SMTP envelope and the
message itself and references those by their (identical) INODE name.

It would at least require a substantial change in qmail-rspawn to gather
several mails for one domain in one transaction with multiple RCPT To:
in case the message itself is identical, thus it can be transmitted with
one DATA command (this is actually the bandwidth critical path).

I'm going to have a look for my forthcoming SPAMCONTROL patches, but I
can hardly promise anything.

regards.
--eh.

--
Dr. Erwin Hoffmann | FEHCom | http://www.fehcom.de
Attachments: signature.asc (0.19 KB)


johnl at iecc

Aug 17, 2010, 8:05 AM

Post #3 of 19 (1545 views)
Permalink
Re: qmail single rct vs multiple rctp [In reply to]

>Does not really exist any possiblity to implement the multi-RCTP on qmail?

The design of qmail makes it impossible without radically rewriting the
whole mail queueing system.

People have been complaining about qmail's single RCPTs for over a
cecade. As far as I can tell, most of the complaints are due either
to poor understanding of TCP/IP and SMTP, and a silly belief that today's
networks are the same as the ones in 1996.

You can use serialmail to slow down deliveries to specific domains, but
in general I would not worry about it.

R's,
John


qmail at honorablemenschen

Aug 17, 2010, 8:51 AM

Post #4 of 19 (1548 views)
Permalink
Re: qmail single rct vs multiple rctp [In reply to]

> Hi,
>
> Am Dienstag, den 17.08.2010, 10:26 -0300 schrieb Rejaine Monteiro:
>>
>> hello,
>>
>> I read the articles below about qmail :
>>
>> http://www.dt.e-technik.uni-dortmund.de/~ma/qmail-bugs.html (4.3
>> Bandwith hogging)
>>
> Personally, I'm not very pleased that Matthias Andree still uses the
> Webserver of the University of Dortmund to host his private opinion.
>
> Anyway. As Dave Sill pointed out: This is not a bug; it is a design
> decision of DJB and it touches deeply the way emails are kept in the
> Message Store, the queue.
>
> At that time when DJB wrote qmail, RFC 821 was relevant and it defines
> SMTP mail as <transaction>. Later, with RFC 2821 (the famous Klensin
> draft) with ESMTP a <session> was introduced (you find more details
> about that on my SMTP Auth web site).
>
>> and this
>>
>> http://www.lifewithqmail.org/lwq.html#multi-rcpt
>>
>> Does not really exist any possiblity to implement the multi-RCTP on
>> qmail?
>
> qmail stores each email at two locations: the SMTP envelope and the
> message itself and references those by their (identical) INODE name.
>
> It would at least require a substantial change in qmail-rspawn to gather
> several mails for one domain in one transaction with multiple RCPT To:
> in case the message itself is identical, thus it can be transmitted with
> one DATA command (this is actually the bandwidth critical path).
>
> I'm going to have a look for my forthcoming SPAMCONTROL patches, but I
> can hardly promise anything.
>
I have done a lot of looking at this and considering the whole issue and I
have reached the following conclusions:

1) You are correct, there is no way to do multi-RCPT in qmail as it
stands. This is not just a qmail-remote issue, it's also embedded in
qmail-rspawn and qmail-send. If I ever get the time and motivation to
write the MTA I've been contemplating for a while, this is one of the
things that I intend to make it capable of doing (though not forcing the
admin to do so).

2) The pros and cons of single- vs. multi-RCPT are MANY, and there is no
one correct answer. RFC2821 is still technically Draft, and not Standard,
which means that violating a SHOULD in it is a non-issue. That being
said, most current MTAs have been written with 2821 in mind, so it's at
least worth considering.

3) The biggest con of single-RCPT is large domains (I'm looking at you,
Yahoo!) that are hosted across many servers but impose fairly strict
limits on the number of inbound connections at any one time. For those
SPECIFIC domains, a multi-RCPT MTA will likely have better delivery
performance over the long run, and almost certainly over periods of large
message volume - this is why I developed my concurrency-per-IP patch
(http://www.coyotetechnical.com/software/patches/qmail-send-concurrencyperip.patch)
to limit the number of connections to any one server IP at a time.
However, outside of those conditions (which are almost 100% caused by
configuration decisions on the part of another site's mail admins) there
is no big need for multi-RCPT delivery. It may be a little more
efficient, but unless you're sitting on dial-up or require instant email
delivery (in which case, why are you using SMTP?!?), bandwidth is usually
NOT your bottleneck...

Everyone's a critic - that's why there are several different open-source
MTA options out there. If multi-RCPT is your #1 requirement, then go
ahead and use something other than qmail - it makes no difference to me.
Just remember that qmail is designed the way it was designed for a lot of
reasons, and just because you (or someone else) disagree with those
reasons, doesn't mean it's "wrong" - just wrong for your specific
application.

Josh

Joshua Megerman
SJGames MIB #5273 - OGRE AI Testing Division
You can't win; You can't break even; You can't even quit the game.
- Layman's translation of the Laws of Thermodynamics
qmail [at] honorablemenschen


rejaine at bhz

Aug 17, 2010, 10:53 AM

Post #5 of 19 (1545 views)
Permalink
Re: qmail single rct vs multiple rctp [In reply to]

Em 17-08-2010 12:51, Joshua Megerman escreveu:
>
> Everyone's a critic - that's why there are several different open-source
> MTA options out there. If multi-RCPT is your #1 requirement, then go
> ahead and use something other than qmail - it makes no difference to me.
> Just remember that qmail is designed the way it was designed for a lot of
> reasons, and just because you (or someone else) disagree with those
> reasons, doesn't mean it's "wrong" - just wrong for your specific
> application.
>
>
>
I not saying Qmail is 'wrong' or have 'logic problems'... I love Qmail ;o)
My intention was be clarify some questions about Qmail queue and how I
can increase Qmail performance.
I have about 15 mail servers on different physical locations, connected
over a wan network. I change to QTMP, but this not solve the problem
with multiple recipients (wath is commonly used in my company profile)

(ps: sorry by english - bing translator used)


feh at fehcom

Aug 17, 2010, 11:48 AM

Post #6 of 19 (1544 views)
Permalink
Re: qmail single rct vs multiple rctp [In reply to]

Hi Rejaine,

have a look at my SPAMCONTROL. It allows to setup a QMTP network
since QMTP is included into qmail-remote.

Even under heavy load (> serveral mio mails/day/single machine)
plus full virus and spam scanning it works fine.

Setting up several outgoing queues for different customer hosts
allows to fine-grain the delivery to those.

regards.
--eh.

Am Dienstag, den 17.08.2010, 14:53 -0300 schrieb Rejaine Monteiro:
> Em 17-08-2010 12:51, Joshua Megerman escreveu:
> >
> > Everyone's a critic - that's why there are several different open-source
> > MTA options out there. If multi-RCPT is your #1 requirement, then go
> > ahead and use something other than qmail - it makes no difference to me.
> > Just remember that qmail is designed the way it was designed for a lot of
> > reasons, and just because you (or someone else) disagree with those
> > reasons, doesn't mean it's "wrong" - just wrong for your specific
> > application.
> >
> >
> >
> I not saying Qmail is 'wrong' or have 'logic problems'... I love Qmail ;o)
> My intention was be clarify some questions about Qmail queue and how I
> can increase Qmail performance.
> I have about 15 mail servers on different physical locations, connected
> over a wan network. I change to QTMP, but this not solve the problem
> with multiple recipients (wath is commonly used in my company profile)
>
> (ps: sorry by english - bing translator used)
>
>

--
Dr. Erwin Hoffmann | FEHCom | http://www.fehcom.de
Attachments: signature.asc (0.19 KB)


amb-sendok-1284683496.padfcnlonkppeiombkln at bradfo

Aug 17, 2010, 5:31 PM

Post #7 of 19 (1544 views)
Permalink
Re: qmail single rct vs multiple rctp [In reply to]

Thus said Rejaine Monteiro on Tue, 17 Aug 2010 10:26:35 -0300:

> Does not really exist any possiblity to implement the multi-RCTP on
> qmail?

I believe qmail-remote does support multiple recipients, so if you're
intent on having this ability, just call qmail-remote directly using
whatever as you want to use to aggregate recipients. Then queue any
failures using qmail-inject (or sendmail interface).

Andy


rejaine at bhz

Aug 18, 2010, 12:52 PM

Post #8 of 19 (1540 views)
Permalink
Re: qmail single rct vs multiple rctp [In reply to]

well, I'll change the question now...

I know I can use databytes (to limit max size for a single message) and
maxrct (to limit the maximum amount of recipeints for a sigle message) ,
but I would like to know how to use them together.

I don't know if I'm being clear, but I want to control the "message
size" size of individual message by users , but need control the
"amount" of messages (in bytes) that is generated by a message from a
user to many people.

See this situation:

databytes = 10MB
maxrctp = 20

I don't care if users sends 500k message to 20 users (+- 1.2MB on
total). but must prevent him to send a message 10 MB message to 5 users
(+- 50MB on total)



* Limit the Maximum Amount of Recipients for a Single Message in QMail.*

Em 17-08-2010 21:31, Andy Bradford escreveu:
> Thus said Rejaine Monteiro on Tue, 17 Aug 2010 10:26:35 -0300:
>
>
>> Does not really exist any possiblity to implement the multi-RCTP on
>> qmail?
>>
> I believe qmail-remote does support multiple recipients, so if you're
> intent on having this ability, just call qmail-remote directly using
> whatever as you want to use to aggregate recipients. Then queue any
> failures using qmail-inject (or sendmail interface).
>
> Andy
>
>


feh at fehcom

Aug 18, 2010, 1:25 PM

Post #9 of 19 (1534 views)
Permalink
Re: qmail single rct vs multiple rctp [In reply to]

Hi Rejaine,

practically, your answer with 'man qmail-smtpd'.

Am Mittwoch, den 18.08.2010, 16:52 -0300 schrieb Rejaine Monteiro:
> well, I'll change the question now...
>
> I know I can use databytes (to limit max size for a single message)
> and maxrct (to limit the maximum amount of recipeints for a sigle
> message) , but I would like to know how to use them together.
>
> I don't know if I'm being clear, but I want to control the "message
> size" size of individual message by users , but need control the
> "amount" of messages (in bytes) that is generated by a message from a
> user to many people.

The 'Databytes' limit only is defined for receiving emails via
qmail-smtpd; sending emails (qmail-inject and othters) does not allow
enforcing size limits on the message.


>
> See this situation:
>
> databytes = 10MB
> maxrctp = 20
>
> I don't care if users sends 500k message to 20 users (+- 1.2MB on
> total). but must prevent him to send a message 10 MB message to 5
> users (+- 50MB on total)

The 'Databytes' limit of qmail-smtpd is only used after a DATA command
(not true for some patches -- including mine).
In case an ESMTP session includes several transaction it applies to
each; thus it is not cumulative.


regards.
--eh.


>
>
>
> Limit the Maximum Amount of Recipients for a Single Message in QMail.
>
> Em 17-08-2010 21:31, Andy Bradford escreveu:
> > Thus said Rejaine Monteiro on Tue, 17 Aug 2010 10:26:35 -0300:
> >
> >
> > > Does not really exist any possiblity to implement the multi-RCTP on
> > > qmail?
> > >
> > I believe qmail-remote does support multiple recipients, so if you're
> > intent on having this ability, just call qmail-remote directly using
> > whatever as you want to use to aggregate recipients. Then queue any
> > failures using qmail-inject (or sendmail interface).
> >
> > Andy
> >
> >

--
Dr. Erwin Hoffmann | FEHCom | http://www.fehcom.de
Attachments: signature.asc (0.19 KB)


rejaine at bhz

Aug 18, 2010, 1:45 PM

Post #10 of 19 (1533 views)
Permalink
Re: qmail single rct vs multiple rctp [In reply to]

Hi Erwin

Thank you for quick response (and sorry my poor english..)

Excuse me for insisting on this question, but I would like to find a
way to control the abuse when users sending large messages to multiple
recipients. Only databytes and maxrcpt controls, alone, is not enough
to control this. For example, I have had problems with users who send
3MB attachments files (including photos, PDF files or documents files)
to multiple recipients and this causes problems with my bandwidth or
sometimes the messages are stuck in the queue from many hours.

Anyway, thank you all for tips sand information.



Em 18-08-2010 17:25, Erwin Hoffmann escreveu:
> Hi Rejaine,
>
> practically, your answer with 'man qmail-smtpd'.
>
> Am Mittwoch, den 18.08.2010, 16:52 -0300 schrieb Rejaine Monteiro:
>
>> well, I'll change the question now...
>>
>> I know I can use databytes (to limit max size for a single message)
>> and maxrct (to limit the maximum amount of recipeints for a sigle
>> message) , but I would like to know how to use them together.
>>
>> I don't know if I'm being clear, but I want to control the "message
>> size" size of individual message by users , but need control the
>> "amount" of messages (in bytes) that is generated by a message from a
>> user to many people.
>>
> The 'Databytes' limit only is defined for receiving emails via
> qmail-smtpd; sending emails (qmail-inject and othters) does not allow
> enforcing size limits on the message.
>
>
>
>> See this situation:
>>
>> databytes = 10MB
>> maxrctp = 20
>>
>> I don't care if users sends 500k message to 20 users (+- 1.2MB on
>> total). but must prevent him to send a message 10 MB message to 5
>> users (+- 50MB on total)
>>
> The 'Databytes' limit of qmail-smtpd is only used after a DATA command
> (not true for some patches -- including mine).
> In case an ESMTP session includes several transaction it applies to
> each; thus it is not cumulative.
>
>
> regards.
> --eh.
>
>
>
>>
>>
>> Limit the Maximum Amount of Recipients for a Single Message in QMail.
>>
>> Em 17-08-2010 21:31, Andy Bradford escreveu:
>>
>>> Thus said Rejaine Monteiro on Tue, 17 Aug 2010 10:26:35 -0300:
>>>
>>>
>>>
>>>> Does not really exist any possiblity to implement the multi-RCTP on
>>>> qmail?
>>>>
>>>>
>>> I believe qmail-remote does support multiple recipients, so if you're
>>> intent on having this ability, just call qmail-remote directly using
>>> whatever as you want to use to aggregate recipients. Then queue any
>>> failures using qmail-inject (or sendmail interface).
>>>
>>> Andy
>>>
>>>
>>>
>


feh at fehcom

Aug 18, 2010, 2:00 PM

Post #11 of 19 (1534 views)
Permalink
Re: qmail single rct vs multiple rctp [In reply to]

Hi,

yupp, this is the classical case of qmail wasting bandwith:

For each recipient the entire message is again, instead of sending the
same message to every recipient.

Well. DJB serial mail can be used. I have other users which simply use a
postfix server as booster at the end of the delivery chain.

With qmail means, this can not avoided. I'm sorry.

This is mostly a political question (except for the bandwidth, which is
a economical question).

regards.
--eh.


Am Mittwoch, den 18.08.2010, 17:45 -0300 schrieb Rejaine Monteiro:
> Hi Erwin
>
> Thank you for quick response (and sorry my poor english..)
>
> Excuse me for insisting on this question, but I would like to find a
> way to control the abuse when users sending large messages to multiple
> recipients. Only databytes and maxrcpt controls, alone, is not enough
> to control this. For example, I have had problems with users who send
> 3MB attachments files (including photos, PDF files or documents files)
> to multiple recipients and this causes problems with my bandwidth or
> sometimes the messages are stuck in the queue from many hours.
>
> Anyway, thank you all for tips sand information.
>
>
>
> Em 18-08-2010 17:25, Erwin Hoffmann escreveu:
> > Hi Rejaine,
> >
> > practically, your answer with 'man qmail-smtpd'.
> >
> > Am Mittwoch, den 18.08.2010, 16:52 -0300 schrieb Rejaine Monteiro:
> >
> >> well, I'll change the question now...
> >>
> >> I know I can use databytes (to limit max size for a single message)
> >> and maxrct (to limit the maximum amount of recipeints for a sigle
> >> message) , but I would like to know how to use them together.
> >>
> >> I don't know if I'm being clear, but I want to control the "message
> >> size" size of individual message by users , but need control the
> >> "amount" of messages (in bytes) that is generated by a message from a
> >> user to many people.
> >>
> > The 'Databytes' limit only is defined for receiving emails via
> > qmail-smtpd; sending emails (qmail-inject and othters) does not allow
> > enforcing size limits on the message.
> >
> >
> >
> >> See this situation:
> >>
> >> databytes = 10MB
> >> maxrctp = 20
> >>
> >> I don't care if users sends 500k message to 20 users (+- 1.2MB on
> >> total). but must prevent him to send a message 10 MB message to 5
> >> users (+- 50MB on total)
> >>
> > The 'Databytes' limit of qmail-smtpd is only used after a DATA command
> > (not true for some patches -- including mine).
> > In case an ESMTP session includes several transaction it applies to
> > each; thus it is not cumulative.
> >
> >
> > regards.
> > --eh.
> >
> >
> >
> >>
> >>
> >> Limit the Maximum Amount of Recipients for a Single Message in QMail.
> >>
> >> Em 17-08-2010 21:31, Andy Bradford escreveu:
> >>
> >>> Thus said Rejaine Monteiro on Tue, 17 Aug 2010 10:26:35 -0300:
> >>>
> >>>
> >>>
> >>>> Does not really exist any possiblity to implement the multi-RCTP on
> >>>> qmail?
> >>>>
> >>>>
> >>> I believe qmail-remote does support multiple recipients, so if you're
> >>> intent on having this ability, just call qmail-remote directly using
> >>> whatever as you want to use to aggregate recipients. Then queue any
> >>> failures using qmail-inject (or sendmail interface).
> >>>
> >>> Andy
> >>>
> >>>
> >>>
> >
>

--
Dr. Erwin Hoffmann | FEHCom | http://www.fehcom.de
Attachments: signature.asc (0.19 KB)


ve2cii at canasoft

Aug 18, 2010, 5:18 PM

Post #12 of 19 (1535 views)
Permalink
Re: qmail single rct vs multiple rctp [In reply to]

Hi,

There is a patch for qmail called qmail-spp.

http://qmail-spp.sourceforge.net

And for this patch there is a plugin called rate from.
This should do what you want as I had the same problem.
The plugin is pretty configurable to set it up the way
that you want. If you need help with it let me know.

> Hi Erwin
>
> Thank you for quick response (and sorry my poor english..)
>
> Excuse me for insisting on this question, but I would like to find a
> way to control the abuse when users sending large messages to multiple
> recipients. Only databytes and maxrcpt controls, alone, is not enough
> to control this. For example, I have had problems with users who send
> 3MB attachments files (including photos, PDF files or documents files)
> to multiple recipients and this causes problems with my bandwidth or
> sometimes the messages are stuck in the queue from many hours.
>
> Anyway, thank you all for tips sand information.
>
>
>
> Em 18-08-2010 17:25, Erwin Hoffmann escreveu:
>> Hi Rejaine,
>>
>> practically, your answer with 'man qmail-smtpd'.
>>
>> Am Mittwoch, den 18.08.2010, 16:52 -0300 schrieb Rejaine Monteiro:
>>
>>> well, I'll change the question now...
>>>
>>> I know I can use databytes (to limit max size for a single message)
>>> and maxrct (to limit the maximum amount of recipeints for a sigle
>>> message) , but I would like to know how to use them together.
>>>
>>> I don't know if I'm being clear, but I want to control the "message
>>> size" size of individual message by users , but need control the
>>> "amount" of messages (in bytes) that is generated by a message from a
>>> user to many people.
>>>
>> The 'Databytes' limit only is defined for receiving emails via
>> qmail-smtpd; sending emails (qmail-inject and othters) does not allow
>> enforcing size limits on the message.
>>
>>
>>
>>> See this situation:
>>>
>>> databytes = 10MB
>>> maxrctp = 20
>>>
>>> I don't care if users sends 500k message to 20 users (+- 1.2MB on
>>> total). but must prevent him to send a message 10 MB message to 5
>>> users (+- 50MB on total)
>>>
>> The 'Databytes' limit of qmail-smtpd is only used after a DATA command
>> (not true for some patches -- including mine).
>> In case an ESMTP session includes several transaction it applies to
>> each; thus it is not cumulative.
>>
>>
>> regards.
>> --eh.
>>
>>
>>
>>>
>>>
>>> Limit the Maximum Amount of Recipients for a Single Message in QMail.
>>>
>>> Em 17-08-2010 21:31, Andy Bradford escreveu:
>>>
>>>> Thus said Rejaine Monteiro on Tue, 17 Aug 2010 10:26:35 -0300:
>>>>
>>>>
>>>>
>>>>> Does not really exist any possiblity to implement the multi-RCTP
>>>>> on
>>>>> qmail?
>>>>>
>>>>>
>>>> I believe qmail-remote does support multiple recipients, so if
>>>> you're
>>>> intent on having this ability, just call qmail-remote directly
>>>> using
>>>> whatever as you want to use to aggregate recipients. Then queue
>>>> any
>>>> failures using qmail-inject (or sendmail interface).
>>>>
>>>> Andy
>>>>
>>>>
>>>>
>>
>
>


-
sysadm cronomagic.com
e-mail ve2cii [at] canasoft

POWERED BY LINUX


amb-sendok-1284772590.imiofmbigggnkljjapej at bradfo

Aug 18, 2010, 6:16 PM

Post #13 of 19 (1529 views)
Permalink
Re: qmail single rct vs multiple rctp [In reply to]

Thus said Rejaine Monteiro on Wed, 18 Aug 2010 17:45:46 -0300:

> Excuse me for insisting on this question, but I would like to find a
> way to control the abuse when users sending large messages to multiple
> recipients.

This problem isn't as much a technical problem as it is a
social/economic problem. If you haven't the bandwidth to support your
email volume, then you aren't charging enough for the emails that you
allow through your system, or you have no business hosting your own
email. Start charging those who use more bandwidth and the problem will
largely resolve itself. If you are unable to charge them for their
usage, then you need more bandwith (either purchased yourself or by
hosting email elsewhere).

Andy


amb-sendok-1284779725.bnknlhipcmbnjdmendfj at bradfo

Aug 18, 2010, 8:15 PM

Post #14 of 19 (1528 views)
Permalink
Re: qmail single rct vs multiple rctp [In reply to]

Thus said Erwin Hoffmann on Wed, 18 Aug 2010 23:00:34 +0200:

> Well. DJB serial mail can be used. I have other users which simply use
> a postfix server as booster at the end of the delivery chain.

serialmail won't really help in this instance either. Even if an SMTP
client submits a message to qmail-smtpd using multiple RCPTs, qmail-send
will cause multiple deliveries to the local user responsible for
handling the domain's messages. Then, when serialmail picks them up, it
will transmit all messages for that domain over a single SMTP session.
So, one message with 10 recipients will still result in 10 messages to
be delivered, they will simply be delivered serially instead of in
parallel. No bandwidth is saved in this case.

Andy


lists-qmail at maexotic

Aug 18, 2010, 9:13 PM

Post #15 of 19 (1521 views)
Permalink
Re: qmail single rct vs multiple rctp [In reply to]

On Wed, Aug 18, 2010 at 04:52:36PM -0300, Rejaine Monteiro wrote:
> I don't care if users sends 500k message to 20 users (+- 1.2MB on
> total). but must prevent him to send a message 10 MB message to 5 users
> (+- 50MB on total)

Do I get this right?
You want to prevent user A to send
1 x 10 MB to B C D E F
in one set, but it would be ok for user A to send
1 x 10 MB to B
1 x 10 MB to C
1 x 10 MB to D
1 x 10 MB to E
1 x 10 MB to F
in single messages?

Please think again.
What problem you are trying to solve?
This surely isn't it.

\Maex


qmail-09 at jeremykister

Aug 18, 2010, 10:08 PM

Post #16 of 19 (1526 views)
Permalink
Re: qmail single rct vs multiple rctp [In reply to]

On 8/19/2010 12:13 AM, Markus Stumpf wrote:
> Do I get this right?

I don't think you did :)

He doesnt want to arbitrarily pick a maximum number of recipients per
message (like the maxrecipient/tarpit patches) because he doesnt mind if
someone sends a 500k message to 20 people. At the same time, he doesnt
want someone to be able to send a 10mb message to even 5 people because
of throughput/bandwidth/etc concerns.

It appears to me that he wants a sort of dynamic throttling mechanism
based on the total transfer throughput a transaction would yield.

so after ending the DATA phase with <CRLF>.<CRLF>, instead of qmail
responding immediately with a 250, it'd first analyze (size of the
message * number of recipients), and if it exceeds X bytes, then respond
with 554.

--

Jeremy Kister
http://jeremy.kister.net./


lists-qmail at maexotic

Aug 18, 2010, 11:00 PM

Post #17 of 19 (1518 views)
Permalink
Re: qmail single rct vs multiple rctp [In reply to]

On Thu, Aug 19, 2010 at 01:08:39AM -0400, Jeremy Kister wrote:
> On 8/19/2010 12:13 AM, Markus Stumpf wrote:
> >Do I get this right?
>
> I don't think you did :)

I think I did :-P

> so after ending the DATA phase with <CRLF>.<CRLF>, instead of qmail
> responding immediately with a 250, it'd first analyze (size of the
> message * number of recipients), and if it exceeds X bytes, then respond
> with 554.

Maybe I wasn't clear enough.
As long as he cannot detect and handle one person sending one mail
in single sessions (always a new connection) of size 10 MB to 10
recipients it is totally irrelevant if he can detect 1 person sending
a 10 MB mail to 10 recipients in one session.
The latter is even worse.

If his bandwidth is *so* limited he should set
control/concurrencyremote
to something like 2 or 3.

I guess the problems he sees result from too many concurrent
transmissions in case of large mails, so remote mailservers give up
because the session takes too long to finish.

With a setting of 2 or 3 the mails will probaby all go through, even if
new and small ones are probably delayed a bit more.

\Maex


rejaine at bhz

Aug 19, 2010, 4:37 AM

Post #18 of 19 (1513 views)
Permalink
Re: qmail single rct vs multiple rctp [In reply to]

Hello, Markus

Thank you for the return

I understood what you said and I agree with you at this point : I cannot
prevent users from sending messages to multiple people using single
messages.

And to work around this situation, I created a script to calculate the
number of bytes sent per day for each user. If it exceeds a
predetermined limit, I send an alert to the user (with a copy to the
admin) alerting you about and increasing the limit in N megabytes. If
he insist and overcome again the new limit, your account may be disabled
temporarily.

This way, I can take the appropriate administrative measures curb misuse
of bandwidth, but still haven't found a way to try to prevent it before
it happens. And so we realized so far, seems to be no other way.

Em 19-08-2010 01:13, Markus Stumpf escreveu:
> On Wed, Aug 18, 2010 at 04:52:36PM -0300, Rejaine Monteiro wrote:
>
>> I don't care if users sends 500k message to 20 users (+- 1.2MB on
>> total). but must prevent him to send a message 10 MB message to 5 users
>> (+- 50MB on total)
>>
> Do I get this right?
> You want to prevent user A to send
> 1 x 10 MB to B C D E F
> in one set, but it would be ok for user A to send
> 1 x 10 MB to B
> 1 x 10 MB to C
> 1 x 10 MB to D
> 1 x 10 MB to E
> 1 x 10 MB to F
> in single messages?
>
> Please think again.
> What problem you are trying to solve?
> This surely isn't it.
>
> \Maex
>
>


qmail-09 at jeremykister

Aug 19, 2010, 11:33 AM

Post #19 of 19 (1518 views)
Permalink
Re: qmail single rct vs multiple rctp [In reply to]

On 8/19/2010 2:00 AM, Markus Stumpf wrote:
> I think I did :-P

ah, yes; you're right. I missed your point.

--

Jeremy Kister
http://jeremy.kister.net./

Qmail users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.