On Thu, Jul 14, 2016 at 10:59 AM, pete wright <nomadlo...@gmail.com> wrote:
> Hello,
> I am migrating a currently running Postfix+Dovecot-IMAP system to
> OpenSMTPd+Dovecot-IMAP system and am running into an odd issue.
>
> I am unable to deliver messages to the Maildir that I have copied over
> from my Postfix box.  Yet, I am able to deliver messages to freshly
> created accounts on this system - so I believe most of the plumbing
> with smtpd is working.  What is confusing me is that I am not getting
> an error message when I attempt to deliver a message as show here:
>
>
> debug: lka: userinfo <getpwnam>:pete
> debug: mda: new session 5006d99cf314b917 for user "<getpwnam>:pete"
> evpid 56810c49185eba8b
> debug: mda: no more envelope for "<getpwnam>:pete"
> debug: mda: got message fd 4 for session 5006d99cf314b917 evpid 
> 56810c49185eba8b
> debug: mda: querying mda fd for session 5006d99cf314b917 evpid 
> 56810c49185eba8b
> debug: smtpd: forking mda for session 5006d99cf314b917:
> "/home/pete/Maildir/" as pete
> debug: mda: got mda fd 5 for session 5006d99cf314b917 evpid 56810c49185eba8b
> debug: mda: end-of-file for session 5006d99cf314b917 evpid 56810c49185eba8b
> debug: mda: all data sent for session 5006d99cf314b917 evpid 56810c49185eba8b
> debug: smtpd: mda process done for session 5006d99cf314b917: exited abnormally
> delivery: TempFail for 56810c49185eba8b: from=<nomadlo...@gmail.com>,
> to=<p...@nomadlogic.org>, user=pete, method=file, delay=19h8m11s,
> stat=Error ("")
> debug: mda: session 5006d99cf314b917 done
> debug: mda: user "pete" becomes runnable
> debug: mda: all done for user "<getpwnam>:pete"
>
>
> Specifically I am stumped by the "stat=Error("")" piece.  I have
> verified permissions of this users Maildir are correct, and match a
> known working account on this server.  I have also moved the old
> Maildir out of the way and created a empty one.  Yet in all cases I
> get the same error.  I also have removed this local account and
> re-added it with no success.  Here is my configuration for reference:
>
>
> % uname -ar
> FreeBSD vps-mail.nomadlogic.org 10.3-RELEASE-p4 FreeBSD
> 10.3-RELEASE-p4 #0: Sat May 28 12:23:44 UTC 2016
> r...@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
>
> % pkg info opensmtpd | grep -e Name -e Version
> Name           : opensmtpd
> Version        : 5.9.2p1_1,1
>
>
> % cat /usr/local/etc/mail/smtpd.conf
> # This is the smtpd server system-wide configuration file.
> # See smtpd.conf(5) for more information.
>
> # Macros
> pub_int = "vtnet0"
>
> # PKI config
> pki mail.nomadlogic.org certificate
> "/usr/local/etc/mail/ssl/mail.nomadlogic.org.crt"
> pki mail.nomadlogic.org key "/usr/local/etc/mail/ssl/mail.nomadlogic.org.key"
>
> # Listen Rules, loopback no auth but encrypt/auth on public
> listen on lo0
> listen on $pub_int tls pki mail.nomadlogic.org
>
> # If you edit the file, you have to run "smtpctl update table aliases"
> table aliases file:/etc/mail/aliases
>
> # accept local messages and deliver to users maildir
> accept from any for domain "nomadlogic.org" deliver to maildir
> accept from any for domain "nomadlogic.org" alias <aliases> deliver to maildir
>
> # allow outgoing emails
> accept for any relay
>
>
> Thanks for any troubleshooting tips in advance!
> -pete
>
>


Ah - figured this out right after I sent the email - d'oh!  For the
archives, I have a .forward file in pete's $HOME containing the
following:

% cat .forward
/home/pete/Maildir/

When I moved that out of the way messages started getting delivered
correctly.  I guess this was setting up some sort of loop?  Regardless
- maybe someone will find this helpful in the archives one day.

-pete




-- 
pete wright
www.nycbug.org
@nomadlogicLA

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org

Reply via email to