How to send 1M emails a day with postfix [closed]

I’ve set up and configured postfix on a test server. it seems to be working. I can send emails to Gmail accounts and I see the email. I’ve even set it up and running on nodejs. I want to configure this server to reach 200,000 Emails an hour and 2M emails a day. All emails will be about 1MB. I’m aware that data charges apply and I’ve calculated the data cost for 30TB.

  1. What are the server specs required for such a task. my test cloud server has 32GB of RAM, 8 dedicated cores and 2SSDs. Network speed is about 350mpbs on avg.
  2. Should I use some different load balancing methods?
  3. Emails are stored in a MySQL DB. ive made a nodejs file which has a for loop to get 100 emails from the db and send the email to the following 100 before sending more. any suggestions?
  4. Anything else I need to know?

Answer

  1. Postfix tuning is not necessary – start to tune Your knowledge about E-Mail System, base on Your questions You have no idea how its working.
  2. Your Postfix client (in that case is not a server) could have 512MB RAM and 1 CPU – what is important – You need fast connection
  3. Your Postfix client is not important in that case – important is E-Mail Server to which You are trying to deliver messages (are You sure that some one (let say: gmail.com ) will accept 300 000 E-Mails from Your host in one day ? – hahhaha 😀 – they will cut Your connection immediately and write in Your maillog – please come back later 😉 )
  4. Loadbalancing ? What for ? – If You are sending message to 500 gmail.com users Your host should establish max 1 connection and using it deliver package of E-mails to gmail.com
  5. If You will start to send massive amount of E-mails Your host will receive also big amount of bounces 😉 – be ready for it 😉
  6. If You have a fresh IP without reputation – You will be blocked for many hours each time when You will try to resend again big amount of E-mails (by many service providers).
    … and so on… and so on…

If You would like to deliver big amount of E-Mails, first understand how SMTP protocol is working. On the beginning, I suggest You to rent massmailing service.

Attribution
Source : Link , Question Author : janithcooray , Answer Author : Konrad W.

Leave a Comment