No announcement yet.

Slow posting solution (sendmail problems)

  • Filter
  • Time
  • Show
Clear All
new posts

  • Slow posting solution (sendmail problems)

    I've been pulling my hair out the last couple days trying to figure out why our site was intermittently extremely slow while posting. In researching here I discovered the sendmail issue ( ) that could cause this. Looking through my logs I found that yesterday was refusing connections. While watching today found that hotmail and a number of others would time out for short periods. The solution I came up with was to put sendmail into queue mode (rather than background mode) and to set it to check the queue every 5 minutes and send out any queued email. To do this first find your file and search for "DeliveryMode=", it will most likely be set to "background" - change it to queue or:

    O DeliveryMode=queue

    Then you need to change sendmail to check the queue every 5 minutes. I did this by adding this line to my rc.conf file:

    sendmail_flags="-bd -q5m"

    if there is already a sendmail_flags entry there I would just add the "-q5m" to it. Now any email notifications or emails will go into the queue and will be sent up to 5 minutes from that time. It's only a solution for those that are on their own server and delays emails going out but IMO it's much better than having slow posting issues. In a couple cases I had users waiting up to 5 minutes for posts to go through.
    -Steve St.Laurent
    Webmaster of
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.