Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Read from pop3 and forward to smtp

Status
Not open for further replies.

webfuture

MIS
Jan 17, 2003
65
CA
I need to read from server1, user1 and forward to user2 at server2

I need this for many account on server1 (ISP) and forward to different users on other server (like gmail).

I have looked at fetchmail and can read my ISP account and transfer to my local account on my fedora box.

What am I missing to forward to another server like gmail

I am on fecora core 3

Thanks for any hints you may have.

Simon
 
You can either do this at the system level or at the user level.

System Level
Edit the /etc/mail/aliases file and use this format:
Code:
user1: you@gmail.com
user2: you@gmail.com
user3: someoneelse@gmail.com, you@gmail.com
You'll want to restart sendmail after you make these changes (which on most distros rebuilds the aliases.db file that sendmail uses). If you know how to rebuild the aliases.db file manually, that is fine, no restart of sendmail should be needed. 'man aliases' for the boring technical details.

User Level
In each user's home directory, have a .forward file which contains an email address or list of email addresses to forward the message to. It is described in 'man aliases' as well.
 
Thanks... the .forward is working fine for what I need. I used that a long time ago on solaris but memory fades with age...

Simon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top