sendmail

WebrulerHosting

Verified User
Joined
Mar 29, 2004
Messages
12
Hi folks,

My sendmail seems to give a problem.
The mail() function doesn't do a thing.

Any suggestions?
 
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
 
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
 
DirectAdmin Support said:
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*
 
Hello,

You don't do it through php, you do it as root:
Code:
ln -sf exim /usr/sbin/sendmail
John
 
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.
 
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
 
Back
Top