October 2018

Bash script to send Bulk email with Postfix and Gmail

Sometime it is needed send the same email at several people, unfortunately ours email services providers doesnt' allow this, usually there is a daily limit for the outgoing emails and if we put a lot of recipients in the Ccn field the email is marked as spam and it is blocked. For sending Bulk email there are a lof of professional services but if we don't have to accomplish this task regularly and we don't need that all the recipients receive the email in the same time then we can use a different approach. Gmail, for example, allow us to send an email at 500 recipients every 24 hours, but if we use the field CCn with a lot of recipients then the email si blocked. With these considerations we can send our email at 500 recipients, wait 24 hours and then send the same email at others 500...