Email to root not sending
Hey everyone: I did a fresh install of AlmaLinux 9.1 on a server. I then set the root email address to my admin email address in /etc/aliases and ran newaliases. But, when I send email to root, it does not come to me. I see sendmail is installed on the machine already and I tested outgoing connections to port 25. Any ideas? Thank you, Neil -- Neil Aggarwal, (972) 834-1565, http://www.propfinancing.com We offer 30 year loans on single family houses!
Hi, Neil. On 2023-04-12 8:07 a.m., Neil Aggarwal wrote:
Hey everyone:
I did a fresh install of AlmaLinux 9.1 on a server.
I then set the root email address to my admin email address in /etc/aliases and ran newaliases.
But, when I send email to root, it does not come to me.
I see sendmail is installed on the machine already and I tested outgoing connections to port 25.
Any ideas?
Does (privileged) "sendmail -bv root" return your admin address as expected?
Anything relevant in /var/log/maillog?
Nels Lindquist
----
Does (privileged) "sendmail -bv root" return your admin address as expected?
That gives me: neil@propfinancing.com... deliverable: mailer esmtp, host propfinancing.com., user neil@propfinancing.com which seems right. Maybe I am not testing it correctly. I tried doing this: mail root
Anything relevant in /var/log/maillog?
I think you found it: Apr 17 15:41:29 www sendmail[35875]: 33HKfTYI035875: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30111, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1] Do I need to configure sendmail to listen on the loopback interface? I thought it would be enabled by default. Thank you, Neil -- Neil Aggarwal, (972) 834-1565, http://www.propfinancing.com We offer 30 year loans on single family houses!
On 2023-04-17 2:43 p.m., Neil Aggarwal wrote:
Does (privileged) "sendmail -bv root" return your admin address as expected?
That gives me: neil@propfinancing.com... deliverable: mailer esmtp, host propfinancing.com., user neil@propfinancing.com which seems right.
Maybe I am not testing it correctly. I tried doing this: mail root
Anything relevant in /var/log/maillog?
I think you found it: Apr 17 15:41:29 www sendmail[35875]: 33HKfTYI035875: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30111, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Do I need to configure sendmail to listen on the loopback interface? I thought it would be enabled by default.
Sounds like the sendmail daemon isn't started.
What does "systemctl status sendmail" show?
If it's disabled/inactive, you can run "systemctl enable sendmail --now"
and it should start up and process the queue, while also enabling
sendmail for auto-start.
Alternatively "systemctl start sendmail" will start without changing the
default behaviour on reboot.
Nels Lindquist
----
participants (2)
-
Neil Aggarwal
-
Nels Lindquist