Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Apr 2012 13:15:51 -0700
From:      Chuck Swiger <cswiger@mac.com>
To:        Ron <rg.lists@rzweb.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Postfix + Courier IMAP local email problems
Message-ID:  <BA32EE6C-F440-45AA-876B-8752B844CEAB@mac.com>
In-Reply-To: <606a3fb9c92576166ef1af20bc4a906a@flabnapple2.net>
References:  <606a3fb9c92576166ef1af20bc4a906a@flabnapple2.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BA32EE6C-F440-45AA-876B-8752B844CEAB>