The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SMTP within a PHP/MySQL shopping Cart Script

Discussion in 'E-mail Discussions' started by D-Litz, Jun 18, 2009.

  1. D-Litz

    D-Litz Active Member

    Joined:
    Feb 4, 2009
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    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.

    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. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,470
    Likes Received:
    198
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Is this a valid domain? mail.brand-buyer.com
     
  3. D-Litz

    D-Litz Active Member

    Joined:
    Feb 4, 2009
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    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. d_t

    d_t Well-Known Member

    Joined:
    Sep 20, 2003
    Messages:
    243
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Bucharest
    Take a look at WHM -> Security Center -> SMTP Tweak
    Turn it off and use other protections instead (like ConfigServer CSF)
     
  5. D-Litz

    D-Litz Active Member

    Joined:
    Feb 4, 2009
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    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. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,470
    Likes Received:
    198
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:

    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. D-Litz

    D-Litz Active Member

    Joined:
    Feb 4, 2009
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    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. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,470
    Likes Received:
    198
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    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. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,470
    Likes Received:
    198
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  10. D-Litz

    D-Litz Active Member

    Joined:
    Feb 4, 2009
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    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
     
    #10 D-Litz, Jun 19, 2009
    Last edited: Jun 19, 2009
  11. web-project

    web-project Member

    Joined:
    Nov 23, 2007
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    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?
     
Loading...

Share This Page