Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Page 6 of 6 FirstFirst ... 4 5 6
Results 76 to 89 of 89
  1. #76
    Member
    Join Date
    Jan 2006
    Posts
    29

    Default RE: CSF Config Change Fixes this Problem

    Hi All,

    I like all of you have been having the same problem. Here's how I fixed it.

    # Block outgoing SMTP except for root, exim and mailman (forces scripts/users
    # to use the exim/sendmail binary instead of sockets access). This replaces the
    # protection as WHM > Tweak Settings > SMTP Tweaks. This will block hosting
    # clients from using your server as an SMTP relay

    SMTP_BLOCK = 1

    # If SMTP_BLOCK is enabled but you want to allow local connections to port 25
    # on the server (e.g. for web scripts) then enable this option too

    SMTP_ALLOWLOCAL = 1

    I originally had SMTP_ALLOWLOCAL = 0 and SMTP_BLOCK set to 1. The notes in the config make mention of local script access.

    Worked for me with SquirrelMail's conf set to useSendmail = false;

    Good luck!

  2. #77
    Member myusername's Avatar
    Join Date
    Mar 2003
    Location
    chown -R us.us *yourbase*
    Posts
    699
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    If you have:

    SMTP_BLOCK = 1

    then

    SMTP_ALLOWLOCAL should also be set to "1"

    This worked for me as well.
    GlowHost.com | Professional Managed Web Hosting Since 2002.
    >> Fully Managed Dedicated, Cloud VDS, Reseller & Semi-Dedicated
    >> Cloud Servers for Enterprise

  3. #78
    Member
    Join Date
    Nov 2003
    Location
    Madrid
    Posts
    18

    Default

    I found this problem withc csf firewall. And this is an interesting post in the forum of csf

    http://forum.configserver.com/showthread.php?t=122
    Miguel Herrero
    www.miHosting.net

  4. #79
    Member
    Join Date
    Jan 2007
    Posts
    12

    Default

    Quote Originally Posted by myusername View Post
    If you have:

    SMTP_BLOCK = 1

    then

    SMTP_ALLOWLOCAL should also be set to "1"

    This worked for me as well.
    Ah that worked for me ta

  5. #80
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jan 2006
    Posts
    640

    Default

    Could someone clarify if this is the same issue ?

    Customer sends email via horde or squirrel but receives the following error...

    Authentication failed
    Server replied: 535 Incorrect authentication data


    I have SMTP tweak disabled in WHM and

    SMTP_BLOCK = 1
    SMTP_ALLOWLOCAL = 1 In CSF

  6. #81
    Member prashantjoshi's Avatar
    Join Date
    Aug 2004
    Posts
    7

    Default its realted to scf and fixed

    hello,

    Originally Posted by myusername View Post
    If you have:

    SMTP_BLOCK = 1

    then

    SMTP_ALLOWLOCAL should also be set to "1"

    This worked for me as well.
    this fixed the problem . THANKS.

  7. #82
    Registered User
    Join Date
    Dec 2007
    Posts
    1

    Default

    Hello
    Using SQM
    Using apf instead if csf
    After The 111 Error
    i do as they said turn off SMTP Tweak
    Also Editing The
    Code:
    /usr/local/cpanel/base/3rdparty/squirrelmail/config/config.php
    set $useSendmail = true ;
    After I set it To true the following error Appeared
    Code:
    Email delivery error
    Server replied: 1 Can't execute command '/usr/local/cpanel/bin/sendmail_cpanel -i -t -f9@5dw5l.com'.
    after upgrading the Cpanel issue solved
    reset $useSendmail = true ; after the update the same error appeared
    thank you guy's for ur hard work <3
    Last edited by delda; 01-17-2008 at 09:28 PM.

  8. #83
    Member
    Join Date
    Nov 2004
    Posts
    121

    Default

    I managed to fix the problem without editing any config files. Thanx to this post:

    http://forums.cpanel.net/showpost.ph...48&postcount=3

  9. #84
    Registered User
    Join Date
    Aug 2005
    Posts
    1

    Default

    If you receive: SquirrelMail Not Found

    Do This:

    rm /usr/local/cpanel/base/3rdparty/squirrelmail/ -rf

    then

    /scripts/upcp --force

    If you get Operation Not Permitted when trying to rm squirrelmail, do this:

    chattr -ia /usr/local/cpanel/base/3rdparty/squirrelmail/config/config.php

    then do rm /usr/local/cpanel/base/3rdparty/squirrelmail/ -rf



    If Getting The 110 Can't Open SMTP Error:

    Do this:

    Edit the following file, and change useSendmail to true, instead of false:

    /usr/local/cpanel/base/3rdparty/squirrelmail/config/config.php

    Save this, and close it, but you must do the following so that cpanel doesn't change useSendmail back to false:

    chattr +ai /usr/local/cpanel/base/3rdparty/squirrelmail/config/config.php

  10. #85
    Member myusername's Avatar
    Join Date
    Mar 2003
    Location
    chown -R us.us *yourbase*
    Posts
    699
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Its reeally quite simple folks, adjust your firewall config. It is much faster and cleaner than many of these patches I have seen. I have not seen one person with this issue that did not have their CSF misconfigured.

    chattr'ing files ensures that you will never get another cPanel update in this area. Is that what you really want?
    GlowHost.com | Professional Managed Web Hosting Since 2002.
    >> Fully Managed Dedicated, Cloud VDS, Reseller & Semi-Dedicated
    >> Cloud Servers for Enterprise

  11. #86
    Member
    Join Date
    Jun 2005
    Posts
    77

    Default

    Flushing the IP tables fixed the problem for me.

    Interestingly, other than Squirrelmail not working, one or two users could not authenticate and send mail through the server with their Thunderbird client, while others could.

    strange issue.

    service iptables stop
    iptables -F
    service iptables start

    fixed any issues instantly.

  12. #87
    Member
    Join Date
    Dec 2001
    Posts
    746

    Default

    Flushing IP Tables is simply removing all your rules. I wouldn't recommend this if you are using iptables to block unwanted traffic. Instead, I'd take a look at any rules you have related to the ports you've configured for mail traffic and adjust those rules. Also, you should note that just doing iptables -F isn't actually changing your configuration and that upon reboot, your issue will return.

  13. #88
    Member
    Join Date
    Feb 2008
    Posts
    18

    Default

    The simpelest and only possible solution for the Can't open stream error is the CSF SMTP Block setting to 0 or setting the allowlocal to 1 too.

    That is the only solution! Don't go screwing around with your configs or chatt'ring things blonging to cPanel.

  14. #89
    Member
    Join Date
    Aug 2006
    Posts
    6

    Default

    Originally Posted by myusername View Post
    If you have:

    SMTP_BLOCK = 1

    then

    SMTP_ALLOWLOCAL should also be set to "1"

    This worked for me as well.

    hello,
    it works for me
    thanks

+ Reply to Thread
Page 6 of 6 FirstFirst ... 4 5 6
Similar Threads & Tags
Similar threads

  1. Slow login to webmail and sending mail through webmail ?
    By Hack in forum E-mail Discussions
    Replies: 7
    Last Post: 05-18-2011, 04:35 PM
  2. Problem with Sending email through SquirrelMail
    By seby in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 12-17-2008, 12:40 PM
  3. Problem sending mail using squirrelmail
    By everestrus in forum E-mail Discussions
    Replies: 3
    Last Post: 10-23-2007, 11:37 PM
  4. Webmail very slow (horde and squirrelmail)
    By Cash in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 08-28-2005, 06:35 PM
  5. phpMyAdmin, Horde Webmail, SquirrelMail Webmail DOES NOT WORKING!
    By Jedia in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 04-13-2004, 10:14 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube