HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   Installation/Configuration (
-   -   Receiving external emails -connection refused (

terryoleary1981 15th January 2008 16:03

Receiving external emails -connection refused

I've had ISPconfig setup for a week or so and still havent managed to configure the recieving of emails (sending works). I'm not sure what i'm missing but i think i'm getting closer to the solution. I've created mx records with my registrar pointing to my server and now i get connection refused error on emails sent.




Delivery to the following recipient has been delayed:

Message will be retried for 1 more day(s)

Technical details of temporary failure:
TEMP_FAILURE: Could not initiate SMTP conversation with any hosts:
[ (10): Connection refused]
[ (20): Connection refused]
[ (30): Connection refused]

anyone got any pointers for me to get this working.

terryoleary1981 16th January 2008 11:41

hey all

Anyone any ideas on this?

jnsc 16th January 2008 11:47

It looks like you forgot the . at the end of your MX record

terryoleary1981 16th January 2008 11:53

indeed i did forget the dot at the end!!

see if this makes a difference, thanks.

terryoleary1981 18th January 2008 16:22


I'm still not getting emails, been trying for about 2 weeks to get this working. I can send no problem its just the receiving.

Can anyone guide me through setting up an email account from scratch, i'm having problems with knowing what MX records to set and where eg. with 123-reg and on ISPconfig.

Or a link to a relevant tutorial would be a great help!

toolish 18th January 2008 19:04


A good place to start would be to check that your port 25 is open to the world, if your at the same public ip address as your server you can use the custom port test at
If your outside of your local network you could try and telnet into port 25 at our servers public ip address, the command you need for this is simply 'telnet yourpublicIP 25'
You should get a result like '220 ESMTP Postfix ' if all goes well. If you get the result connection refused then you may either have your firewall/router misconfigured or your isp maybe blocking port 25.

As far as the DNS goes you should only need entries at 123-reg and not your server, unless you are running secondary DNS on it for the domain.

In the 123-reg DNS management section you should add a new A record with the following details, using the terms 123-reg use, the Name should be 'mail' (without the quotes) the Type is A and the Content is your public IP address.

Then you need to add the MX record, this should be '' (without quotes, with full stop) and set the priority to 10.

It looks from above that you still have some MX entries for the 123-reg mail servers, this shouldn't be necessary unless maybe you are using their mail forwarding service?

Hope it helps.

terryoleary1981 21st January 2008 11:08


i've checked and it appears my port 25 is being blokced somewhere as i cant telnet to port 25. My router is set to have port 25 open, and port 25 seems to be open when i run a port scan in isp config. according my isp port 25 shouldnt be blocked as i have a static IP account.

I'm a bit stumped!

till 21st January 2008 13:00

Please post the output of:

iptables -L

and contact your access provider and ask them if they block port 25.

terryoleary1981 21st January 2008 15:34


The output of iptables -L is:


Chain INPUT (policy ACCEPT)
target prot opt source  destination

Chain FORWARD (policy ACCEPT)
target  prot opt source  destination

Chain OUTPUT (policy ACCEPT)
target prot opt source  destination

So far my conversation with my ISP has indicated that as i do have a static port 25 shouldnt be blocked. But i am checking with them again.

falko 22nd January 2008 20:58

Can you restart your router and test again?

All times are GMT +2. The time now is 03:38.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.