Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Rate limiting qmail-send
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Spooky Ghost
Apprentice
Apprentice


Joined: 19 Apr 2002
Posts: 210
Location: Bristol, United Kingdom

PostPosted: Fri Jan 04, 2008 5:50 pm    Post subject: Rate limiting qmail-send Reply with quote

Hi,

Does anyone have a method of rate limiting qmail-send? I run a couple of low volume mailing lists using ezmlm from my home machine but there are approx 100 people on the lists. Because other people configure their mail servers to refuse connections or just drop messages from "dialup" DHCP addresses I have configured smtproutes so that all the traffic is routed via my ISP's SMTP servers. However, if there are more than ~30 messages a minute they think your machine is a spambot and you get letters telling you to visit microsoft.com and download the latest patches lol. Although they haven't got nasty yet this is against the Ts&Cs so I would like to resolve it. Basically I just want to restrict the number of messages that qmail-send will attempt to send in any one minute period.

Thanks,
Back to top
View user's profile Send private message
PBR
n00b
n00b


Joined: 02 Apr 2006
Posts: 13

PostPosted: Sat Jan 05, 2008 7:04 am    Post subject: Reply with quote

IMHO Qmail does not have a way to do this. The way u can solve your problem is to write script and call it from the QMAILQUEUE mechanism. You can also install qmail-spp and write plugin to do the job for U.
Back to top
View user's profile Send private message
Spooky Ghost
Apprentice
Apprentice


Joined: 19 Apr 2002
Posts: 210
Location: Bristol, United Kingdom

PostPosted: Wed Jan 09, 2008 10:10 am    Post subject: Reply with quote

I don't think either of these methods (i'm not familiar with qmail-ssp but just having a quick read) would work as they operate on the inbound side of the mail queue. My understanding of ezmlm is that it submits just one message but uses multiple RCPT headers to target all the list subscribers. Since the message is handled by qmail internally this is why I need to be able to manage the outbound rate. The other option I can think of is to use a second mta installation locally as a relay and apply the limiting as initially suggested. I would be open to using an alternative to qmail for this if there are any systems which have such a feature out of the box?
Back to top
View user's profile Send private message
manaka
Apprentice
Apprentice


Joined: 23 Jul 2007
Posts: 178
Location: Spain

PostPosted: Wed Jan 09, 2008 8:11 pm    Post subject: Reply with quote

qmail is designed to be simple, secure and efficient :-). It doesn't implement all the features of the more bloated MTAs.

Postfix doesn't seem to implement this feature either (http://www.postfix.org/rate.html).

I would suggest trying kernel bandwidth limiting as the cleanest solution.
_________________
Javier Miqueleiz

"Listen to your heart. It knows all things, because it came from the Soul of the World, and it will one day return there."
Back to top
View user's profile Send private message
Spooky Ghost
Apprentice
Apprentice


Joined: 19 Apr 2002
Posts: 210
Location: Bristol, United Kingdom

PostPosted: Thu Jan 10, 2008 9:14 am    Post subject: Reply with quote

Bandwidth limiting doesn't restrict the number of messages, only the rate at which data is transferred. The aim is to only pass n messages / minute to the relay, not n bytes of data. Although you could perhaps try and restrict the number of TCP connections that are established / minute you could still have multiple messages delivered in the same session and therefore exceed the limit.

It seems that there is no feature of qmail that implements my requirement so I think that using an intermediate local relay is the only option. Looking into this further I think postfix can do what I need with a suitable anvil configuration.
Back to top
View user's profile Send private message
manaka
Apprentice
Apprentice


Joined: 23 Jul 2007
Posts: 178
Location: Spain

PostPosted: Thu Jan 10, 2008 9:17 pm    Post subject: Reply with quote

Yes, that's true... But let's see...

AFAIK, qmail sends one copy of the message per recipient. This way it can implement VERP (Variable Envelope Return Path), a nice feature for mail lists.

Setting concurrencyremote to 1 and limiting the connection rate should do the trick.
_________________
Javier Miqueleiz

"Listen to your heart. It knows all things, because it came from the Soul of the World, and it will one day return there."
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum