fetching the emails from remote server to local mail server ( i m running post fix server with configured with SMTP routing with my remote server) & forwarding the emails to localuser
You can also forward to many users using /etc/aliases
user1: user2, user1, user3
In above example user1 mail copy to user2 & 3.
create file in your home directory names as .fetchmailrc with the permission 600
#chmod 600 .fetmailrc
The file content should be ..
# vi .fetmailrc
# without ssl for POP3S
user “firstname.lastname@example.org” password “password” ssl
# without ssl for POP3
user “email@example.com” password “password”
user “firstname.lastname@example.org” password “objective1947” ssl
Add the following line in crontab for scheduling the fetchmail command fto fetch the mails from the remote server in given time period.
crontab -u user -e
*/5 * * * * fetchmail -k -s
Please contact me , if u have any clarification in this regard….