all mails delivered to root

tos

Verified User
Joined
Nov 7, 2006
Messages
25
hi,
for some reason, all my emails were delivered to the root user. When I do a cat on /var/spool/mail/root, I can see all the emails.

my question is, how do i auto deliver them to my email address now? is there an easy way to do this?

thanks
 
I am thinking that either this is not a DirectAdmin server or exim.conf has been modified because by default a DA server will never deliver email to the root user.
 
i was actually messing around with the exim.conf settings.. and in the process, all my mail got delivered to root...

how would this work?

echo email@address > /root/.forward ?
 
Do all of them belong to you? If so then
Code:
cat /var/spool/mail/root >> /path/to/your/email/box
 
Even if your email box is Maildir? Somehow I don't think it's that simple.

Jeff
 
hmm... is there a shell script that would simply parse each email from the file and forward the email to another address? procmail?
 
Even if your email box is Maildir? Somehow I don't think it's that simple.

Jeff

That is true. I have seen no need to switch yet so I do not think in those terms. But that is another thread.
 
hmm... is there a shell script that would simply parse each email from the file and forward the email to another address? procmail?

You could use manually use Webmin to do it. Webmin will parse the file and forward to another address. But in order to do that you have to have a sendmail.cf file in place or Webmin will error out. Webmin is not supported by DA at all and use at your own risk. I know how to use it properly. You may not.
 
Do all of them belong to you? If so then
Code:
cat /var/spool/mail/root >> /path/to/your/email/box

I have just created a test account - [email protected]...

where should do i find the mailbox file for it? when i go to /var/spool/mail/<users> not mail boxes...

so where do i find the mail box file?
 
I have just created a test account - [email protected]...

where should do i find the mailbox file for it? when i go to /var/spool/mail/<users> not mail boxes...

so where do i find the mail box file?

If you have not switched to Dovecot then the mailbox will be in /var/spool/virtual/domain.com

If you have switched to Dovecot see post about Webmin or you will need to write a script to do it.
 
Back
Top