where are the emails?

tos

Verified User
Joined
Nov 7, 2006
Messages
25
Hi,
How do I check what emails are in the mail queue/mailbox for a particular email account? I have root access to the box.

tos.
 
The emails in a mail queue will be in /var/spool/exim/input .
A the mails in a mailbox depends on which software you use.

For UW-IMAP/vm-pop3d the email exists in:
/var/spool/mail/${domainowner} for system accounts
and
/home/${domainowner}/mail/${domainname}/${username}
and
/home/${domainowner}/imap/${domainname}/${username}/${foldername}
for virtual accounts

For Dovecot the email exists in:
/home/${domainowner}/Maildir/ for system accounts
and
/home/${domainowner}/imap/${domainname}/${username}/Maildir for virtual users

Maildir contains all the IMAP folders for that user, so their may be a lot of other subdirectories besides new,cur and tmp, such as .Trash which would be your Trash folder.

/var/mail is commonly linked to /var/spool/mail

Where:
${domainowner} is the owner of the domain and the real system user
${domainname} is the name of the domain
${username} is the virtual username (without the @domainname)
${foldername} is the imap folder name
 
i am using exim. nothing else.

is there any reason directadmin will not change the email counter usage?
 
tos said:
i am using exim. nothing else.

is there any reason directadmin will not change the email counter usage?

Exim is only the SMTP/MTA and you do use something else, or else you would not be able to read your email. That is where UW-IMAP/vm-pop3d and Dovecot come in. Without one of those, you would not be able to read anything. The UW-IMAP/vm-pop3d is the default DA uses.
 
tos,

What do you mean by email counter usage? Where do you see that? Do you mean the Email listed on the right (blue) panel in the DA enhanced skin? That's the number of email accounts an individual domain has set up for it, and my tests show that it does change in real time as email accounts are added and deleted.

Jeff
 
jlasman said:
tos,

What do you mean by email counter usage? Where do you see that? Do you mean the Email listed on the right (blue) panel in the DA enhanced skin? That's the number of email accounts an individual domain has set up for it, and my tests show that it does change in real time as email accounts are added and deleted.

Jeff

the counter usage i am talking about is when you goto

» Email » Pop Accounts

it lists the current pop accounts and there account usage.

I am using POP email.
 
Did you recently upgrade to dovecot??

What are you seeing in the usage? It will remain at zero if the user is constantly picking the mail up and does not leave it on the server.
 
chasjs said:
Did you recently upgrade to dovecot??

What are you seeing in the usage? It will remain at zero if the user is constantly picking the mail up and does not leave it on the server.

I have not upgraded davecot.

I am see'ing 20mb and 11mb in the usage.
 
I believe that's the current amount of mail.

It's should be showing the space taken up by the email in the mailbox at:

/var/spool/virtual/example.com/mailboxname

plus the total space taken up at:

/home/<username>/imap/example.com/mailboxname

Squirrelmail uses imap.

Webmail (uebimiau) doesn't, and I'm not sure if it counts the space used by uebimiau or not; perhaps someone else can tell us.

Jeff
 
tos said:
I have not upgraded davecot.

I am see'ing 20mb and 11mb in the usage.

That is a lot of email or at least very big emails. toml in his post gave you the path to look at what is in the mail box. You can open those files and see what is in there.
 
well, all of a sudden, the usage has dropped to 0.12kb. Strange. I dont know what I did, but the emails have disappeared.

Strange really.

thank you for all the help.
 
Back
Top