From owner-freebsd-questions@FreeBSD.ORG Thu Jun 24 19:09:02 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 74F3A16A4CE for ; Thu, 24 Jun 2004 19:09:02 +0000 (GMT) Received: from frodo.otenet.gr (frodo.otenet.gr [195.170.0.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D9F243D45 for ; Thu, 24 Jun 2004 19:09:01 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-a168.otenet.gr [212.205.215.168]) by frodo.otenet.gr (8.12.10/8.12.10) with ESMTP id i5OJ8TIw005015; Thu, 24 Jun 2004 22:08:30 +0300 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.11/8.12.11) with ESMTP id i5OJ8TVP000865; Thu, 24 Jun 2004 22:08:29 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.12.11/8.12.11/Submit) id i5OJ8T6D000864; Thu, 24 Jun 2004 22:08:29 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Thu, 24 Jun 2004 22:08:28 +0300 From: Giorgos Keramidas To: antenneX Message-ID: <20040624190828.GA821@gothmog.gr> References: <00d801c45a02$65487ba0$0200000a@SAGEAME> <61e1e14d0406240902321df14b@mail.gmail.com> <000901c45a09$109da970$0200000a@SAGEAME> <20040624165722.GA42149@gothmog.gr> <003d01c45a17$a74ebf40$0200000a@SAGEAME> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <003d01c45a17$a74ebf40$0200000a@SAGEAME> cc: freebsd-questions@freebsd.org Subject: Re: Using sendmail 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: Thu, 24 Jun 2004 19:09:02 -0000 [-- Format recovered from broken Outlook wrapping --] On 2004-06-24 13:18, antenneX wrote: > Giorgos Keramidas wrote: > > 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 > > : [snip] > > > > You might also want to check out the rest of this file, [...] > > 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) I hope you don't mean that the name "mail.server2.net" now points to 200.200.200.101. Only the MX records for server2.net need to point to the first host, so that mail for the domain is delivered to this host. > - mail.server2.net in local-host-names IIRC, this isn't right. You should only list mail.server2.net in the local-host-names of 200.200.200.102. > - In mailertable = mail.server2.net esmtp:mail.server2.net This seems ok. > Server #2 - IP 200.200.200.102 > - has sendmail & pop3 > - mail.server2.net in local-host-names > - has user "william" This seems ok too. > Send test mail: william@server2.net > ....get error: > SYSERR(root): mail.server2.net. config error: mail loops back to me (MX > problem?) That's because mail.server2.net points to the address 200.200.200.101. When sendmail on that host tries to deliver the message as per the instructions of your mailertable, it discovers that the message is sent back to itself! A loop... - Giorgos