Koozali.org: home of the SME Server

Ho to control the bandwidh of one user of my email server.

Offline jmarcosm

  • **
  • 59
  • +0/-0
Ho to control the bandwidh of one user of my email server.
« on: March 16, 2016, 10:49:30 PM »
Hi,

I have a user that is sending mails to 870 different addresses. Because I have a small upload bandwith (2Mb) my server is dead until all this emails are sent. There is a way to reduce the bandwith to send email to this user?

Thank you in advance for the help

Marcos
...

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: Ho to control the bandwidh of one user of my email server.
« Reply #1 on: March 16, 2016, 11:32:13 PM »
Marcos

https://wiki.contribs.org/Qos

or the Wondershaper script (manual install & configuration), look in Howtos.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline jmarcosm

  • **
  • 59
  • +0/-0
Re: Ho to control the bandwidh of one user of my email server.
« Reply #2 on: March 19, 2016, 03:35:31 PM »
Thank you Janet for your respond!

Y have a pfsense firewall , so I can do QOS with the it. I wonder is if is possible to control the traffic of a especific user. I have a 9.1 installation. Searching the contribs.org site I found a contrib AltQmail that seems to be my solution but is not working on 9.1!

https://wiki.contribs.org/AltQmail

 "You sometime send relativly big mailing (several 100 or 1000 at a time), so you do not want to reduce the global remote concurrency limit "

Shold be possible with this contrib split the email outgoing traffic in 2 queues and control witch user use this queue?

Thank you in advance for any comment

Marcos
...

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Ho to control the bandwidh of one user of my email server.
« Reply #3 on: March 19, 2016, 07:12:22 PM »
I have a user that is sending mails to 870 different addresses. Because I have a small upload bandwith (2Mb) my server is dead until all this emails are sent. There is a way to reduce the bandwith to send email to this user?

Ask that user to send the messages directly via an external mail server, rather than your server. That way only a single copy will leave your server, not 870 copies.

There's no easy technical way to do what you are asking.

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: Ho to control the bandwidh of one user of my email server.
« Reply #4 on: March 19, 2016, 07:44:22 PM »
jmarcosm

Quote
I found a contrib AltQmail that seems to be my solution but is not working on 9.1!
https://wiki.contribs.org/AltQmail

As it says at the end of that article, if there are problems with the contrib please post a bug report.
That is the way to trigger off the maintainer to do some fixes.
Be prepared to follow through with log entries etc as requested.


Wondershaper should still help with reducing your bandwidth saturation.

Qmail will queue the outgoing messages, & SME server will establish 40 concurrent remote connections by default.
Qmail will try to use as much bandwidth as it can.

You can set the qmail Remote Concurrency setting to be very low, the validity of doing so depends on your servers mail load etc (how many messages going in & out & how quickly you want to send/receive them & the size of each message).

This will help to slow down the outgoing mesages & therefore reduce the saturation of your bandwidth.

db configuration setprop qmail ConcurrencyRemote 1
signal-event email-update

More typical lower settings on SME are
config setprop qmail ConcurrencyLocal 4
config setprop qmail ConcurrencyRemote 10
signal-event email-update
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.