Solved

courier mail server problems

Posted on 2004-08-10
9
246 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
 

Author Comment

by:creditcardscripts
ID: 11769133
How would I find this out?
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

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

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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.

707 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now