Where the mail in rocky 9.3

mail does not work on 9.3. It did not get installed by default. When I go to the configurations screen for programs everything except mail has a program associated with it. With mail there are no choices. I did try to install s-nail, postfix, etc. and that didn’t help. The client portions look OK, but mail is either not sent or not received. Any ideas?

Can you please explain in more detail what you are trying to do and what you are expecting? Just saying mail doesn’t really say much. You could be referring to a mail client like Thunderbird or Evolution. If you are referring to a mail server, then that is not installed by default. You would have to do that. For that you would have to search the internet for howto’s on configuring postfix, dovecot, webmail etc.

Mail on this server is only on this machine, not network mail. It consists of 1) output from logwatch, 2) output from Microlite Edge which does the backups. In both cases there is mail going to the superuser.

So, If I’m to understand you correctly @dmfwi:

  • This is a stand alone server
  • You are trying to output the logwatch and your backup program to mail the root user

If those are correct assumptions, what are the contents of /var/log/maillog? Do you have any content at all? If it is empty, then you are correct, mail is not being generated. BUT, what are the commands in logwatch and with your backup that would output to the mail command?

  1. For instance. If you have postfix and s-nail installed as you say, make sure that postfix is running: sudo systemctl start postfix
  2. Next, test from the command line like this: `echo “This is a test” | s-nail -s “Test Email” root@localhost
  3. Finally, tail /var/log/maillog and you should have something that resembles this:
Dec 14 15:30:15 test9 postfix/pickup[10652]: AA4E31A5897: uid=0 from=<root>
Dec 14 15:30:15 test9 postfix/cleanup[10654]: AA4E31A5897: message-id=<20231214153015.AA4E31A5897@test9.localdomain>
Dec 14 15:30:15 test9 postfix/qmgr[10653]: AA4E31A5897: from=<root@test9.localdomain>, size=337, nrcpt=1 (queue active)
Dec 14 15:30:15 test9 postfix/local[10656]: AA4E31A5897: to=<root@localhost>, relay=local, delay=55, delays=55/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Dec 14 15:30:15 test9 postfix/qmgr[10653]: AA4E31A5897: removed
Dec 14 15:30:22 test9 postfix/pickup[10652]: BCB481A5897: uid=0 from=<root>
Dec 14 15:30:22 test9 postfix/cleanup[10654]: BCB481A5897: message-id=<20231214153022.BCB481A5897@test9.localdomain>
Dec 14 15:30:22 test9 postfix/qmgr[10653]: BCB481A5897: from=<root@test9.localdomain>, size=337, nrcpt=1 (queue active)
Dec 14 15:30:22 test9 postfix/local[10656]: BCB481A5897: to=<root@localhost>, relay=local, delay=0.01, delays=0.01/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Dec 14 15:30:22 test9 postfix/qmgr[10653]: BCB481A5897: removed

In /var/spool/mail/root you should have an entry when you use the mail command:

 N  2 root                  2023-12-14 15:30   15/479   "Test Email

If you hit enter on that message, you’ll be able to read the contents.

If this all works, you can configure your applications to deliver mail.

You can also review this document: Postfix Process Reporting - Documentation

Which goes into a little detail on some ways to do that.

Hope this helps!

I should also point out that you also need to enable postfix so that it will start automatically on reboot:
sudo systemctl enable postfix… I should have included that.

It didn’t take long to realize the postfix wasn’t installed. However it wasn’t enabled. Your second post reminded me of that. Thanks for you assisstance.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.