#1 (permalink)  
Old 06-18-2009, 02:37 PM
Registered User
 
Join Date: Feb 2009
Posts: 30
D-Litz is on a distinguished road
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.

Quote:
[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
Quote:
[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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-18-2009, 06:33 PM
Infopro's Avatar
Forum Moderator
 
Join Date: May 2003
Location: Pennsylvania
Posts: 3,449
Infopro is on a distinguished road
Question

Is this a valid domain? mail.brand-buyer.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-18-2009, 08:24 PM
Registered User
 
Join Date: Feb 2009
Posts: 30
D-Litz is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 06-19-2009, 04:28 AM
d_t d_t is offline
Registered User
 
Join Date: Sep 2003
Location: Bucharest
Posts: 161
d_t is on a distinguished road
Take a look at WHM -> Security Center -> SMTP Tweak
Turn it off and use other protections instead (like ConfigServer CSF)
__________________
Joomla & Magento cPAddons
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 06-19-2009, 05:26 AM
Registered User
 
Join Date: Feb 2009
Posts: 30
D-Litz is on a distinguished road
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 06-19-2009, 06:05 AM
Infopro's Avatar
Forum Moderator
 
Join Date: May 2003
Location: Pennsylvania
Posts: 3,449
Infopro is on a distinguished road
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 06-19-2009, 09:25 AM
Registered User
 
Join Date: Feb 2009
Posts: 30
D-Litz is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 06-19-2009, 06:11 PM
Infopro's Avatar
Forum Moderator
 
Join Date: May 2003
Location: Pennsylvania
Posts: 3,449
Infopro is on a distinguished road
Question

Quote:
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 =
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 06-19-2009, 06:15 PM
Infopro's Avatar
Forum Moderator
 
Join Date: May 2003
Location: Pennsylvania
Posts: 3,449
Infopro is on a distinguished road
Lightbulb

You might have more luck here:

SMTP authentication port - where can I define this? - CS-Cart Community Forums
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 06-19-2009, 08:04 PM
Registered User
 
Join Date: Feb 2009
Posts: 30
D-Litz is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11 (permalink)  
Old 06-29-2009, 11:12 AM
Registered User
 
Join Date: Nov 2007
Posts: 14
web-project is on a distinguished road
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
What shopping cart cana1 cPanel Newbies 1 08-27-2007 01:55 AM
Adding a shopping cart? mrzeeedler Developer Discussions 6 04-16-2005 04:50 PM
Agora Shopping Cart Updates Available AgoraCart cPanel and WHM Discussions 10 03-19-2004 02:13 PM
Can you use any shopping cart with cpanel? jacobl cPanel and WHM Discussions 0 05-22-2003 03:48 PM
Shopping Cart Reuben cPanel and WHM Discussions 0 08-28-2001 02:19 PM


All times are GMT -5. The time now is 11:08 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc