LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Mail forwarding via smtp w/rules (https://www.linuxquestions.org/questions/linux-software-2/mail-forwarding-via-smtp-w-rules-175776/)

Greg21 04-28-2004 10:36 PM

Mail forwarding via smtp w/rules
 
I'm trying to setup some system that will download mail from one of my accounts off of a pop server, then forward that mail through a smtp (my ISP's, with whom i have the pop account) to another e-mail account.

My thought was I would just use thunderbird and rules to forward, but that (and most) mail clients don't have "forward to:" as a filter action.

What would be the easiest way for me to do this?

Thanks,
Greg

DavidPhillips 04-29-2004 02:03 AM

You can have a .forward file in the users home folder.


Or try this..

I have not tried this yet but it should work. It works for incoming mail on the smtp server so I think it should work with fetchmail to.



/etc/aliases file

user: user, somebody@anywhere.com

If you don't want it delivered locally try this

user: somebody@anywhere.com

run newaliases after editing /etc/aliases, /etc/mail/aliases, or /etc/postfix/aliases.


All times are GMT -5. The time now is 05:02 PM.