Hi,
(OpenSMTPD 201312142053)
By defining a macro to encapsulate the "deliver to mda" argument, the delivery
TempFails more than twice before being delivered. By directly inlining the
argument, the delivery occurs immediately. In addition, the macro name must be
enclosed in double quotes before inline expansion, or a syntax error is issued.
See the example below.
Thanks.
===========================
[smtpd.conf]
...
mda1 = "/usr/local/libexec/dovecot/dovecot-lda -f %{sender} -d %{dest}"
accept from any for domain "virtual_host.dom" virtual <vmap> userbase <myusers>
deliver to mda "$mda1"
===========================
[maillog]
....
Dec 31 11:01:25 example_host smtpd[23475]: smtp-in: Started TLS on session
44e80a9b2497f48e: version=TLSv1/SSLv3, cipher=DHE-RSA-AES256-SHA, bits=256
Dec 31 11:01:25 example_host smtpd[23475]: smtp-in: Accepted message a642e15c
on session 44e80a9b2497f48e: from=<[email protected]>,
to=<virtual_user@virtual_host.dom>, size=948, ndest=1, proto=ESMTP
Dec 31 11:01:25 example_host smtpd[23475]: smtp-in: Closing session
44e80a9b2497f48e
Dec 31 11:01:26 example_host smtpd[11431]: delivery: TempFail for
a642e15c0742cb9: from=<[email protected]>, to=<virtual_user@virtual_host.dom>,
user=virtual_user, method=mda, delay=1s, stat=Error (mda exited prematurely)
Dec 31 11:01:30 example_host smtpd[11431]: delivery: TempFail for
a642e15c0742cb9: from=<[email protected]>, to=<virtual_user@virtual_host.dom>,
user=virtual_user, method=mda, delay=5s, stat=Error (mda exited prematurely)
Dec 31 11:01:45 example_host smtpd[11431]: delivery: TempFail for
a642e15c0742cb9: from=<[email protected]>, to=<virtual_user@virtual_host.dom>,
user=virtual_user, method=mda, delay=20s, stat=Error (mda exited prematurely)
Dec 31 11:02:10 example_host smtpd[11431]: delivery: Ok for a642e15c0742cb9:
from=<[email protected]>, to=<virtual_user@virtual_host.dom>,
user=virtual_user, method=mda, delay=45s, stat=Delivered