Wednesday, January 9, 2013

Fetchmail



Fetchmail is an open source software utility for POSIX-compliant operating systems which is used to retrieve e-mail from a remote POP3, IMAP, ETRN or ODMR mail server to the user's local system. 

It was developed from the popclient program, written by Carl Harris

Official Site www.fetchmail.info


to install fetchmail you need root privileges

[root@localhost ~]# yum info fetchmail

[root@localhost ~]# yum install fetchmail



Loaded plugins: langpacks, presto, refresh-packagekit
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package fetchmail.i686 0:6.3.22-1.fc16 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

Package       Arch          Version             Repository                         Size
Installing:
 fetchmail      i686          6.3.22-1.fc16     updates                           531 k

Transaction Summary
=================================================================================
Install       1 Package

Total download size: 531 k
Installed size: 2.1 M
Is this ok [y/N]: y
Downloading Packages:
fetchmail-6.3.22-1.fc16.i686.rpm                                                                                              | 531 kB     00:08     
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : fetchmail-6.3.22-1.fc16.i686                                                                                                      1/1 

Installed:
  fetchmail.i686 0:6.3.22-1.fc16                                                                                                                     

Complete!



now in you home (cd ~) directory eg:- /home/jerome

touch .fetchmailrc

add the following lines....


poll imap.gmail.com protocol IMAP 
   user "xxxxxxx@gmail.com" is adriaan here
   password 'mysecretpassword'
   folder 'BUP'
   fetchlimit 1
   keep
   ssl


fetchmail -v



No comments:

Post a Comment

About

Blogger templates