From owner-freebsd-questions@FreeBSD.ORG Thu Oct 8 01:49:37 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 0D4AB1065679 for ; Thu, 8 Oct 2009 01:49:37 +0000 (UTC) (envelope-from davidn04@gmail.com) Received: from mail-qy0-f181.google.com (mail-qy0-f181.google.com [209.85.221.181]) by mx1.freebsd.org (Postfix) with ESMTP id B79F78FC16 for ; Thu, 8 Oct 2009 01:49:36 +0000 (UTC) Received: by qyk11 with SMTP id 11so4717882qyk.13 for ; Wed, 07 Oct 2009 18:49:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=kMjRSymoKxBU7UhnKmlSdXVFjLBHNEFmhRP7klP4ddI=; b=cMHbImxx/0EBhHUlBLQYVB2rbgYEUiPSTBnJ9JvOdiKdKtpeXZtWl/N6XUL49V29iF qxzYaOaPWYXQYqxcLHLswazaxAT5UDbx9s7kbGu8aEsMaegZCGThuYg0dKK+aMPlKziH 4Tisf92ljWKkGnaXDGTKgvxw5wF6Kr4BUOmYI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=TeOViSCFxsLq+xE7NlClSbHoSoxEcWChmq26J3xk9kHe8CaHENTz6ZuRJU9qsziy+t l+RtCU2CQeJFC4RFoOsfsl9HdBZW3q9Z1x+vuV3ges/kYofgn9ABwGW/ifG+8G09lg1r J6Itw0akmkVuPX6yr40a6JglZmbGzla1561PM= MIME-Version: 1.0 Received: by 10.229.54.143 with SMTP id q15mr429822qcg.74.1254966575593; Wed, 07 Oct 2009 18:49:35 -0700 (PDT) In-Reply-To: <4ACD26A8.30709@ibctech.ca> References: <4d7dd86f0910071502n4164fd6eu26693ed03cb3cbee@mail.gmail.com> <4ACD26A8.30709@ibctech.ca> Date: Thu, 8 Oct 2009 12:49:35 +1100 Message-ID: <4d7dd86f0910071849h35e70f9wd1dbbcf6b3b2d47a@mail.gmail.com> From: David N To: Steve Bertrand Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 01:49:37 -0000 2009/10/8 Steve Bertrand : > 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 =A08 08:40:40 server sm-mta[94682]: n97LeeOw094682: SYSERR(root): >> savemail: cannot save rejected email anywhere >> Oct =A08 08:42:30 server sm-mta[94713]: n97LgTYg094713: Losing >> ./qfn97LgTYg094713: savemail panic >> Oct =A08 08:42:30 server sm-mta[94713]: n97LgTYg094713: SYSERR(root): >> savemail: cannot save rejected email anywhere >> Oct =A08 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=3Dsomeone@anotherdomain.com.au, >> ctladdr=3D (0/0), delay=3D00:00:00, xdelay=3D00:00:00, >> mailer=3Desmtp, pri=3D30715, relay=3Danotherdomain.com.au., dsn=3D5.3.5, >> stat=3DLocal configuration error >> Oct =A08 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 =A0 =A0 =A0smtp:[smtp.ibctech.ca] > ipv6canada.com =A0smtp:[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 > > Thank you so much, it worked =3D) My MX records are correct, i could get mail from the outside, but just couldn't get the daily reports to deliver it.