I have a VPS in which I have installed and setup postfix as a send-only mail server.

This command here works perfectly fine to send mail echo "This email is a test" | mail -s "This is a test email" email@example.com

What I want to be able to do is send mail through it from a remote server using SMTP, however, it refuses the connection


You likely need to bind postix to listen on interfaces other then local host. Modify /etc/postfix.conf

  inet_interfaces = YOUR.IP,


  inet_interfaces = all

(You will also need to ensure your mynetworks line is correctly set so it knows what hosts can send through it)

And restart postfix.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.