Postfix delivers to Dovecot, but user mail not showing

started at 31 Jan 2011 by erich.dys@bpisys.com
  • erich.dys@bpisys.com
    31 Jan 2011

    This is on a 10.5 install per the documentation (64 bit).

    The primary domain functions normally for mail delivery service, however, 2nd and subsequent virtual domain users inbox mail are not visible via IMAP.

    The log files show Postfix handing mail off to Dovecot:

    relay=virtual, delay=0.56, delays=0.54/0/0/0.02, dsn=2.0.0, status=sent (delivered to maildir)

  • Richard
    01 Feb 2011

    Do you see the directories appear in /usr/local/virtual for those new domains? And can you see the new emails appear on the filesystem in the sub directories of the users.

  • erich.dys@bpisys.com
    07 Feb 2011

    Yes, the directories exist. I've double checked ownership and rights and these match with the directory where mail IS being delivered successfully.

    Here's a snippet of the mail.log showing inbound mail being handled correctly by Postfix:

    Feb 7 11:46:59 s1 postfix/smtpd[25167]: connect from asp.reflexion.net[69.84.129.233]
    Feb 7 11:46:59 s1 postfix/smtpd[25167]: setting up TLS connection from asp.reflexion.net[69.84.129.233]
    Feb 7 11:46:59 s1 postfix/smtpd[25167]: Anonymous TLS connection established from asp.reflexion.net[69.84.129.233]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)
    Feb 7 11:46:59 s1 postfix/smtpd[25167]: D0290337F0C: client=asp.reflexion.net[69.84.129.233]
    Feb 7 11:46:59 s1 postfix/cleanup[25170]: D0290337F0C: message-id=<0699B874-3A6B-4353-9E3E-A91B5BCE2173@bpisys.com>
    Feb 7 11:47:00 s1 postfix/qmgr[25097]: D0290337F0C: from=<erich@bpisys.com>, size=43858, nrcpt=1 (queue active)
    Feb 7 11:47:00 s1 postfix/virtual[25171]: D0290337F0C: to=<erich@bpisys-tx.com>, orig_to=<eprinz@bpisys-tx.com>, relay=virtual, delay=0.53, delays=0.52/0.01/0/0, dsn=2.0.0, status=sent (delivered to maildir)
    Feb 7 11:47:00 s1 postfix/qmgr[25097]: D0290337F0C: removed
    Feb 7 11:47:00 s1 postfix/smtpd[25167]: disconnect from asp.reflexion.net[69.84.129.233]

    Then .... nothing.

    What's the appropriate debug setting in Postfix so we can see the details of where this might be breaking?

  • Richard
    07 Feb 2011

    Erich, from this piece of the logfile it shows that you are not using dovecot but are using the virtual maildir config of postfix itself.

    Feb 7 11:47:00 s1 postfix/virtual[25171]: D0290337F0C: to=<erich@bpisys-tx.com>, orig_to=<eprinz@bpisys-tx.com>, relay=virtual, delay=0.53, delays=0.52/0.01/0/0, dsn=2.0.0, status=sent (delivered to maildir)

    Should look like:
    Feb 7 20:09:10 iMac27i7 postfix/pipe[84744]: A5F4E77F39E: to=<info@richard5.tld>, relay=dovecot, delay=0.84, delays=0.05/0.01/0/0.77, dsn=2.0.0, status=sent (delivered via dovecot service)

    So I think you missed something in your postfix configuration. Do you have the line: virtual_transport = dovecot in main.cf ?

  • erich.dys@bpisys.com
    09 Feb 2011

    Oh yeah! Good eye, that was it.

    I hand cranked the files versus a copy 'n paste and clearly missed that piece. What's interesting is the primary domain mail was delivered with no issues (the unit has been in service for a year an a half) - it wasn't until using a second domain that it was evident there was a problem.

    Thanks Richard.

Reply

You must log in to post.