Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Feb 2005
    Posts
    2

    Default cpanel/apf blocking all outgoing mails?

    Hi,
    I'm using virtuozzo vps and cpanel 10x.
    Whenever i restart the vps, a new rule is added to my iptables.
    and that rule blocks all my outgoing mails.
    Even after i removed that rule, and restarted the server..
    the rule is still there.
    I did save the iptables.. but that does not help.

    anyways, i tried installing apf. and it is working fine.
    but it is still blocking my outgoing mails.
    i tried searching thru the forums but no help is ava.
    the apf config is as follows in this thread: http://forums.cpanel.net/showthread.php?t=30159
    please help!

    thanks

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Are you sure that you haven't enabled WHM > Tweak Security > SMTP Tweak > which is preventing you from doing what you want? That tweak inserts entries directly into iptables.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    Member amal's Avatar
    Join Date
    Nov 2003
    Location
    India
    Posts
    153

    Thumbs up

    Hi,

    It is a problem with certain kernels which doesn't support match owner option of iptables... You can fix it permanently by recompiling the kernel with the option -

    CONFIG_IP_NF_MATCH_OWNER=y

    in the .config of the kernel..

    Make sure that you add this entry in the .config, after running the make menuconfig, or else, it'll get over written, as certain kernel versions doesn't support this option...

    Temporary fix is to disable smtp tweak...

    Hope, this fixes your issue...

  4. #4
    Registered User
    Join Date
    Feb 2005
    Posts
    2

    Default

    Well,
    currently cpanel does not block out any outgoing mails.
    But now, whenever apf is turned on..
    my mails get blocked!!!
    unless i set the devmode to on.
    but this is what i suspect.
    when devmode is on, apf flushes the iptables every 5mins.
    so.. during that flushing... mails get sent.

    so.. what's up with apf that blocks my outgoing mails!!!

  5. #5
    Member amal's Avatar
    Join Date
    Nov 2003
    Location
    India
    Posts
    153

    Thumbs up

    Please try the following procedures......

    1. Move the file - /etc/sysconfig/iptables out of the directory...
    2. Change the devmode to off
    3. Restart apf using the command - /etc/init.d/apf restart

    Try sending a mail.. If you still have a problem, please try the following command from the server, and paste the result...

    telnet smtp.mail.yahoo.com 25

Similar Threads & Tags
Similar threads

  1. Cpanel blocking mails?
    By ASTRAPI in forum E-mail Discussions
    Replies: 4
    Last Post: 06-16-2011, 03:13 PM
  2. APF blocking port 110
    By Valuehosted in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 08-19-2005, 08:38 PM
  3. cpanel and apf firewall blocking people from Europe, Asia and Latin America
    By KatieBuller in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-29-2005, 12:44 PM
  4. APF Blocking
    By kris1351 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-01-2004, 08:10 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube