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.
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 =)