Ok looking at mailwrapper, looks like its replaces sendmail. Also ran another test and looked at the maillog as suggested also and sure enough both postfix and sendmail show up in the log. I though I had disabled sendmail but apparently not, did not focus on the sendmail messages before. Working through this learning process and its quite enlightening. Still wondering how to mix virtual using sql with real. I used mail to create the local email maybe that is where the sendmail comes in since that is only time I see sendmaii in the log. Maybe you have a better suggestion as to how to test mail between real users like root and my user. However, other internal mailers might also use sendmail?
Apr 26 10:18:20 white-home sendmail[20897]: 13QEIKZE020897: from=xxxxx, size=53, class=0, nrcpts=1, msgid=<20210455561418.13qddde020...@white-home.net>, relay=xxxx@localhost Apr 26 10:18:20 white-home postfix/smtpd[20899]: connect from localhost[127.0.0.1] Apr 26 10:18:20 white-home sendmail[20897]: STARTTLS=client, relay=[127.0.0.1], version=TLSv1.3, verify=FAIL, cipher=TLS_AES_256_GCM_SHA384, bits=256/256 Apr 26 10:18:20 white-home postfix/smtpd[20899]: Anonymous TLS connection established from localhost[127.0.0.1]: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 Apr 26 10:18:20 white-home postfix/smtpd[20899]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 550 5.1.1 <x...@white-home.net>: Recipient address rejected: User unknown in virtual mailbox table; from=<x...@white-home.net> to=<x...@white-home.net> proto=ESMTP helo=<white-home.net> Apr 26 10:18:20 white-home sendmail[20897]: 13QEIKZE020897: to=xxxx@localhost, ctladdr=xxxx (1002/1002), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30053, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.1, reply=550 5.1.1 <x...@white-home.net>: Recipient address rejected: User unknown in virtual mailbox table, stat=User unknown Apr 26 10:18:20 white-home postfix/smtpd[20899]: disconnect from localhost[127.0.0.1] ehlo=2 starttls=1 mail=1 rcpt=0/1 data=0/1 rset=1 quit=1 commands=6/8 Another issues I see is I am forcing TLS and localhost won’t use TLS or SSL so I see that coming as an issue I don’t know how to handle yet. > On Apr 26, 2021, at 8:04 AM, Wietse Venema <wie...@porcupine.org> wrote: > > Michael White: >> Tried using mail to send root@localhost and get a dead.letter file with the >> message in it. > > Postfix does not create dead.letter files. > > I suspect that you are still using the Sendmail that comes with > FreeBSD, instead of the Postfix sendmail command. > > To switch a FreeBSD system from Sendmail to Postfix, see "man > mailwrapper". > > Wietse