Open your mail log
Open the file /etc/postfix/main.cf in any text editor.
Add this to main.cf
myorigin = gmail.com
myhostname = smtp.gmail.com
relayhost = [smtp.gmail.com]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_sasl_mechanism_filter = plain
inet_protocols = ipv4
smtp_use_tls = yes
I had to comment these out for mine to work
#mydomain_fallback = reconfigure.ca
#sender_canonical_maps = regexp:/etc/postfix/sender_canonical
#recipient_canonical_maps = regexp:/etc/postfix/recipient_canonical
Uncomment this line (remove the #)
tlsmgr unix – – n – 1 tlsmgr
sudo nano /etc/postfix/sasl_passwd
add this line to it
CMD-X to close
Y to save
NOTE: Change username and password to your google username and password
Run the following commands in terminal, one by one
sudo chmod 600 /etc/postfix/sasl_passwd
sudo postmap /etc/postfix/sasl_passwd
sudo launchctl stop org.postfix.master
sudo launchctl start org.postfix.master
sudo postfix upgrade-configuration
sudo postfix reload
sudo postfix flush
date | mail -s test email@example.com
Pay close attention to mail.log along the way, note the errors and fix them.
I’m being asked this question allot so figured I would make a tutorial on how to change the company name from text to an image so folks can upload their company logos to the header.
I have done my fair share of email campaigning for various clients and this knowledge mixed with some tips from the pros can surely help you get started.
Whether you want to do a campaign, subscription newsletter or you just want to email a bunch of potential clients you should do a little reading.