Solved

courier mail server problems

Posted on 2004-08-10
9
256 Views
Last Modified: 2013-12-15
Ok Guys. I have a huge problem, that I need solved fast. 500 points will be awarded to the person with the correct answer.

Problem:
We have a php script installed on our apache/php web server that sends an email (courierd) to a local user on the system.
The script works when sending email outside of the localdomain (mydomain.com), but doesn't work when sending email to mydomain.com users.

This is what I'm receivng in the apache error_log every time I attempt to send an email.


sendmail: ERR: submitclient: EOF from submit.
sendmail: Unable to submit message.

This error occurs only if we send email to anyuser@mydomain.com
however if we send an email outisde the domain through our php mail script to user@hotmail.com or user@yahoo.com or any other domain outside the local servers domain it WORKS LIKE A CHAMP.

Example Script:

mail("user@mydomain.com","test","test");


Things tried:
- we already tried setting ever known mail header to man
- we tail -f the maillog and couldn't find any errors at the time of submitting our test php script
- we did find errors when tail -f the apache error log file (the error is above)

I think if we can track down this error

sendmail: ERR: submitclient: EOF from submit.
sendmail: Unable to submit message.

We should have an answer.

Thank you so much!
0
Comment
Question by:creditcardscripts
  • 5
  • 4
9 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 11767857
Can you use 'mail -s subject local-addr@local-domain.tld' to send mail?
0
 

Author Comment

by:creditcardscripts
ID: 11768141
Yes, this works fine. It just fails to function through my php script (*listed above).
0
 
LVL 40

Expert Comment

by:jlevie
ID: 11768865
Okay... What version of sendmail are you using?
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 

Author Comment

by:creditcardscripts
ID: 11769133
How would I find this out?
0
 

Author Comment

by:creditcardscripts
ID: 11769138
The path to sendmail is "/usr/lib/courier/bin/sendmail"
0
 
LVL 40

Expert Comment

by:jlevie
ID: 11769554
My guess is that the PHP application is invoking /usr/sbin/sendmail, which may not the the copy of sendmail that Courier expects you to be using. Are /usr/sbin/sendmail and /usr/lib/courier/bin/sendmail different?
0
 

Author Comment

by:creditcardscripts
ID: 11771632
PHP INFO FILE:


sendmail_from me@localhost.com me@localhost.com
sendmail_path /usr/lib/courier/bin/sendmail -t -i  

PHP is pointing to the right path. Anything else I should look for?
0
 
LVL 40

Accepted Solution

by:
jlevie earned 500 total points
ID: 11772569
"localhost.com" is almost certainly wrong and should be just localhost.
0
 

Author Comment

by:creditcardscripts
ID: 11772606
Hi Jlevie,

I actually solved this issue, but will award you for your efforts.
The problem seemed to come from the sendmail error not sending apache a SIGHUP signal when it encountered an error.
I restarted apache and it worked great after that.


Thanks.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question