Skip to main content

Harsh

send bulk emails like a pro on your own using postfix

⚙ Installation

sudo apt install postfix mailutils

📝 adding SPF record to your DNS

xyz.com. 1799 IN TXT "v=spf1 ip4:x.x.x.x a mx ~all"

 

🔧 Commands

✉ Sending test mail

echo "body" | mail -s "subject" -a "From: Harsh Z <sender@example.com>" receiver@example.com

📤 Check Mail Queue

mailq

🗑 Clear Mail Queue

postsuper -d ALL

 

✅ Verifying Mail in Gmail

  1. Open Email
  2. More (three dots on top right)
  3. Show Original
  4. Look for SPF (Pass with IP x.x.x.x)

 

🧰 Google Toolbox

https://toolbox.googleapps.com/apps/dig/