Avatar of kirkheaton25
kirkheaton25

asked on 

Cannot receive mail as access port 25 on Red Hat Linux VPS is blocked

I have a VPS which has never had email working properly. I asked the hosting company to look at the problem but the result was my server was down for a week so I told them to not to bother any more! UnfortunatelyI now need to have a working mailbox on this server so I am hoping the Experts here will more helpful.
I have tried adding rules to the firewall  to allow port 25 using the virtuozzo control panel but I get the following:
-------------
The changes you made to the firewall configuration have not yet been applied to the server. To do it, click Activate.
Could not activate firewall configuration:

safeact: /usr/local/psa/var/modules/firewall/firewall-new.sh failed:
iptables: Memory allocation problem
-----------
I then tried stopping iptables using "service iptables stop" (only to test) but I still cannot access port 25. I have tried using telnet and get connection refused. If I try to send email using the webmail on the control panel I get
--------------
There was an error sending your message: unable to connect to smtp server localhost:25
--------------
I also tried netstat -an |grep :25 |grep tcp  but this shows no results.

I've read about a umiptent problem but I have been unable to change the limit
egrep "failcnt|numiptent" /proc/user_beancounters
----
      uid  resource           held    maxheld    barrier      limit    failcnt
            numiptent            14         14         20         20          0
------
However as stopping iptables doesn't seem to do anything I don't know if this is relevant.
Please ask if you require any further details.

Thanks.
NetworkingLinux Networking

Avatar of undefined
Last Comment
kirkheaton25
Avatar of Evokati
Evokati

Is your box a mission critical system?
Do you have root access to the server?
RHEL5 has additional security settings, mainly SE Linux.

Try this:

/sbin/modprobe ip_tables ipt_state ipt_multiport iptable_filter ipt_limit ipt_LOG ipt_REJECT ip_conntrack ip_conntrack_irc ip_conntrack_ftp iptable_mangle

Parse any errors you get here =)

Avatar of kirkheaton25
kirkheaton25

ASKER

Thanks, to answer your questions.
- No it's not a mission critical system.
- Yes I have root access.

Tried the above and it didn't return any errors.
ASKER CERTIFIED SOLUTION
Avatar of Evokati
Evokati

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of kirkheaton25
kirkheaton25

ASKER

Thanks for the offer, unfortunately I can't risk it :-)
If I don't get any joy I may well look at Gmail as an option, I didn't know you could point mx records to it.
Avatar of Evokati
Evokati

I run virtual hosting servers, and the majority of my clients mx records are set to gmail.

Works great, saves me the hassle of dealing with the spam. And gives the clients more storage than I could ever afford. =)

As for your VPS host, i would highly recommend switching to linode.com. =) Great community, great VPS service =) Upgrade, deploy on the fly.


Avatar of Evokati
Evokati

Im assuming that you did check that the mail service your using is actually running.

tail -f /var/log/path to your mta logs

start the service / stop it (logs should update)

Sometimes services will "appear" to be running, but their really not.
Avatar of kirkheaton25
kirkheaton25

ASKER

I tried stopping and starting the service. In the logs the last entry is qmail: Starting qmail:  succeeded,
but when I enter service qmail status I get "qmail is stopped"?????
Avatar of Evokati
Evokati

Your best bet at this point would be to hire a qmail freelancer or head over to:

http://forum.qmailrocks.org/

It will be really hard for someone to help you without access to logs or your system.

Personally I will stop monitoring this question past this point. As I feel that I cannot add further value.
Avatar of kirkheaton25
kirkheaton25

ASKER

Many thanks for  your help. I will also look at the hosting you recommended in the near future.
Networking
Networking

Networking is the process of connecting computing devices, peripherals and terminals together through a system that uses wiring, cabling or radio waves that enable their users to communicate, share information and interact over distances. Often associated are issues regarding operating systems, hardware and equipment, cloud and virtual networking, protocols, architecture, storage and management.

102K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo