Tarik Email
menggunakan fetchmail dan getmail
Kali ini saya
akan menuliskan script-script fetchmail dan getmail yang pernah saya
coba, penulisan script tersebut tergantung dari versi –nya terutama
pada getmail.
1. GETMAIL
Saya menggunakan
getmail versi 3.2.4
Buat
direktori .getmail
# mkdir .getmail
Buat file
getmailrc
# touch getmailrc
Contoh getmailrc :
(misalnya
penarikan diletakan di maildir (pakai qmail))
[default]
verbose = 1
readall = 0
delete = 1
message_log =
/var/log/getmail.log
timeout = 240
max_message_size
= 1048576
[java_ux's Mail]
server =
geocities.com
username =
[email protected]
password = n64ntuk
postmaster =
/home/vpopmail/domains/geocities.com/java_ux/Maildir/
[user1's Mail]
server =
geocities.com
username =
[email protected]
password = t1du12
postmaster =
/home/vpopmail/domains/geocities.com/user1/Maildir/
2. FETCHMAIL
Saya mencoba
mengunakan versi fetchmail terakhir, script-nya ada yang berubah
sebelum versi terakhir ini.
Buat file
.fetchmailrc
# touch
.fetchmailrc
Contoh
.fetchmailrc:
(misalnya
penarikan diletakan di home user (pakai sendmail))
poll
geocities.com with proto pop3:
no envelope no dns
username
java_ux%takaful.com password n64ntuk
to java_ux
poll
geocities.com with proto pop3:
no envelope no dns
username
user1%takaful.com password t1du12
to user1
Selamat mencoba
!!!
--- java_ux ---