Answer the question
In order to leave comments, you need to log in
How to set up smtp server on postfix using smtp.gmail.com as relay?
Hello
At the moment I have the following scheme for sending email:
mydomain.com( server1 ) -> smtp.gmail.com -> client
mydomain.com( server1 ) -> smtp.myproxy.com postfix relay( server2 ) -> smtp.gmail.com -> client
cat /etc/postfix/main.cf
inet_interfaces = all
mynetworks = 1.1.1.1/32,127.0.0.1/32
mailx -S smtp=<postfix-server-ip> -r <sender-email> -s subfff -v <receiver-email>
Answer the question
In order to leave comments, you need to log in
Answer:
In file:
added:
inet_interfaces = all
mynetworks = 1.1.1.1/32,127.0.0.1/32
mailx -S smtp=<postfix-server-ip> -r <sender-email> -s subfff -v <receiver-email>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question