I discovered the below after running a smtpd -dv -Tlookup:

lookup: check "17.58.63.178" as NETADDR in table static:<localhost> -> 0
lookup: check "17.58.63.178" 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:
My "virtuals"
@       e_thomas

Which is a valid user:
# userinfo e_thomas
login   e_thomas
passwd  *
uid     1002
groups  e_thomas
change  NEVER
class
gecos   eMail User
dir     /home/e_thomas
shell   /sbin/nologin
expire  NEVER

Which leads to this debug output:
lookup: lookup "e_thomas" as USERINFO in table getpwnam:<getpwnam> -> "e_thomas:1002:1002:/home/e_thomas"

--
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org

Reply via email to