From owner-freebsd-questions@FreeBSD.ORG Fri Aug 26 17:23:12 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 9EFE816A431 for ; Fri, 26 Aug 2005 17:23:12 +0000 (GMT) (envelope-from daniel_k_eriksson@telia.com) Received: from pne-smtpout2-sn2.hy.skanova.net (pne-smtpout2-sn2.hy.skanova.net [81.228.8.164]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3206143D49 for ; Fri, 26 Aug 2005 17:23:12 +0000 (GMT) (envelope-from daniel_k_eriksson@telia.com) Received: from royal64.emp.zapto.org (195.198.193.104) by pne-smtpout2-sn2.hy.skanova.net (7.2.060.1) id 42B94E2900A97F38; Fri, 26 Aug 2005 19:23:11 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Fri, 26 Aug 2005 19:23:10 +0200 Content-class: urn:content-classes:message Message-ID: <4F9C9299A10AE74E89EA580D14AA10A605F545@royal64.emp.zapto.org> X-MIMEOLE: Produced By Microsoft Exchange V6.5.7226.0 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Forwarding mail to another server Thread-Index: AcWqXjPwCmkfGAKSR5GIpS3OAnmyKQAAzE8g From: "Daniel Eriksson" To: "FreeBSD Questions" Cc: Pat Maddox Subject: RE: Forwarding mail to another server X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Aug 2005 17:23:12 -0000 Pat Maddox wrote: > I wanted to try Daniel's method, using SMART_HOST. So I removed the > ssmtp port and, made the changes back to /etc/mail/mailer.conf, and > followed his instructions. None of the messages go through, they > always end up on my local machine with the message "Failed to route > address." Any ideas on what to do? Did you actually uncomment the line? If it starts with "dnl" it is considered a comment. Did you preserve the `' around the names? Can you "telnet mailrelay.myisp.com 25" and have it reply properly? You can also try to bump up the log level and see if /var/log/maillog gives you any more hints. There are several ways to bump the loglevel, but I usually just add the following line to the .mc file (and "make cf install restart"): define(`confLOG_LEVEL', `25') Another thing you could try is to use square brackets around the mailrelay, like so: define(`SMART_HOST', `[mailrelay.myisp.com]') This will force Sendmail to connect directly to that host, instead of doing a DNS lookup for MX pointers. /Daniel Eriksson