View previous topic :: View next topic |
Author |
Message |
johnmiked15 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 13 Oct 2004 Posts: 12 Location: United States
|
Posted: Thu Jun 16, 2005 11:32 pm Post subject: Forward all root mail msg's to another comp? |
|
|
What I'm trying to do here is basically forward all mail addressed to root on my Desktop system to my user account on my mail server. I have tried creating a procmail recipe in root's home directory as follows:
Code: | #!/bin/bash
PATH=/usr/bin:/usr/X11R6/bin:/usr/sbin:/bin:/sbin
DEFAULT=/root/.maildir/
MAILDIR=/root/.maildir
#PROCMAILDIR=$HOME/.procmail
#LOGFILE=$PROCMAILDIR/procmail.log
#LOCKEXT=$PROCMAILDIR/mail.lock
VERBOSE=no
LOGABSTRACT=no
:0
*
! myuseraccount@myserver.org |
I specify the DEFAULT so that I can catch mails that aren't forwarding to the mail account on my mail server. This recipe still has mail going into the .maildir folder in root's home. At one point it was putting mail /.maildir/new (root directory). How that was happening I still don't know.
Is there a way to specify in /etc/mail/aliases an account on a different computer? Like:
root: myuseraccount@myserver.org |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
papal_authority Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/101649746447a8e5f5d66a5.png)
Joined: 31 Mar 2004 Posts: 1823 Location: Canada
|
Posted: Fri Jun 17, 2005 12:09 am Post subject: Re: Forward all root mail msg's to another comp? |
|
|
johnmiked15 wrote: | Is there a way to specify in /etc/mail/aliases an account on a different computer? Like:
root: myuseraccount@myserver.org |
Absolutely. I use that all the time ![Very Happy :D](images/smiles/icon_biggrin.gif) _________________ The free market gave me gonorrhea. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
johnmiked15 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 13 Oct 2004 Posts: 12 Location: United States
|
Posted: Fri Jun 17, 2005 12:17 am Post subject: |
|
|
Awesome! This is just what I was looking for.
Thanks |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|