From owner-freebsd-questions@FreeBSD.ORG Fri Jun 25 15:13:17 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 A83A916A4CE for ; Fri, 25 Jun 2004 15:13:17 +0000 (GMT) Received: from mtaw6.prodigy.net (mtaw6.prodigy.net [64.164.98.56]) by mx1.FreeBSD.org (Postfix) with ESMTP id 484AE43D46 for ; Fri, 25 Jun 2004 15:13:17 +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 i5PFBSdH024834; Fri, 25 Jun 2004 08:11:29 -0700 (PDT) Message-ID: <007501c45ac6$ea2a6d50$0200000a@SAGEAME> From: "antenneX" To: "Giorgos Keramidas" References: <00d801c45a02$65487ba0$0200000a@SAGEAME><61e1e14d0406240902321df14b@mail.gmail.com><000901c45a09$109da970$0200000a@SAGEAME> <20040624165722.GA42149@gothmog.gr><003d01c45a17$a74ebf40$0200000a@SAGEAME> <20040624190828.GA821@gothmog.gr> Date: Fri, 25 Jun 2004 10:12:58 -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: Fri, 25 Jun 2004 15:13:17 -0000 ----- Original Message ----- From: "Giorgos Keramidas" To: "antenneX" Cc: Sent: Thursday, June 24, 2004 2:08 PM Subject: Re: Using sendmail > [-- 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 Giorgos: Thanks for your review of my setup & I did change the IP for server2 back to 200.200.200.102 -- however, now the emails go straight though the firewall port on server1 to sendmail on server2 and apparently bypasses sendmail on server1. If it bypasses sendmail on server1, I cannot use greylisting to filter the emails before being sent over to server2. I'm still missing something here.....