From owner-freebsd-questions@FreeBSD.ORG Wed Oct 7 23:39:16 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D5861106568D for ; Wed, 7 Oct 2009 23:39:16 +0000 (UTC) (envelope-from steve@ibctech.ca) Received: from smtp.ibctech.ca (v6.ibctech.ca [IPv6:2607:f118::b6]) by mx1.freebsd.org (Postfix) with SMTP id 758F98FC0A for ; Wed, 7 Oct 2009 23:39:16 +0000 (UTC) Received: (qmail 23676 invoked by uid 89); 7 Oct 2009 23:38:55 -0000 Received: from unknown (HELO ?IPv6:2607:f118::5?) (steve@ibctech.ca@2607:f118::5) by 2607:f118::b6 with ESMTPA; 7 Oct 2009 23:38:54 -0000 Message-ID: <4ACD26A8.30709@ibctech.ca> Date: Wed, 07 Oct 2009 19:39:20 -0400 From: Steve Bertrand User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: David N References: <4d7dd86f0910071502n4164fd6eu26693ed03cb3cbee@mail.gmail.com> In-Reply-To: <4d7dd86f0910071502n4164fd6eu26693ed03cb3cbee@mail.gmail.com> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: FreeBSD Mailing List Subject: Re: Daily report cannot be emailed to a jailed mail 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: Wed, 07 Oct 2009 23:39:16 -0000 David N wrote: > Hi, > > FreeBSD 7.2-R box with 10 jails. > > The mail server (actually its a mail filter) is hosted on the same > server inside a jail. > > I can't seem to get the main server reports to be sent to the mail > filter inside the jail inside the same box. > > so.. root@localhost tries to send an email to someone@anotherdomain.com.au > > The MX entry for anotherdomain.com.au points to the mailfilter on the > server (jailed). > > > I've changed my /etc/mail/aliases to have > root: someone@anotherdomain.com.au > and ran newaliases. > > When i try to send an email i get > in /var/log/messages > sm-mta[94682]: n97LeeOw094682: Losing ./qfn97LeeOw094682: savemail panic > Oct 8 08:40:40 server sm-mta[94682]: n97LeeOw094682: SYSERR(root): > savemail: cannot save rejected email anywhere > Oct 8 08:42:30 server sm-mta[94713]: n97LgTYg094713: Losing > ./qfn97LgTYg094713: savemail panic > Oct 8 08:42:30 server sm-mta[94713]: n97LgTYg094713: SYSERR(root): > savemail: cannot save rejected email anywhere > Oct 8 08:47:07 server sm-mta[95130]: n97Ll7VV095129: SYSERR(root): MX > list for anotherdomain.com.au. points back to server.net > > In /var/log/maillog > n97Ll7VV095129: to=someone@anotherdomain.com.au, > ctladdr= (0/0), delay=00:00:00, xdelay=00:00:00, > mailer=esmtp, pri=30715, relay=anotherdomain.com.au., dsn=5.3.5, > stat=Local configuration error > Oct 8 08:47:07 server sm-mta[95130]: n97Ll7VV095129: n97Ll7VV095130: > DSN: Local configuration error > > Anyone have any ideas on how to fix this? If you hadn't of sanitized the domain names, it would have been easier to troubleshoot... Nonetheless, you can force Sendmail to push email to a different server directly (overriding the DNS MX entries) with a 'mailertable' file in /etc/mail. Here's one on a secondary MX: %cat /etc/mail/mailertable ibctech.ca smtp:[smtp.ibctech.ca] ipv6canada.com smtp:[smtp.ipv6canada.com] ... After the file is created, a simple 'make' in /etc/mail will build the mailertable.db file for you and take effect immediately (much like 'newaliases'). However, it's hard to tell if this recommendation will solve your problem though. Without knowing the real domain, we can't perform DNS tests against it to get a better understanding of the situation. Cheers, Steve