Hmm, actually it is set -
root at ns:/usr/local/etc/dovecot # dovecot -a | grep auth_username_format
auth_username_format = %Ln
Oddly, it now seems to work once I made this change -
root at ns:/usr/local/etc/dovecot # dovecot -a | grep -A5 "protocol
lmtp"
protocol lmtp {
# Added explicit hostname
hostname = ns.mahan.org
mail_fsync = optimized
mail_plugins = " sieve"
}
I now see -
root at ns:/usr/local/etc/dovecot # tail -f /var/log/maillog | grep "
mahan at mahan.org"
Mar 31 08:54:47 ns postfix/lmtp[74403]: 7871EA2DFB5: to=<mahan at
mahan.org>,
relay=ns.mahan.org[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 <
mahan at mahan.org> t1FFEMfioFykIgEAYVf4yg Saved)
So I guess it is working? :-)
Thanks,
Patrick
On Sun, Mar 31, 2019 at 7:56 AM Aki Tuomi via dovecot <dovecot at
dovecot.org>
wrote:
>
> On 31 March 2019 17:41 Jerry via dovecot < dovecot at dovecot.org>
wrote:
>
>
> On Thu, 28 Mar 2019 05:22:37 -0700, Patrick Mahan via dovecot stated:
>
> >FreeBSD 11.2
> >Postfix 3.3.2
> >Dovecot 2.3.4
> >
> >I am trying to use dovecot lmtp with postfix to verify authentication
> >of incoming email and to avoid being a spam relay (an issue I was
> >having using sendmail as my MTA).
> >
> >I am getting the following log message in /var/log/maillog:
> >
> >Mar 30 20:31:38 ns postfix/smtpd[40373]: NOQUEUE: reject: RCPT from
> >mail-eopbgr750091.outbound.protection.outlook.com[40.107.75.91]: 450
> >4.1.1 < mahan at mahan.org>: Recipient address rejected:
unverified
> >address: host ns.mahan.org[private/dovecot-lmtp] said: 550 5.1.1
> >< mahan at mahan.org> User doesn't exist: mahan at mahan.org
(in reply to
> >RCPT TO command); from=< pmahan at silver-peak.com> to=< mahan
at mahan.org>
> >proto=ESMTP helo=< NAM02-BL2-obe.outbound.protection.outlook.com>
> >
> >'mahan' does exist on ns.mahan.org. So I am confused to why
lmtp is
> >failing to find this username.
> >
> >Thanks,
> >
> >Patrick
> >
>
> You probably shuld be asking this on the Postfix forum. Have you read
> < ">http://www.postfix.org/ADDRESS_VERIFICATION_README.html>
> <http://www.postfix.org/ADDRESS_VERIFICATION_README.html%3E>? You
also
> have "smtpd_reject_unlisted_recipient" options. You really need
to post
> the output of "postconf -nf" and perhaps "postconf
-Mf".
>
> --
> Jerry
>
>
> I would try setting
>
> auth_username_format=%Ln
>
> as otherwise domain part is included in username lookup...
>
> ---
> Aki Tuomi
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<https://dovecot.org/pipermail/dovecot/attachments/20190328/16103cab/attachment.html>
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<div>
<br>
</div>
<blockquote type="cite">
<div>
On 31 March 2019 17:41 Jerry via dovecot <
<a
href="mailto:dovecot@dovecot.org">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>
>mail-eopbgr750091.outbound.protection.outlook.com[40.107.75.91]: 450
</div>
<div>
>4.1.1 <
<a
href="mailto:mahan@mahan.org">mahan@mahan.org</a>>:
Recipient address rejected: unverified
</div>
<div>
>address: host ns.mahan.org[private/dovecot-lmtp] said: 550 5.1.1
</div>
<div>
><
<a
href="mailto:mahan@mahan.org">mahan@mahan.org</a>> User
doesn't exist:
<a href="mailto:mahan@mahan.org">mahan@mahan.org</a>
(in reply to
</div>
<div>
>RCPT TO command); from=<
<a
href="mailto:pmahan@silver-peak.com">pmahan@silver-peak.com</a>>
to=<
<a
href="mailto:mahan@mahan.org">mahan@mahan.org</a>>
</div>
<div>
>proto=ESMTP helo=< NAM02-BL2-obe.outbound.protection.outlook.com>
</div>
<div>
>
</div>
<div>
>'mahan' does exist on ns.mahan.org. 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>"
rel="noopener" target="_blank"
data-mce-href="http://www.postfix.org/ADDRESS_VERIFICATION_README.html">">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="io-ox-signature">
<pre>---
Aki Tuomi</pre>
</div>
</body>
</html>
On Thu Mar 28 2019 17:04:37 GMT-0400 (Eastern Standard Time), Patrick Mahan via dovecot <dovecot at dovecot.org> wrote:> Hmm, actually it is set - > > root at ns:/usr/local/etc/dovecot # dovecot -a | grep auth_username_format > auth_username_format = %LnUse doveconf, not dovecot (although they may do the same thing). doveconf -a just shows you ALL settings, regardless of whether or not they are set in your particular config. doveconf -n shows you the settings that your running dovecot is actually using.