From owner-freebsd-questions@FreeBSD.ORG Thu Jun 24 18:18:59 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 C3BB816A4CE for ; Thu, 24 Jun 2004 18:18:59 +0000 (GMT) Received: from mtaw6.prodigy.net (mtaw6.prodigy.net [64.164.98.56]) by mx1.FreeBSD.org (Postfix) with ESMTP id 95F7743D5C for ; Thu, 24 Jun 2004 18:18:59 +0000 (GMT) (envelope-from antennex@swbell.net) Received: from SAGEAME (adsl-65-68-247-73.dsl.crchtx.swbell.net [65.68.247.73]) by mtaw6.prodigy.net (8.12.10/8.12.10) with SMTP id i5OIGYdH028990; Thu, 24 Jun 2004 11:16:56 -0700 (PDT) Message-ID: <003d01c45a17$a74ebf40$0200000a@SAGEAME> From: "antenneX" To: "Giorgos Keramidas" References: <00d801c45a02$65487ba0$0200000a@SAGEAME> <61e1e14d0406240902321df14b@mail.gmail.com> <000901c45a09$109da970$0200000a@SAGEAME> <20040624165722.GA42149@gothmog.gr> Date: Thu, 24 Jun 2004 13:18:04 -0500 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.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 cc: freebsd-questions@freebsd.org Subject: Re: Using sendmail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: antenneX List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jun 2004 18:18:59 -0000 ----- Original Message ----- From: "Giorgos Keramidas" To: "antenneX" Cc: Sent: Thursday, June 24, 2004 11:57 AM Subject: Re: Using sendmail > On 2004-06-24 11:33, antenneX wrote: > > ....oops! I should have said please send any config examples needed to do > > this...?? > > Look at the file /usr/share/sendmail/cf/README near line 794: > > : mailertable Include a "mailer table" which can be used to override > : routing for particular domains (which are not in class {w}, > : i.e. local host names). The argument of the FEATURE may be > : the key definition. If none is specified, the definition > : used is: > : > : hash /etc/mail/mailertable > : > > You might also want to check out the rest of this file, as it's the > definitive reference for sendmail configuration options. Another good > reference, which is always available, but seldom exploited to its full > potential is the ``Sendmail Installation and Operation Guide''. > > You can find it in /usr/share/doc: > > $ zcat /usr/share/doc/smm/08.sendmailop/paper.ascii.gz | less > > HTH, > > - Giorgos > Indeed, I had read the above before and spent lost of time searchin the sendmail website too, but could never get it right. Okay, I know I still have messed it up. Tried the setup below, but something is wrong because of the errors shown and is not delivered to server #2. Server #1 - IP 200.200.200.101 - DNS for mail.server2.net points here (was to 200.200.200.102 and OK on normal delivery) - mail.server2.net in local-host-names - In mailertable = mail.server2.net esmtp:mail.server2.net Server #2 - IP 200.200.200.102 - has sendmail & pop3 - mail.server2.net in local-host-names - has user "william" Send test mail: william@server2.net ....get error: SYSERR(root): mail.server2.net. config error: mail loops back to me (MX problem?) and... Jun 24 12:43:45 server1 sm-mta[78108]: i5OHhi0f078104: to=, delay=00:00:01, xdelay=00:00:00, mailer=esmtp, pri=30706, relay=mail.server2.net. [200.200.200.101], dsn=5.3.5, stat=Local configuration error