Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

courier mail server problems

Posted on 2004-08-10
9
Medium Priority
?
272 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 

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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
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…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Suggested Courses

610 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