View Full Version : sendmail
WebrulerHosting
06-30-2004, 11:41 PM
Hi folks,
My sendmail seems to give a problem.
The mail() function doesn't do a thing.
Any suggestions?
nobaloney
07-01-2004, 12:37 AM
DA doesn't run sendmail; it runs the exim mailserver, and uses a link from sendmail to exim.
What do you mean by the mail() function?
Do you mean within a particular programming language?
Jeff
DirectAdmin Support
07-01-2004, 10:25 AM
Hello,
I'm assuming you're referring to php. If mail() isn't compiled into php, then make sure there is a symbolic link from /usr/sbin/sendmail to /usr/sbin/exim, then recompile php. If the mail function isn't returning any errors, then check your /var/log/exim/mainlog right after you send a message (end of the file)
John
WebrulerHosting
07-03-2004, 09:08 AM
Originally posted by DirectAdmin Support
Hello,
I'm assuming you're referring to php. If mail() isn't compiled into php, then make sure there is a symbolic link from /usr/sbin/sendmail to /usr/sbin/exim, then recompile php. If the mail function isn't returning any errors, then check your /var/log/exim/mainlog right after you send a message (end of the file)
John
How can I do this?
*making a symbolic link in PHP*
DirectAdmin Support
07-04-2004, 01:48 PM
Hello,
You don't do it through php, you do it as root:
ln -sf exim /usr/sbin/sendmailJohn
Icheb
07-04-2004, 10:23 PM
Uhhm, John, correct me if i'm wrong, but isn't the apachecustombuilder supposed to do that ?
I know i saw it somewhere while reading what the thing actually does (needed for some project).
Strange idea: What if relaying is off for localhost; that way PHP wouldn't be able to mail it. Not that i've seen something like that earlier, but it could be possible.
DirectAdmin Support
07-06-2004, 09:56 AM
Hello,
Yes, DA runs that right before the compile of PHP. There are however reasons that the command would fail, like if there were another sendmail file in the way.
Re: relaying on 127.0.0.1
Php doesn't actually use "relaying" through port 25. It calls the sendmail binary directly to insert the mail straight into the mail system. Shutting of localhost relaying would only stop things like webmail from sending mail :) (unless it's setup with smtp auth on your system)
John
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.