From owner-freebsd-questions@FreeBSD.ORG Thu Oct 8 02:09:36 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 8A8221065676 for ; Thu, 8 Oct 2009 02:09:36 +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 283C18FC1B for ; Thu, 8 Oct 2009 02:09:36 +0000 (UTC) Received: (qmail 27936 invoked by uid 89); 8 Oct 2009 02:09:16 -0000 Received: from unknown (HELO ?IPv6:2607:f118::5?) (steve@ibctech.ca@2607:f118::5) by 2607:f118::b6 with ESMTPA; 8 Oct 2009 02:09:16 -0000 Message-ID: <4ACD49E5.2010006@ibctech.ca> Date: Wed, 07 Oct 2009 22:09:41 -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> <4ACD26A8.30709@ibctech.ca> <4d7dd86f0910071849h35e70f9wd1dbbcf6b3b2d47a@mail.gmail.com> In-Reply-To: <4d7dd86f0910071849h35e70f9wd1dbbcf6b3b2d47a@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: Thu, 08 Oct 2009 02:09:36 -0000 David N wrote: > 2009/10/8 Steve Bertrand : >> David N wrote: [ big snips ] >>> When i try to send an email i get >>> Oct 8 08:47:07 server sm-mta[95130]: n97Ll7VV095129: SYSERR(root): MX >>> list for anotherdomain.com.au. points back to server.net >> 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'). > Thank you so much, it worked =) > > My MX records are correct, i could get mail from the outside, but just > couldn't get the daily reports to deliver it. I'm glad it worked. Believe me, if that simple change made it work for you, then it was worth my headache to have spent the time to learn it for myself ;) For the last few years, I've only used Sendmail (or sendmail) to act as a backup MX, or to directly deliver mail from the box I am on...hence, it's been a while... There may be other ramifications to using `mailertable' in your particular environment. I don't know how your system will react, given a default setup and a mailertable entry. It's possible (but untested) that if the server that is specified in the mailertable is down, your reports might not make it to you ( whether that's bad or good is up for interpretation... I've always known no news as good news ;) Perhaps Giorgos or someone else may be able to provide a better understanding. Steve