Click to See Complete Forum and Search --> : Forwarding Email???


Erico' Suave'
04-04-2001, 10:18 AM
Hello All,

I need some help with my aliases file. I have an account setup for email already. I would like to be able to forward a copy of every piece of email to another account. How do I do this???

Erico' Suave'

Nalle
04-04-2001, 01:27 PM
Eh, you give us little to go on here, but I'll assume the rest.

I assume that you have set up some mailservice, like sendmail or something and that the e-mail user we are talking about here also is a user on your Linux system, meaning that you are using the local pop3-account.

In that case it's easy. Create a file in the users home directory (you do not have to be root; you can do it as the user too - the 'chown'-statement will not be nessecary then though):

cd /home/username
touch .forward
echo usename@maildomain.com >> .forward
chown username.users .forward

The dot in the beginning make this a hidden file.

***I'm editing this file now***

I forgot to tell you that if you don't want the mail to be deleted, but only a copy should get forwarded, the way to do it is the same, but the filename will be: .forward.save

***I'm done editing this file now***

[ 04 April 2001: Message edited by: Nalle ]

bdg1983
04-04-2001, 04:28 PM
Neat trick that.

'man aliases' should give you info on this if you decide to use it.
www.sendmail.org (http://www.sendmail.org) has documentation and faq's on the subject.

Erico' Suave'
04-05-2001, 09:36 AM
Thanks for the help, but I tried to add .forward.save file to the users directory and it didn't work right. I have sendmail running correctly. Everyone is getting their mail and have been for the past year. Now one of the employees here wants to receive a copy of his email at home on another address. I've looked on sendmail.org, but I didn't see anything that would work. I just want to forward a copy of this persons email to another account. I must be making this to hard. Please help!!!