On Jun 10, 2015, at 8:17 PM, Gonzalo wrote: > Hi all, > > I have some problem with my conf: > > OpenBSD 5.7 -stable > > == smtpd.conf == > > table dominios file:/etc/mail/dominios > table usuarios file:/etc/dovecot/users > table usuariosv file:/etc/mail/usuariosv > table aliases db:/etc/mail/aliases.db > table spam file:/etc/mail/spam > > expire 4h > > pki foo.com.ar certificate "/etc/mail/certs/foo.crt" > pki foo.com.ar key "/etc/mail/certs/foo.key" > pki foo.com.ar dhparams "/etc/ssl/foo.com.ar/dhparam.pem" > > listen on lo0 port 25 > listen on egress secure pki foo.com.ar hostname foo.com.ar > listen on egress port 587 tls-require pki foo.com.ar auth <usuarios> > > reject from any sender <spam> for domain <dominios> > > accept for local alias <aliases> deliver to mda > "/usr/local/libexec/dovecot/dovecot-lda -f %{sender} -d %{dest.user}" > accept from any for domain <dominios> virtual <usuariosv> deliver to mda > "/usr/local/libexec/dovecot/dovecot-lda -f %{sender} -d %{dest.user}" > accept for any relay > > > > == /etc/mail/dominios == > hostname > foo.com.ar > serv0.foo.com.ar > bar.com.ar > > == /etc/dovecot/users == > gonzalo gonzalo:$2b$06nDRSAujnL9gdxORpoNLou37NvDEg2ab2QIP3LN3CR1KUIPZZ8QLm >
My best guess is that you have a problem with Dovecot, and I would look at your userdb. I believe this to be the wrong format, but I'm not sure which you are using either. If you are using Passwd-file it should look more like so: user:{SCHEME}password > == /etc/mail/usuariosv == > ## foo > @foo.com.ar vmail > > ## bar > @bar.com.ar vmail > > == /etc/mail/aliases == > ... > system stuff > ... > ## Alias foo y bar > contacto: gonzalo > serv0: gonzalo > m...@foo.com.ar gonzalo > gonz...@bar.com.ar: gonzalo > > > == /etc/mail/spam == > ... > long list of email spammers > ... > > > > == smtpd -dv -T smtp == > > debug: init ssl-tree > info: loading pki information for foo.com.ar > info: OpenSMTPD 5.4.4 starting > debug: bounce warning after 4h > debug: using "fs" queue backend > debug: using "ramqueue" scheduler backend > debug: using "ram" stat backend > info: startup [debug mode] > debug: parent_send_config_ruleset: reloading > debug: parent_send_config: configuring pony process > debug: parent_send_config: configuring ca process > debug: ca_engine_init: using RSAX engine support > debug: smtp: listen on 256.257.258.259 port 587 flags 0x469 pki "foo.com.ar" > debug: smtp: listen on 256.257.258.259 port 25 flags 0x401 pki "foo.com.ar" > debug: smtp: listen on 256.257.258.259 port 465 flags 0x402 pki "foo.com.ar" > debug: smtp: listen on 127.0.0.1 port 25 flags 0x400 pki "" > debug: smtp: listen on IPv6:::1 port 25 flags 0x400 pki "" > debug: smtp: listen on IPv6:fe80::1%lo0 port 25 flags 0x400 pki "" > debug: pony: rsae_init > debug: pony: rsae_init > debug: init ssl-tree > info: loading pki keys for foo.com.ar > debug: init private ssl-tree > debug: queue: done loading queue into scheduler > debug: smtp: will accept at most 499 clients > debug: smtpd: scanning offline queue... > debug: smtpd: offline scanning done > debug: smtp: new client on listener: 0x11f8a2dd8000 > smtp: 0x11f86686d000: STATE_NEW -> STATE_CONNECTED > smtp-in: New session 3dce2ce17de9532c from host mail-lb0-f194.google.com > [209.85.217.194] > smtp: 0x11f86686d000: >>> 220 foo.com.ar ESMTP OpenSMTPD > smtp: 0x11f86686d000: <<< EHLO mail-lb0-f194.google.com > smtp: 0x11f86686d000: STATE_CONNECTED -> STATE_HELO > smtp: 0x11f86686d000: >>> 250-foo.com.ar Hello mail-lb0-f194.google.com > [209.85.217.194], pleased to meet you > smtp: 0x11f86686d000: >>> 250-8BITMIME > smtp: 0x11f86686d000: >>> 250-ENHANCEDSTATUSCODES > smtp: 0x11f86686d000: >>> 250-SIZE 36700160 > smtp: 0x11f86686d000: >>> 250-DSN > smtp: 0x11f86686d000: >>> 250-STARTTLS > smtp: 0x11f86686d000: >>> 250 HELP > smtp: 0x11f86686d000: <<< STARTTLS > smtp: 0x11f86686d000: >>> 220 2.0.0: Ready to start TLS > smtp: 0x11f86686d000: STATE_HELO -> STATE_TLS > debug: lka: looking up pki "foo.com.ar" > debug: session_start_ssl: switching to SSL > debug: pony: rsae_priv_enc > debug: pony: rsae_init > debug: pony: rsae_init > debug: pony: rsae_pub_dec > debug: pony: rsae_bn_mod_exp > debug: pony: rsae_init > debug: pony: rsae_pub_dec > debug: pony: rsae_bn_mod_exp > debug: pony: rsae_pub_dec > debug: pony: rsae_bn_mod_exp > smtp-in: Started TLS on session 3dce2ce17de9532c: version=TLSv1/SSLv3, > cipher=ECDHE-RSA-AES128-GCM-SHA256, bits=128 > smtp-in: Client certificate verification succeeded on session 3dce2ce17de9532c > smtp: 0x11f86686d000: STATE_TLS -> STATE_HELO > smtp: 0x11f86686d000: <<< EHLO mail-lb0-f194.google.com > smtp: 0x11f86686d000: STATE_HELO -> STATE_HELO > smtp: 0x11f86686d000: >>> 250-foo.com.ar Hello mail-lb0-f194.google.com > [209.85.217.194], pleased to meet you > smtp: 0x11f86686d000: >>> 250-8BITMIME > smtp: 0x11f86686d000: >>> 250-ENHANCEDSTATUSCODES > smtp: 0x11f86686d000: >>> 250-SIZE 36700160 > smtp: 0x11f86686d000: >>> 250-DSN > smtp: 0x11f86686d000: >>> 250 HELP > smtp: 0x11f86686d000: <<< MAIL FROM:<tengoandr...@gmail.com> SIZE=1592 > debug: smtp: SIZE in MAIL FROM command > smtp: 0x11f86686d000: >>> 250 2.0.0: Ok > smtp: 0x11f86686d000: <<< RCPT TO:<m...@foo.com.ar> > debug: aliases_virtual_get: 'm...@foo.com.ar' resolved to 1 nodes > smtp: 0x11f86686d000: >>> 250 2.1.5 Destination address valid: Recipient ok > smtp: 0x11f86686d000: <<< DATA > smtp: 0x11f86686d000: STATE_HELO -> STATE_BODY > smtp: 0x11f86686d000: >>> 354 Enter mail, end with "." on a line by itself > <<< [MSG] Received: by lbio15 with SMTP id o15so6820317lbi.0 > <<< [MSG] for <m...@foo.com.ar>; Wed, 10 Jun 2015 18:07:59 -0700 (PDT) > <<< [MSG] DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; > <<< [MSG] d=gmail.com; s=20120113; > <<< [MSG] h=mime-version:date:message-id:subject:from:to:content-type; > <<< [MSG] bh=0ysx8QjPoNX3Ur22Gf3i8rRT75gven8a2JY+F0UjpWg=; > <<< [MSG] > b=aO21Vgfq47ONMreAB5ZSjq02LgfFu0k6OE8MdSbYYOJA8jz+kmozP2LvmYKl7j/NHX > <<< [MSG] > hMwsuwunoxln/jJvU9TWvqWshIlLJLdB2kgz+weFI4vJEd52eWeuE5BP2Jf+OhHeX/lS > <<< [MSG] > /oh7flb+LrDwz4pPz7njT8D8EAE3Q8vNYTcP3Ng1XPyD4f8iSj5pix7TTCnm04BOWqIP > <<< [MSG] > tLKHtPGmkwTAA96QmnIuni0zUizpGzufjiyOyXF65QuHIIJ0gjfhbFNEN+97KETVdqen > <<< [MSG] > Tayq2CWQdjl0yDgcVjeOVRgoB0ODPArhMhQSxVmSlmqqZCUYDfMLUj59oIvEHl/IZAJ0 > <<< [MSG] E4/g== > <<< [MSG] MIME-Version: 1.0 > <<< [MSG] X-Received: by 10.152.4.137 with SMTP id > k9mr6957037lak.29.1433984879793; Wed, > <<< [MSG] 10 Jun 2015 18:07:59 -0700 (PDT) > <<< [MSG] Received: by 10.112.57.233 with HTTP; Wed, 10 Jun 2015 18:07:59 > -0700 (PDT) > <<< [MSG] Date: Wed, 10 Jun 2015 22:07:59 -0300 > <<< [MSG] Message-ID: > <CAL7wv-sMAWdQqn371hcqTFh5sPSPQUtP=OkjZo9fjAU=83s=y...@mail.gmail.com> > <<< [MSG] Subject: Test > <<< [MSG] From: Gonzalo <tengoandr...@gmail.com> > <<< [MSG] To: "Gonzalo" <m...@foo.com.ar> > <<< [MSG] Content-Type: multipart/alternative; > boundary=089e013d1cf85f9a280518339fa9 > <<< [MSG] > <<< [MSG] --089e013d1cf85f9a280518339fa9 > <<< [MSG] Content-Type: text/plain; charset=UTF-8 > <<< [MSG] > <<< [MSG] 1 > <<< [MSG] > <<< [MSG] -- > <<< [MSG] > <<< [MSG] --089e013d1cf85f9a280518339fa9-- > debug: 0x11f86686d000: end of message, msgflags=0x0000 > smtp: 0x11f86686d000: >>> 250 2.0.0: f435f959 Message accepted for delivery > smtp-in: Accepted message f435f959 on session 3dce2ce17de9532c: > from=<tengoandr...@gmail.com>, to=<m...@foo.com.ar>, size=1555, ndest=1, > proto=ESMTP > smtp: 0x11f86686d000: STATE_BODY -> STATE_HELO > debug: scheduler: evp:f435f95975dbbb21 scheduled (mda) > mda: new user 3dce2ce225536b9c for "<getpwnam>:vmail" > debug: lka: userinfo <getpwnam>:vmail > debug: mda: new session 3dce2ce3ff37cce4 for user "<getpwnam>:vmail" evpid > f435f95975dbbb21 > debug: mda: no more envelope for "<getpwnam>:vmail" > debug: mda: got message fd 5 for session 3dce2ce3ff37cce4 evpid > f435f95975dbbb21 > debug: mda: querying mda fd for session 3dce2ce3ff37cce4 evpid > f435f95975dbbb21 > debug: smtpd: forking mda for session 3dce2ce3ff37cce4: > "/usr/local/libexec/dovecot/dovecot-lda -f tengoandr...@gmail.com -d mac" as > vmail > debug: mda: got mda fd 6 for session 3dce2ce3ff37cce4 evpid f435f95975dbbb21 > debug: mda: end-of-file for session 3dce2ce3ff37cce4 evpid f435f95975dbbb21 > debug: mda: all data sent for session 3dce2ce3ff37cce4 evpid f435f95975dbbb21 > debug: smtpd: mda process done for session 3dce2ce3ff37cce4: exited abnormally > delivery: TempFail for f435f95975dbbb21: from=<tengoandr...@gmail.com>, > to=<m...@foo.com.ar>, user=vmail, method=mda, delay=0s, stat=Error (exited > abnormally) > debug: mda: session 3dce2ce3ff37cce4 done > debug: mda: user "vmail" becomes runnable > debug: mda: all done for user "<getpwnam>:vmail" > smtp: 0x11f86686d000: <<< QUIT > smtp: 0x11f86686d000: >>> 221 2.0.0: Bye > smtp: 0x11f86686d000: STATE_HELO -> STATE_QUIT > smtp-in: Closing session 3dce2ce17de9532c > debug: smtp: 0x11f86686d000: deleting session: done > debug: pony: rsae_finish > debug: pony: rsae_finish > debug: pony: rsae_finish > ^Cinfo: ca agent exiting > info: pony agent exiting > info: scheduler handler exiting > info: lookup agent exiting > info: control process exiting > info: queue handler exiting > warn: parent terminating > > > > > > > > > Any idea whats wrong here? sent mail to mac@ it resolved to gonzalo (vmail), > it found the user, executed the mda but the mda didn't exit with success, so > the mail remains in queue. > > CanĀ“t figure out why... > > > Thanks! > > > > -- > Enviado desde mi tostadora de mano...