From owner-freebsd-questions@FreeBSD.ORG Thu Apr 12 20:16:06 2012 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 2B6681065745 for ; Thu, 12 Apr 2012 20:16:06 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from nk11p00mm-asmtp007.mac.com (nk11p00mm-asmtp007.mac.com [17.158.161.6]) by mx1.freebsd.org (Postfix) with ESMTP id 0CCA58FC0A for ; Thu, 12 Apr 2012 20:16:06 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from cswiger1.apple.com (unknown [17.209.4.71]) by nk11p00mm-asmtp007.mac.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPSA id <0M2D00HCOUYGV550@nk11p00mm-asmtp007.mac.com> for freebsd-questions@freebsd.org; Thu, 12 Apr 2012 20:15:53 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.6.7498,1.0.260,0.0.0000 definitions=2012-04-12_05:2012-04-12, 2012-04-12, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=6.0.2-1012030000 definitions=main-1204120241 From: Chuck Swiger In-reply-to: <606a3fb9c92576166ef1af20bc4a906a@flabnapple2.net> Date: Thu, 12 Apr 2012 13:15:51 -0700 Message-id: References: <606a3fb9c92576166ef1af20bc4a906a@flabnapple2.net> To: Ron X-Mailer: Apple Mail (2.1084) Cc: freebsd-questions@freebsd.org Subject: Re: Postfix + Courier IMAP local email problems 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, 12 Apr 2012 20:16:06 -0000 On Apr 12, 2012, at 1:01 PM, Ron wrote: > If I send email from a local user (while SSH'd in using the command line mail) to another local user (mail todd@mysite.com) on the same machine, but using the full email address, I get the following error and the email bounced back: > > 553 5.3.5 mail.mysite.com. config error: mail loops back to me (MX problem?) > 554 5.3.5 Local configuration error > > The only thing I can think of is that mysite.com and mail.mysite.com (the mx record) do not point to the same server (which they did on my old machine). I have also tried everything I can think of in how users are listed in postfix's virtual file and in /etc/aliases and server entries in main.cf. You need to tell Postfix that mysite.com and mail.mysite.com are local. See the mydestination keyword in main.cf. > The second issue is if (again, SSH'd in an using mail) I send email to a local user without the @mysite.com (mail todd) then the email isn't available via IMAP externally. I can read it using the command line mail, but not externally via IMAP. These two mailboxs are completely separate and have two different lists of waiting email. This implies you might be using a command line mail which does direct delivery to a Unix-style mailbox, but Postfix is using courier via mailbox_transport setting. Postfix ought to come with a sendmail-ish wrapper which does delivery via Courier instead, probably under /usr/local/libexec/postfix/sendmail and linked to /usr/local/sbin/sendmail or similar via mailwrapper(8). Regards, -- -Chuck