1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.5 SMTP multi-threading

Discussion in 'XenForo Questions and Support' started by tr1cky, Mar 25, 2016.

  1. tr1cky

    tr1cky Member


    I noticed sending mails with the "Email Users" feature and using an SMTP server is very slow.
    Yesterday it took a bit more than 4 hours to send a mail to ~10000 users.
    Is there any way to speed this up, maybe by getting xenforo to open multiple smtp connections to my smtp host?


  2. Brogan

    Brogan XenForo Moderator Staff Member

    There is no option for that.

    The time you have quoted is perhaps a little on the slow side - it works out to approximately 42 emails per minute, which is around 1.5 seconds per email.
    Bear in mind that for each email there has to be connection establishment, encryption, packet exchange, etc.

    You could try using the default (PHP) method with an external service such as Google Apps, which would offer better performance than SMTP, as the emails are handed off asynchronously.

    Would you also mind posting in this thread?
  3. tr1cky

    tr1cky Member

    I tried to use ssmtp to relay php mail to my external mailserver. This however felt equally slow.

    Since I'm using my own VPS with mailcow I don't know if that would help.
    But if you'd like to know: It's a VPS from hostus.us with 1 vCPU, 768MB ram and 20gb hdd.

    Are you aware of alternatives to ssmtp that handle mail asynchronously?
    I already tried nullmailer but nullmailer includes some extra headers that are exposing the backend IP.
    Is exim4 sending asynchronously when you configure it to relay mail?

Share This Page