I discovered the below after running a smtpd -dv -Tlookup:
lookup: check "220.127.116.11" as NETADDR in table static:<localhost> -> 0
lookup: check "18.104.22.168" as NETADDR in table static:<anyhost> -> found
lookup: check “domain.com" as DOMAIN in table static:<dynamic:0> -> found
lookup: lookup “user1" as USERINFO in table getpwnam:<getpwnam> -> 0
Why osmtpd is looking for user1 in table getpwnam? What table is that?
# man getpwnam
"These functions operate on the password database file which is
described in passwd(5)."
# man 5 passwd
Which leads to the question: Does user1 exist?
If you are curious:
Which is a valid user:
# userinfo e_thomas
gecos eMail User
Which leads to this debug output:
lookup: lookup "e_thomas" as USERINFO in table getpwnam:<getpwnam> ->
You received this mail because you are subscribed to email@example.com
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org