Solved

courier mail server problems

Posted on 2004-08-10
9
251 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

809 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