Koozali.org: home of the SME Server

Seeing mail on server

Steve

Seeing mail on server
« on: January 05, 2001, 05:51:32 AM »
Is there any way to see mail coming and going through e-smith 4.0?  Also can I check the mailboxes on the server to see if there is mail in them? I am still very new to Linux, so I'll need the dummies guide.  Thanks.

Steve
QBT

Paul

Re: Seeing mail on server
« Reply #1 on: January 05, 2001, 11:47:11 PM »
Steve wrote:
>
> Is there any way to see mail coming and going through e-smith
> 4.0?  

I use less to read files in linux-it cannot write files, so it is safe to use the same navigation commands as the newbie dreaded vi (available on almost all *nix systems) without ruining your day.

less --help
#will get you info so you can move about in a file.  The number of options can be intimidating but you will need only a small number of commands to move around.

less /var/log/maillog
#shows incoming and outgoing activity.  POP3 or IMAP is incoming, SMTP is outgoing.

> can I check the mailboxes on the server to see if
> there is mail in them? I am still very new to Linux, so I'll
> need the dummies guide.  Thanks.

I look for mail for a particular user in their directory on e-smith.  The behavior may be different for IMAP and POP: if you are using POP with your email client the mail will be deleted after your client gets it, unless you have set your client to leave mail on server.  IMAP reads just mail headers and keeps the mail on the server so I understand all files that have not been deleted will stay there. What follows assumes an IMAP client.

To look at new mail files (which I believe have not yet been gotten by a client) for a user on e-smith, telnet to your e-smith box, then

cd /home/e-smith/files/users//Maildir/new
#substituting the username you are interested in.

I believe the  /home/e-smith/files/users//Maildir/cur
# directory holds messages your client hasn't yet thrown away.

The filenames all have unique numbers.

ls -l
#will list the messages in the order received because the message numbers always increase.

less **
#will allow you to read the message including its headers without having to type in all those numbers.  

Hope this points you in the direction you need.

Paul

Carl Enset

Re: Seeing mail on server
« Reply #2 on: January 11, 2001, 05:38:56 AM »
If you want to know the number of messages in the queue at the command prompt logged in as root, type:

/var/qmail/bin/qmail-qstat