DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 6th November 2008
Yuka Yuka is offline
Complete BSD nubcake
 
Join Date: Jul 2008
Posts: 31
Default Webserver email queue

Hi all,

I run a webserver that hosts a ton of websites and they are getting busier. I don't run my own mail server and instead have PHP configured to send email via my ISPs SMTP server.

I'm now facing a problem where some of these websites send out email too fast and my ISPs server is dropping the messages because I have reached a threshhold.

I'd like to set up an SMTP "relay" daemon locally that the webserver will send the emails to and then this relay daemon will send the emails out at a steady pace. This will hopefully defeat the problem, although delaying emails at peak times which is totally acceptable.

What's the best way to set this up? Any suggestions on mailservers/smtp agents? I'm only asking because I've seen quite a few of them and they all advertise themselves as being "the best" for the job... which doesn't help me! So please, speak from experience, as I have none.
Reply With Quote
  #2   (View Single Post)  
Old 6th November 2008
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,125
Default

Simplest way is to talk to your ISP, explain the situation and ask them to be more liberal in accepting connections from your webserver.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #3   (View Single Post)  
Old 11th November 2008
stukov's Avatar
stukov stukov is offline
Real Name: Jean-Michel Philippon-Nadeau
Package Pilot
 
Join Date: May 2008
Location: Sherbrooke, Qc, Canada
Posts: 167
Default

You could also install postfix from ports. There is an option that will allow you to throttle outgoing messages. I cannot speak for other MTA because I haven't played much with other, as I have always been satisfied with postfix.

Once your MTA is configured properly, simply change your php.ini to make your mail function relay mail through your own MTA.

Of course, that is if your ISP does not want to help you with your issue.
__________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction."
Reply With Quote
  #4   (View Single Post)  
Old 11th November 2008
Yuka Yuka is offline
Complete BSD nubcake
 
Join Date: Jul 2008
Posts: 31
Default

I think I'm going to install postfix to do this. I called my ISP but they told me, "There is a limit for a reason" and that was the end of the call pretty much.

UPDATE: I have postfix installed and sending email via my ISP's SMTP server just fine and dandy.

What do I look for to throttle outgoing email (email going from my postfix to the ISP's SMTP server)?

I saw the in_flow_rate setting in the postfix conf but from my understanding of the explanation it just throttles inbound email (to the postfix server)? That doesn't sound like it will help me, but I could very well be wrong.

UPDATE 2:

Would I have to modify default_destination_concurrency_limit ? Would that decrease the rate at which the SMTP server could send emails?

Last edited by Yuka; 11th November 2008 at 11:44 PM.
Reply With Quote
  #5   (View Single Post)  
Old 12th November 2008
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,125
Default

You forgot how to google? See http://www.postfix.org/qmgr.8.html
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #6   (View Single Post)  
Old 12th November 2008
Yuka Yuka is offline
Complete BSD nubcake
 
Join Date: Jul 2008
Posts: 31
Default

Quote:
Originally Posted by J65nko View Post
You forgot how to google? See http://www.postfix.org/qmgr.8.html
Sorry, I haven't had much luck with google + open source in recent years... most things I find are hack jobs that rarely work or outdated documentation.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PF-queue ultranothing OpenBSD Security 3 1st September 2009 05:24 PM
Email and SASL JMJ_coder General software and network 3 8th February 2009 05:09 AM
Maintenance free webserver Yuka FreeBSD General 1 29th November 2008 10:36 PM
PF w/ ALTQ - Queue errors exceeding bandwidth plexter OpenBSD Security 11 26th October 2008 12:01 AM
send files to email milo974 OpenBSD General 7 1st September 2008 02:03 PM


All times are GMT. The time now is 02:34 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick