Web Hosting Talk







View Full Version : Sendmail .FORWARD problem


ckevin
12-16-2001, 11:02 PM
I'm using SendMail 8.11.2 which is installed with RH 7.1 by default. What my problem is I created a .FORWARD file in the /home/user dir. with the following format:

111 777@777.com
222 888@888.com
333 999@999.com

But the mail with the address 111@domain.com won't forward to the destination account. It only goes to the username "domain" (the master email account of domain.com)

My User Forward files in Sendmail is $z/.forward.$w:$z/.forward

Thus, can you give me some hints on how to solve the problems?

Thanks very much.

Kevin

bobcares
12-19-2001, 06:27 AM
Hi kevin
The best suggestion I would give to you is to use procmail.
procmail is a wonderful filtering software and it comes along with redhat.
All you have to do is create a .procmailrc file and write the receipe in it.


Have a great day :)

regards
amar

ckevin
12-19-2001, 11:17 PM
thank you, amar. I have checked my server and procmailrc was installed as RPM. However, in my $Home dir. only .fetchmailrc file was found, i can't find the .procmailrc so can you tell me when I create that file, what is the format? and how can I start procmail server or config it to run as bootup? :confused:

Thanks a lot!

Kevin

bobcares
12-20-2001, 04:30 AM
Hi!
This is a cool place to learn more about procmail.
http://web.nwe.ufl.edu/~allan/ucet/procmail.html

I'm also writing down a very simple receipe below...


:0
* (^To:|^CC:|^Cc: ) .*support@yourdomain.com.*
{
:0

| /home/username/mail/yourid
:0
! you@hotmail.com
}




This filter would redirect all mail to support to your hotmail account and to your mailid on this server..

I hope this helps...

Have a great day:)

regards
amar