Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 11 of 11
  1. #1
    Member
    Join Date
    Feb 2009
    Posts
    34
    cPanel/Enkompass Access Level

    Root Administrator

    Default SMTP within a PHP/MySQL shopping Cart Script

    Hopefully someone could help track down an issue we are seeing with using SMTP email option inside a shopping cart script called CS-Cart.

    We have client that just report to us that when he configures the CS-Cart script to use SMTP for email, he gets the following message...

    "Could not connect to SMTP server" when attempting to send.

    Checking the logs revealed the following entries.

    [error] [client xx.173.63.254] PHP Warning: fsockopen() [function.fsockopen]: unable to connect to mail.brand-buyer.com:25 (Connection timed out) in /home/XXXXXX/public_html/lib/phpmailer/class.smtp.php on line 107
    [error] [client xx.173.63.254] PHP Fatal error: Class 'csPHPMailer' not found in /home/XXXXXX/public_html/addons/news_and_emails/func.php on line 674
    I looked through our cPanel/WHM Exim Settings and the Tweak Settings and did not see anything out of the ordinary.


    Any ideas?

    Thanks

  2. #2
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,157
    cPanel/Enkompass Access Level

    Root Administrator

    Question

    Is this a valid domain? mail.brand-buyer.com

  3. #3
    Member
    Join Date
    Feb 2009
    Posts
    34
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Infopro View Post
    Is this a valid domain? mail.brand-buyer.com
    Yes, all of our clients accounts use mail.domain.tld for both POP3 and SMTP.

    Curious as to why you would ask that?

    I forgot to add we are running

    cPanel 11.24.4-C36167 - WHM 11.24.2 - X 3.9
    REDHAT Enterprise 5.3 i686 standard

  4. #4
    d_t
    d_t is offline
    Member
    Join Date
    Sep 2003
    Location
    Bucharest
    Posts
    231

    Default

    Take a look at WHM -> Security Center -> SMTP Tweak
    Turn it off and use other protections instead (like ConfigServer CSF)

  5. #5
    Member
    Join Date
    Feb 2009
    Posts
    34
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by d_t View Post
    Take a look at WHM -> Security Center -> SMTP Tweak
    Turn it off and use other protections instead (like ConfigServer CSF)
    The SMTP Tweak is disabled.

    ConfigServer Security & Firewall - csf v4.70
    Firewall Status: Enabled and Running

    We have had this in place since day one, any other ideas?

  6. #6
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,157
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    Quote Originally Posted by D-Litz View Post
    Yes, all of our clients accounts use mail.domain.tld for both POP3 and SMTP.

    Curious as to why you would ask that?

    I forgot to add we are running

    cPanel 11.24.4-C36167 - WHM 11.24.2 - X 3.9
    REDHAT Enterprise 5.3 i686 standard

    mxtoolbox.com

    Code:
    ns2.cyberlnc.com did not respond with MX records for 'brand-buyer.com'
    intodns.com/brand-buyer.com

    Code:
    Oh well, I did not detect any MX records so you probably don't have any and if you know you should have then they may be missing at your nameservers!

  7. #7
    Member
    Join Date
    Feb 2009
    Posts
    34
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Infopro View Post
    mxtoolbox.com

    Code:
    ns2.cyberlnc.com did not respond with MX records for 'brand-buyer.com'
    intodns.com/brand-buyer.com

    Code:
    Oh well, I did not detect any MX records so you probably don't have any and if you know you should have then they may be missing at your nameservers!
    Please forgive my ignorance, but what does DNS/MX records have to do with a script that is setup to use SMTP as the email transport on the same server as the email system.

    This client has there MX record pointing to a google account, however even with those SMTP setting, connecting to the SMTP server still fails.

    I even setup the same shopping cart script under a test account and received the same errors and my MX records are pointing to the same mail server as my domain.

    There has to be something within WHM and/or CSF blocking SMTP connection within the server itself...

    We just found out that another client is having the same issue...same server, same CS-Cart shopping cart script. Beginning to wounder if it the script itself.

    However, still looking for some suggestions on what if anything we can do to further investigate this. Meaning, we know the script is not connecting, so is there some other script, command line tool that could be ran to determine if in fact a security setting with WHM and/or CSF is blocking localhost SMTP connections?

    Thanks

  8. #8
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,157
    cPanel/Enkompass Access Level

    Root Administrator

    Question

    Hopefully someone could help track down an issue we are seeing with using SMTP email option inside a shopping cart script called CS-Cart.
    What happens if he disables this setting and tries to send an email from that software?

    What are these set to in CSF?

    SMTP_BLOCK =

    SMTP_ALLOWLOCAL =

  9. #9
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,157
    cPanel/Enkompass Access Level

    Root Administrator

  10. #10
    Member
    Join Date
    Feb 2009
    Posts
    34
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Infopro View Post
    What happens if he disables this setting and tries to send an email from that software?

    What are these set to in CSF?

    SMTP_BLOCK =

    SMTP_ALLOWLOCAL =
    There is three options total for sending mail within this shooping cart script.

    via SMTP server (Does Not Work)
    via PHP mail function (Works)
    via sendmail function (Works)

    SMTP_BLOCK = 1

    SMTP_ALLOWLOCAL = 1
    Last edited by D-Litz; 06-19-2009 at 08:05 PM. Reason: Forgot to add

  11. #11
    Member
    Join Date
    Nov 2007
    Posts
    21

    Default

    Quote Originally Posted by D-Litz View Post
    There is three options total for sending mail within this shooping cart script.

    via SMTP server (Does Not Work)
    via PHP mail function (Works)
    via sendmail function (Works)

    SMTP_BLOCK = 1

    SMTP_ALLOWLOCAL = 1
    I am getting opposite
    via SMTP server (Works)
    via PHP mail function (Does Not Work)
    via sendmail function (Does Not Work)

    the "Prevent the user "nobody" from sending out mail to remote addresses (PHP and CGI scripts generally run as nobody if you are not using PHPSuexec and Suexec respectively.)" option is switched off
    and
    the "Silently Discard all FormMail-clone requests with a bcc: header in the subject line" is on

    Could you point me to right direction?

Similar Threads & Tags
Similar threads

  1. Add X-Cart as a shopping cart script/plug-in to cPanel
    By Ambal in forum Feature Requests for cPanel/WHM
    Replies: 8
    Last Post: 08-02-2010, 08:10 AM
  2. What shopping cart
    By cana1 in forum New User Questions
    Replies: 1
    Last Post: 08-27-2007, 01:55 AM
  3. Adding a shopping cart?
    By mrzeeedler in forum cPanel Developers
    Replies: 6
    Last Post: 04-16-2005, 04:50 PM
  4. Can you use any shopping cart with cpanel?
    By jacobl in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-22-2003, 03:48 PM
  5. Shopping Cart
    By Reuben in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-28-2001, 02:19 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube