Postfix + Courier IMAP local email problems

Chuck Swiger cswiger at mac.com
Thu Apr 12 20:16:06 UTC 2012


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 at 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



More information about the freebsd-questions mailing list