<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hmm, actually it is set -<div><br></div><div><div>root@ns:/usr/local/etc/dovecot # dovecot -a | grep auth_username_format</div><div>auth_username_format = %Ln</div></div><div><br></div><div>Oddly, it now seems to work once I made this change -</div><div><br></div><div><div>root@ns:/usr/local/etc/dovecot # dovecot -a | grep -A5 "protocol lmtp"</div><div>protocol lmtp {</div><div> # Added explicit hostname</div><div> hostname = <a href="http://ns.mahan.org">ns.mahan.org</a></div><div> mail_fsync = optimized</div><div> mail_plugins = " sieve"</div><div>}</div></div><div><br></div><div>I now see -</div><div><br></div><div><div>root@ns:/usr/local/etc/dovecot # tail -f /var/log/maillog | grep "<a href="mailto:mahan@mahan.org">mahan@mahan.org</a>"</div><div>Mar 31 08:54:47 ns postfix/lmtp[74403]: 7871EA2DFB5: to=<<a href="mailto:mahan@mahan.org">mahan@mahan.org</a>>, relay=<a href="http://ns.mahan.org">ns.mahan.org</a>[private/dovecot-lmtp], delay=1.9, delays=1.8/0.01/0.01/0.01, dsn=2.0.0, status=sent (250 2.0.0 <<a href="mailto:mahan@mahan.org">mahan@mahan.org</a>> t1FFEMfioFykIgEAYVf4yg Saved)</div></div><div><br></div><div>So I guess it is working? :-)</div><div><br></div><div>Thanks,</div><div><br></div><div>Patrick</div><div><br></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Mar 31, 2019 at 7:56 AM Aki Tuomi via dovecot <<a href="mailto:dovecot@dovecot.org">dovecot@dovecot.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>
<div>
<div>
<br>
</div>
<blockquote type="cite">
<div>
On 31 March 2019 17:41 Jerry via dovecot <
<a href="mailto:dovecot@dovecot.org" target="_blank">dovecot@dovecot.org</a>> wrote:
</div>
<div>
<br>
</div>
<div>
<br>
</div>
<div>
On Thu, 28 Mar 2019 05:22:37 -0700, Patrick Mahan via dovecot stated:
</div>
<div>
<br>
</div>
<div>
>FreeBSD 11.2
</div>
<div>
>Postfix 3.3.2
</div>
<div>
>Dovecot 2.3.4
</div>
<div>
>
</div>
<div>
>I am trying to use dovecot lmtp with postfix to verify authentication
</div>
<div>
>of incoming email and to avoid being a spam relay (an issue I was
</div>
<div>
>having using sendmail as my MTA).
</div>
<div>
>
</div>
<div>
>I am getting the following log message in /var/log/maillog:
</div>
<div>
>
</div>
<div>
>Mar 30 20:31:38 ns postfix/smtpd[40373]: NOQUEUE: reject: RCPT from
</div>
<div>
><a href="http://mail-eopbgr750091.outbound.protection.outlook.com" target="_blank">mail-eopbgr750091.outbound.protection.outlook.com</a>[40.107.75.91]: 450
</div>
<div>
>4.1.1 <
<a href="mailto:mahan@mahan.org" target="_blank">mahan@mahan.org</a>>: Recipient address rejected: unverified
</div>
<div>
>address: host <a href="http://ns.mahan.org" target="_blank">ns.mahan.org</a>[private/dovecot-lmtp] said: 550 5.1.1
</div>
<div>
><
<a href="mailto:mahan@mahan.org" target="_blank">mahan@mahan.org</a>> User doesn't exist:
<a href="mailto:mahan@mahan.org" target="_blank">mahan@mahan.org</a> (in reply to
</div>
<div>
>RCPT TO command); from=<
<a href="mailto:pmahan@silver-peak.com" target="_blank">pmahan@silver-peak.com</a>> to=<
<a href="mailto:mahan@mahan.org" target="_blank">mahan@mahan.org</a>>
</div>
<div>
>proto=ESMTP helo=< <a href="http://NAM02-BL2-obe.outbound.protection.outlook.com" target="_blank">NAM02-BL2-obe.outbound.protection.outlook.com</a>>
</div>
<div>
>
</div>
<div>
>'mahan' does exist on <a href="http://ns.mahan.org" target="_blank">ns.mahan.org</a>. So I am confused to why lmtp is
</div>
<div>
>failing to find this username.
</div>
<div>
>
</div>
<div>
>Thanks,
</div>
<div>
>
</div>
<div>
>Patrick
</div>
<div>
>
</div>
<div>
<br>
</div>
<div>
You probably shuld be asking this on the Postfix forum. Have you read
</div>
<div>
<
<a href="http://www.postfix.org/ADDRESS_VERIFICATION_README.html%3E" rel="noopener" target="_blank">">http://www.postfix.org/ADDRESS_VERIFICATION_README.html></a>? You also
</div>
<div>
have "smtpd_reject_unlisted_recipient" options. You really need to post
</div>
<div>
the output of "postconf -nf" and perhaps "postconf -Mf".
</div>
<div>
<br>
</div>
<div>
--
</div>
<div>
Jerry
</div>
</blockquote>
<div>
<br>
</div>
<div>
I would try setting
</div>
<div>
<br>
</div>
<div>
auth_username_format=%Ln
</div>
<div>
<br>
</div>
<div>
as otherwise domain part is included in username lookup...
</div>
<div class="gmail-m_635871329263605881io-ox-signature">
<pre>---
Aki Tuomi</pre>
</div>
</div>
</blockquote></div>