Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Forward all root mail msg's to another comp?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
johnmiked15
n00b
n00b


Joined: 13 Oct 2004
Posts: 12
Location: United States

PostPosted: Thu Jun 16, 2005 11:32 pm    Post subject: Forward all root mail msg's to another comp? Reply with quote

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
View user's profile Send private message
papal_authority
Veteran
Veteran


Joined: 31 Mar 2004
Posts: 1823
Location: Canada

PostPosted: Fri Jun 17, 2005 12:09 am    Post subject: Re: Forward all root mail msg's to another comp? Reply with quote

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 :D
_________________
The free market gave me gonorrhea.
Back to top
View user's profile Send private message
johnmiked15
n00b
n00b


Joined: 13 Oct 2004
Posts: 12
Location: United States

PostPosted: Fri Jun 17, 2005 12:17 am    Post subject: Reply with quote

Awesome! This is just what I was looking for. :D

Thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum