SMTP

How to configure postfix to use Gmail SMTP on Ubuntu

If you do not have postfix installed before, postfix configuration wizard will ask you some questions. Just select your server as Internet Site and for FQDN use something like mail.example.com Then open your postfix config file: and following lines to it: You might have noticed that we haven’t specified our Gmail username and password in above lines. They …

How to configure postfix to use Gmail SMTP on Ubuntu Read More »

How to fix postfix/smtp Network is unreachable error

When trying to send email to a gmail account through postfix you can see an error like this in the postfix logs /var/log/maillog : Solution for IPv4  If you want to use IPv4 instead, then you should edit the Postfix configuration file: And change inet_protocols = all to inet_protocols = ipv4 and restart or reload Postfix: Solution for IPv6 …

How to fix postfix/smtp Network is unreachable error Read More »