# Where the mail in rocky 9.3

**URL:** <https://forums.rockylinux.org/t/where-the-mail-in-rocky-9-3/12157>\
**Category:** Rocky Linux Help & Support\
**Tags:** rocky-linux-9\
**Created:** [December 13, 2023, 11:57pm UTC](https://forums.rockylinux.org/t/where-the-mail-in-rocky-9-3/12157 "2023-12-13T23:57:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmfwi](https://avatars.discourse-cdn.com/v4/letter/d/ee59a6/32.png) [@dmfwi](https://forums.rockylinux.org/u/dmfwi)\
**Post date:** [December 13, 2023, 11:57pm UTC](https://forums.rockylinux.org/t/where-the-mail-in-rocky-9-3/12157/1 "2023-12-13T23:57:24Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![iwalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/iwalker/32/2599_2.png) [@iwalker](https://forums.rockylinux.org/u/iwalker)\
**Post date:** [December 14, 2023, 8:04am UTC](https://forums.rockylinux.org/t/where-the-mail-in-rocky-9-3/12157/2 "2023-12-14T08:04:07Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![dmfwi](https://avatars.discourse-cdn.com/v4/letter/d/ee59a6/32.png) [@dmfwi](https://forums.rockylinux.org/u/dmfwi)\
**Post date:** [December 14, 2023, 11:57am UTC](https://forums.rockylinux.org/t/where-the-mail-in-rocky-9-3/12157/3 "2023-12-14T11:57:40Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![sspencerwire](https://avatars.discourse-cdn.com/v4/letter/s/c2a13f/32.png) [@sspencerwire](https://forums.rockylinux.org/u/sspencerwire)\
**Post date:** [December 14, 2023, 3:37pm UTC](https://forums.rockylinux.org/t/where-the-mail-in-rocky-9-3/12157/4 "2023-12-14T15:37:15Z")

</div>

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:

```auto
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:

```auto
 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](https://docs.rockylinux.org/guides/email/postfix_reporting/)

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

Hope this helps!  
Steve

---

<div class="post-metadata">

**Author:** ![sspencerwire](https://avatars.discourse-cdn.com/v4/letter/s/c2a13f/32.png) [@sspencerwire](https://forums.rockylinux.org/u/sspencerwire)\
**Post date:** [December 14, 2023, 3:46pm UTC](https://forums.rockylinux.org/t/where-the-mail-in-rocky-9-3/12157/5 "2023-12-14T15:46:30Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![dmfwi](https://avatars.discourse-cdn.com/v4/letter/d/ee59a6/32.png) [@dmfwi](https://forums.rockylinux.org/u/dmfwi)\
**Post date:** [December 15, 2023, 9:35pm UTC](https://forums.rockylinux.org/t/where-the-mail-in-rocky-9-3/12157/6 "2023-12-15T21:35:43Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)\
**Post date:** [February 13, 2024, 9:36pm UTC](https://forums.rockylinux.org/t/where-the-mail-in-rocky-9-3/12157/7 "2024-02-13T21:36:05Z")

</div>

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