server won't send mail

6 posts / 0 new
Last post
#1 Sat, 04/29/2006 - 21:55

server won't send mail

I have postfix installed and it just won't send out any mail, from root (cron mails, status module mails etc) or from any vhosts. The system will receive mail ok.

This was a cpanel server from which I painstakingly removed all cpanels shit before installing virtualmin.

the error is:

Apr 30 14:51:30 secure2 postfix/smtp[[2016]]: connect to[[]]: Connection refused (port 25) Apr 30 14:51:30 secure2 postfix/smtp[[2016]]: 38526D40E6: to=<>, relay=none, delay=24, status=deferred (connect to[[]]: Connection refused)

Sun, 04/30/2006 - 00:01
Joe's picture

Hey Tom,

I'm not sure what to make of that. It looks like it is trying to send and failing at Google's server...Could be a firewall issue. Maybe.

Try turning off the firewall temporarily for testing. Also be sure your router isn't blocking port 25.


Check out the forum guidelines!

Sun, 04/30/2006 - 00:22

Hi Joe,

It's failing at every server :(( that entry was just an example of what's happening.

I tried shutting down iptables but no difference.

This machine was sending mail ok with exim, it's just since I removed cpanel and installed virtualmin.
Postfix config is the same as my own machine.
I had to roll back perl from 5.8.6 to 5.8.0 and install all the cpan modules again if that makes any diff?

Sun, 04/30/2006 - 07:47 (Reply to #3)

Perhaps you are using an ISP that is be blocking port 25 and requires you to send mail through their SMTP server? Many &quot;residential&quot; DSL providers do this now....

Sun, 04/30/2006 - 19:32

The machine is in a data center and was sending mail last week with exim.
It's weird, everything should be working.

Fri, 05/05/2006 - 07:12

you were right Joe, it was a combination of iptables and some exim stuff left over from the cpanel install.

Topic locked