Configure postfix to relay mails using Gmail

Install postfix

Create file


Save and exit editor. Run

Edit postfix configuration file

Find and remove

At end of the file, add

Restart postfix

Now all mails will be forwarded using gmail.

Test Email Delivery

Install mailutils

On CentOS

To sent test email, run

Check mail log

See postfix

Leave a Reply

Your email address will not be published. Required fields are marked *