View Full Version : all mails delivered to root
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
echo email@address > /root/.forward
floyd
09-17-2009, 10:23 AM
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 ?
floyd
09-17-2009, 02:13 PM
Do all of them belong to you? If so then
cat /var/spool/mail/root >> /path/to/your/email/box
nobaloney
09-17-2009, 06:42 PM
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?
floyd
09-18-2009, 04:23 AM
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.
floyd
09-18-2009, 04:26 AM
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
cat /var/spool/mail/root >> /path/to/your/email/box
I have just created a test account - testing@domain.com...
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?
floyd
09-18-2009, 11:00 AM
I have just created a test account - testing@domain.com...
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.
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.