How to check the logs for incoming messages?


#1

Hi Guys. How do we check the logs for incoming messages?

I found this topic

and tried command nano /var/log/mail.log

in nano I use CTRL+_ and then CTRL_V to go to the last line.

by looking at the logs line by line I wanted to know if an email is received by looking at the log line.

Can someone share a sample log entry that says the email is received and its in the inbox of the MIAB user.


#2

You can see mail received, just not it’s contents that way. What you would be looking for is something along the lines of

delivery 2: success: something something


#3

Thanks @murgero

How about an incoming message successfully delivred to a MIAB user?

What does the log line looks like for an incoming message?


#4

It would look similar. Same file. You can also use this method to read the mailbox:

(You maildir for this would be /home/user-data/mail/username/ in this case)


#5

Learning Maildir.

Thanks for sharing @murgero