I must be doing something wrong, but what?

I have a brand new VPS, and I'm using Webmin to get Sendmail running.

I'm just trying to accept mail for a certain domain and forward it to my other email address.

This is what I've done:

  • I have Local Domains (Cw) configured to accept mail for my domain
  • I have Address Mappings (virtuser) set to forward everything from my domain to my email address
  • I stopped and started Sendmail
  • I'm not using a firewall

But when I try to connect to my VPS on port 25, it says "connection refused".

When I try to connect from the VPS itself (using telnet localhost 25), it does connect.

So why can't I connect remotely?


  • Did you check your firewall? – EEAA Oct 29 '15 at 3:58
  • And this too: netstat -npl | grep :25 – Ryan Babchishin Oct 29 '15 at 4:01
  • To get sendmail to listen to more than localhost: serverfault.com/a/673423/37681 – HBruijn Oct 29 '15 at 6:16
  • Thanks HBruijn, that was it. That worked. If you answer this as an answer instead of a comment, I can mark it as the right answer. – Magmatic Oct 30 '15 at 14:33

Your Answer

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

Browse other questions tagged or ask your own question.