Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Dec 2003 12:48:04 -0800 (PST)
From:      samy lancher <washville2003@yahoo.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Email problem
Message-ID:  <20031215204804.89264.qmail@web60301.mail.yahoo.com>
In-Reply-To: <20031215141522.GA583@ns1.tcbug.org>

next in thread | previous in thread | raw e-mail | index | archive | help


Josh Paetzel <friar_josh@tcbug.org> wrote:
On Mon, Dec 15, 2003 at 12:03:23PM -0800, samy lancher wrote:
> Hello all,
> I have 4.5 freebsd server with apache, php and mysql. i wrote a simple php program using mail(). The mail() function returns true without any error. but the problem is the email is never delivered. I viewed the log file for mail(/var/log/maillog) and i saw the following error:
> 
> Server sendmail[351]:NOQUEUE:SYSERR(www):can not chdir(/var/spool/clientmqueue/): Permission denied.
> 
> I would be really thankful if someone could tell me where i am doing wrong. 
> In php.ini, i have set sendmail_path = "/usr/sbin/sendmail".
> 
> thanks in advance.
> Naveen.

In PHP, mail() will always return true as long as it was able to successfully 
communicate with the mailserver. As you have seen, that has very little to do 
with whether or not your email will go through correctly or not. ;)

Your error is coming because sendmail runs setuid, in this case to www, and 
www doesn't have write permissions to /var/spool/clientmqueue.

Josh Paetzel

Hello,

thanks josh and martin for quick response.

the persmissions on clientmqueue is as follows

drwxrwx_ _ _ smmsp smmsp clientmqueue

could you please tell me what changes i need to make. IMPORTANT thing is my email server is working fine, i use sendmail MTA and outlook MUA. I am able to send emails and view my received emails in outlook through my server.

thanks,

Naveen.



_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"



---------------------------------
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031215204804.89264.qmail>