Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Mar 2004
    Posts
    347

    Default Separate queue for mail() e-mails

    Hello,

    Does anybody have idea how to force separate queue for e-mail made by PHP mail() function on the server? It would be very helpful for customers who sends newsletters etc preventing of server overload. For example, the queue would be run every 1 minute to send 10 e-mail from it?

    Thanks

  2. #2
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    What about writing the script to send in batches?
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  3. #3
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Mar 2004
    Posts
    347

    Default

    I have over 200 clients on every server, so I can't tell everyone to write such script. I want to solve this situation on the server, not client, side.

  4. #4
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    I'm not aware of any (simply) way to do that with exim. You could have a trawl of the site at www.exim.org. An alternative would be to set those domains to only queue email instead of delivering it at once. That way it will be sent in batches on the next queue run.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  5. #5
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Mar 2004
    Posts
    347

    Default

    Sounds better But how to set exim to put mail() e-mails in queue, if each user can set From: header to their domain, not server hostname?

    Any idea

  6. #6
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Well, exim knows nothing at all about the php mail() function. However, what you could do is have the hostname set to queue_domains which may well work for what you want. So, in the first textarea of the Exim Configuration Editor in WHM add:

    queue_domains = server.hostname.com

    Replacing server.hostname.com with your servers FQDN hostname. Try it and see if it does queue rather than send immediately.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  7. #7
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Mar 2004
    Posts
    347

    Default

    Thanks, I will try.

Similar Threads & Tags
Similar threads

  1. Problem: Server sending SPAM mails. Mail Queue with thousand of mails
    By jaimesuez in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 06-08-2011, 02:00 PM
  2. Difference between ConfigServer Mail Queue and Mail Queue Manager
    By fearmydesign in forum E-mail Discussions
    Replies: 4
    Last Post: 02-28-2011, 06:48 PM
  3. Replies: 4
    Last Post: 02-28-2011, 06:48 PM
  4. Virus mails filling my mail queue (MyDoom-O and Win32.Sober.y)
    By neo4242002 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 02-27-2006, 03:36 AM
  5. Exim queue, lot of mails, queue not deliver
    By cass in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-21-2004, 07:35 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube