Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

eMail Problems on new install


bhall2001

Recommended Posts

Posted

Well, I've been trying my best to fix this problem for a while now and have had no luck. So I'm turning to the support forum to see if we can get my OSC eMail problems solved.

 

I have an Intranet Linux server running a new OSC ms2.2 install, Apache 2 w/php. I have not enabled SSL yet as I was trying to get the new install working. I have not been able to get any eMails from admin or catalog to work. My eMail server is Postfix.

 

I've tried lots of things that were suggested on the forums. The test_mail script does not send any emails out. HOWEVER, I use Squirrelmail (a PHP webmail client) and have no problems sending/receiving (on the same Apache server). Squirrelmail is setup to use smtp (no auth) so that was the route I was trying to get OSC to go. But I've had no luck with either smtp or sendmail.

 

What happens is after you click the send mail button, the browser just sits there spinning and never comes back. I tried the auth_script suggested in another post which appears to work as a message saying the eMail was sent is received and the next page/screen is displayed, but no eMails are delivered.

 

I'm sure I'm missing something completely obvious in my setup. I'm not sure what else to post so I'll wait to hear back from someone who might be able to help and try to get whatever information you might need to solve this problem.

 

I'd love to get our store up with an online store and I know that OSC is the way to go. Any help getting me over this hurdle will be greatly appreciatted.

 

Bob

Posted

I haven't used PostFix, but have used Post Cast without any problems. Post Cast however is meant to run on a computer using a Windows Operating System.

 

However, if the computer you are using has a Windows Operating System with a Linux install for the local server then you should have no problems with using Post Cast.

 

Vger

Posted

The server is a RedHat based Linux server and is not running windows. I decided to use postfix because it is way easier to configure then sendmail is.

Posted

Okay, at this point I have to say that this is really nothing to do with osCommerce. It's all about how to set up and run your own server - and there are better forums for your question than this one, where you're more likely to get the answer you need.

 

Remember! Google is your friend!

 

Vger

Posted

I have searched Google and I am convinced that I've got an OSC configuration issue somewhere. I use daily other PHP scripts that send mail on the same web server with PHP and have not ever had a problem (for many years now) . There's something I'm doing in my OSC setup that is causing PHP scripts not to send mail from OSC.

 

I've checked to confirm the web server's user has access to the php.ini file and that the file is setup to be read. I know that *nix is case sensitive for variables so I've tried smtp instead of SMTP in the php.ini file. I just tried using sendmail instead of smtp with the exact same results.

 

There's something throwing a curve at my PHP mail function from OSC that isn't happening in the Squirrelmail folder right next to it.

 

How do I turn on OSC log files and/or look for logs related to OSC so I can try to figure out what is causing the PHP mail funtion to fail on my OSC setup?

 

Thanks for trying to help. I'm really desparate at this point and I am very thankful that you are taking some time to help me out.

 

Bob

Posted

Some more debugging... I am able to use sendmail with no problems from a command prompt. I suspect I need to compile something in to PHP when I do that so that the mail command works. I have written a very basic PHP script that is simply the mail command with parameters and it just hangs.

 

So, if someone here knows how I can get the PHP mail command to work that would be great. I will be taking my issue to other PHP related forums to try to figure it out.

 

In the mean time, my server info screen has the following for my PHP 4.4.1 "configure command"...

 

'./configure' '--prefix=/usr/local/php' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-mysql=/usr/local/mysql' '--enable-magic-quotes' '--enable-sockets' '--with-pear'

 

If I am missing something that I need to compile in let me know. If there's someone out there who has it working if they could post here their configure commands for PHP I would greatly appreciate it.

 

Bob

Posted

I think I am getting close now... It appears as though the "apache" user is not able to send mail. When I su to the apache user and type sendmail, I get...

 

"postdrop: warning: mail_queue_enter: create file maildrop/759446.4060: Permission denied"

 

So, I guess my problem is that the apache user has an access problem. My question now is how do I fix this to allow the apache user (which is running the PHP scripts for OSC) to send mail? I'm searching but I have no solution yet.

 

Any insight would be greatly appreciated.

Bob

Posted

:thumbsup:

 

I figured it out!!!!! Who knows, maybe it will help someone else down the road....

 

To get the email working in OSC I had to set the permissions on the "maildrop" folder in postfix to be writable and EXECUTABLE. No sure why it needs to be executable but it does. Without these settings my email in OSC just hangs.

 

On my Redhat based Linux system the file is located at /var/spool/postfix/maildrop

 

The command that I used was chmod 733 /var/spool/postfix/maildrop

 

I have now setup my OSC system to use smtp for all mail with no problems.

 

After setting permissions, the eMail worked like a champ. I guess I just needed to talk my way through here. Now let's see what other trouble this OSC newbie can get into. On to installing contributions....

 

Bob

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...