Silly problem with sendmail

I installed sendmail on Centos 8 and it works fine

I installed sendmail on Rocky and used the same /etc/mail/sendmail.mc (I copied it across and did /etc/mail/make all)

It seems to work. As I did with CentOS, I aliased root to my personal email address, so anything going to root@localhost gets sent to me (logwatch files etc).

The mail isn’t being sent to me. It gets as far as /var/spoolmail/root and these it stops.

I’ve missed something, but I don’t see how. The files SEEM to be identical.

What have I missed / done wrong?

Did you check the ‘maillog’ under ‘/var/log’?

Jul 16 16:07:36 rocky-86 sendmail[111680]: 26GE7ZJV111680: from=<fred@rocky-86.my.domain.com(FQDN)>, size=741, class=0, nrcpts=1, msgid=<1657980455.111675@rocky-86.my.domain.com(FQDN)>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Jul 16 16:07:36 rocky-86 sendmail[111677]: 26GE7ZHn111677: to=root@localhost, ctladdr=fred@rocky-86.my.domain.com(FQDN) (1000/1000), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30543, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (26GE7ZJV111680 Message accepted for delivery)

But it never gets delivered. Stuck in spooler

I spotted this with systemctl status sendmail:

sendmail.service - Sendmail Mail Transport Agent
Loaded: loaded (/usr/lib/systemd/system/sendmail.service; enabled; vendor pr>
Active: active (running) since Sat 2022-07-16 17:16:36 CEST; 4s ago
Process: 137854 ExecStart=/usr/sbin/sendmail -bd $SENDMAIL_OPTS $SENDMAIL_OPT>
Process: 137851 ExecStartPre=/etc/mail/make aliases (code=exited, status=203/>
Process: 137850 ExecStartPre=/etc/mail/make (code=exited, status=203/EXEC)
Main PID: 137857 (sendmail)
Tasks: 1 (limit: 23529)
Memory: 2.4M
CGroup: /system.slice/sendmail.service
└─137857 sendmail: accepting connections

you ran newaliases?

Post must be at least 20 characters…

Yes ran newaliases and tried to send logwatch