From owner-freebsd-questions@FreeBSD.ORG Tue Dec 16 09:24:30 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 41ABA16A4CE for ; Tue, 16 Dec 2003 09:24:30 -0800 (PST) Received: from mail.tsgincorporated.com (mail.tsgincorporated.com [67.66.242.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 53A3843D6E for ; Tue, 16 Dec 2003 09:23:58 -0800 (PST) (envelope-from micheal@tsgincorporated.com) Received: (from root@localhost) by mail.tsgincorporated.com (8.12.10/8.12.8) id hBGHNvW9085856; Tue, 16 Dec 2003 11:23:57 -0600 (CST) (envelope-from micheal@tsgincorporated.com) Received: from micheal (micheal.tsgincorporated.com [67.66.242.77]) hBGHNooI085837; Tue, 16 Dec 2003 11:23:52 -0600 (CST) (envelope-from micheal@tsgincorporated.com) Message-ID: <04b001c3c3f9$601110b0$4df24243@tsgincorporated.com> From: "Micheal Patterson" To: "samy lancher" , References: <20031215200323.75107.qmail@web60301.mail.yahoo.com> Date: Tue, 16 Dec 2003 11:23:48 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by AMaViS 0.3.12 Subject: Re: Email problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Dec 2003 17:24:30 -0000 ----- Original Message ----- From: "samy lancher" To: Sent: Monday, December 15, 2003 2:03 PM Subject: Email problem > 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. > > > Change the group that http is running under to smmsp via the httpd.conf and it should run. I don't know if this the "best" approach to this problem, but it will allow the httpd to access the clientmqueue folder. Be warned, if you're using mailman for mailing lists, it will have to be recompiled with the proper gid or it will fail out. -- Micheal Patterson TSG Network Administration 405-917-0600 Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.