From owner-freebsd-questions@FreeBSD.ORG Tue Oct 19 16:12:22 2004 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 5039C16A4CE for ; Tue, 19 Oct 2004 16:12:22 +0000 (GMT) Received: from mproxy.gmail.com (rproxy.gmail.com [64.233.170.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id E5C7143D5F for ; Tue, 19 Oct 2004 16:12:21 +0000 (GMT) (envelope-from john.destefano@gmail.com) Received: by mproxy.gmail.com with SMTP id 79so311652rnk for ; Tue, 19 Oct 2004 09:12:21 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=t/j+tkGKwkRKSgEFtqnDIC/B7NrDe+ocOTw6qvylTk9kgY8RuEORs21drvStQhCQNJM5/3ixooqk0gQ82wgmDnDkRYDwiDRxCeyroEH1Lzg69ha3cUJ/iGeZkEnV5t4Kn0PR3u2Fm3cMw09oZHvPGaKJTO527Ml+0XZVcBsCDJY Received: by 10.38.78.23 with SMTP id a23mr2261787rnb; Tue, 19 Oct 2004 09:12:21 -0700 (PDT) Received: by 10.38.99.34 with HTTP; Tue, 19 Oct 2004 09:12:21 -0700 (PDT) Message-ID: Date: Tue, 19 Oct 2004 12:12:21 -0400 From: John DeStefano To: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: configuring sendmail for relaying mail form data X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John DeStefano List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Oct 2004 16:12:22 -0000 I'm trying to use a PHP form mail script (http://www.leveltendesign.com/L10Apps/Fm/) to process data submitted by a Web mail form. The installation test completed successfully, and I moved the PHP file into my Web site. Now, when I click the submit button, I'm brought to the 'success' page, but an email is never received. This was also the case during the initial test, but I was brought to the default success page. The mail queue is holding these messages with the fillowing error: Deferred: 450 ..com>: Sender address rejected: Domain not found The FreeBSD guide's Troubleshooting section points to the Sendmail FAQ for more information. The Sendmail FAQ on this topic contains a cycle of links, but I get the idea that I need to configure sendmail to route messages via my ISP's SMTP gateway, and that I need to define a "smart host". The most relevent FAQ entries I could find were: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mail-trouble.html#Q22.5.4. http://www.sendmail.org/faq/section3.html#3.22 So I added the following to /etc/mail/freebsd.mc: FEATURE(`accept_unresolvable_domains')dnl FEATURE(`accept_unqualified_senders')dnl I also created /etc/mail/relay-domains and inserted every possible variation of domains I could think of. I then restarted sendmail ('cd /etc/mail && make restart') and tried the form again, but mailq showed the same 450 error. I added the following to /etc/mail/freebsd.mc: define('SMART_HOST', `smtp-server.rochester.rr.com')dnl After a restart, mailq gave the same error. Any thoughts on how to resolve this, or what I'm doing wrong? Thanks. ~John