Solved

courier mail server problems

Posted on 2004-08-10
9
257 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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 

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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.

749 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