Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Our application sends out a lot of email notifications! how can I send out email notification without causing long delays?

(its not a email newsletter, its account notifications)

share|improve this question
1  
What kind of delays are you referring to? Can you give us specifics? –  joeqwerty Jun 24 '10 at 1:40
    
Why the asp.net and c# tags, which have no relevance to email delivery? –  John Gardeniers Jun 24 '10 at 4:44

2 Answers 2

Send plain-text notifications only, keep em short and sweet. (Think tweet)

Use QOS on router/firewall to lower the priority of the outbound email.

Send in batches, say, 50 every 10 minutes.

share|improve this answer

Once upon a long time ago I was given the task of streamlining the processing of sending mail to a quarter of a million subscribers. (I was the senior sysadmin at a little anti-virus company and this was the list that people subscribed to for notification when the regular "defs" (virus pattern definition) files were posted to our BBS (remember those?), FTP and web sites).

My first step was to normalize that addresses (down to just user@domain.tld) and then sort that through the command: rev | sort | rev ... producing a list sorted by domains (and even sorted by subdomains with any upper level domain. This reduced queue processing time by about one order of magnitude (using a contemporary copy of plain old sendmail (The trick here is that most SMTP servers used to allow message pipelining --- allowing multiple messages/recipients to be processed with fewer separate TCP sessions).

Of course I also scaled it out over a couple of machines, later.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.