LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-20-2010, 04:58 AM   #1
kenneho
Member
 
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 657

Rep: Reputation: 40
Controlling the amount of outgoing messages from Postfix


Hi,


I have a linux server set up with postfix, which sends emails to our mail servers (MS Exchange).

The linux server itself generates a lot of emails, and I would like to limit the number of mails it can send out pr second so that it doesn't spam our mail servers. Anyone know how I can control the max number of outgoing emails my linux server can send? As of now it's possible for my linux server to cause a denial of service attack on our Exchange server since I have no way of controlling the rate of outgoing messages.

- kenneho
 
Old 12-20-2010, 08:06 AM   #2
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
From what I understand, Postfix runs as a set up daemon processes and these are controlled by master.cf. If I am not mistaken, there is a parameter that controls the interval between awakenings of the process. I would look at these settings to see what you can rate limit. You want to be careful though as you will want a sender to be able to connect (pickup daemon) and to have the message go into the queue but not (fully) acted upon so that it sits in an hold queue for a short while. You may still get a burst of emails as it flushes, I am not certain.
 
Old 12-21-2010, 05:44 AM   #3
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
This might help http://www.postfix.org/TUNING_README.html#rope
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix outgoing only MickyDavies Linux - Newbie 1 02-16-2009 08:42 AM
[SOLVED] outgoing messages met with error in maillog: connection refused by [127.0.0.1] sarsaeol Linux - Newbie 1 04-22-2008 04:28 PM
How to add a messgae to the end of all outgoing messages dula Linux - Server 4 05-07-2007 11:11 PM
Postfix: User messages are okay; but error messages themselves seem to be bouncing jgombos Linux - Server 3 03-03-2007 02:21 PM
Sendmail config: security and controlling outgoing mail unknownrisk Linux - Software 1 03-21-2004 02:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration