S0t4's Blog

Hanya Catatan dan Mencoba Untuk Berbagi

Monday, November 15, 2010

Fetchmail Di Ubuntu

  Blogger Sejati       Monday, November 15, 2010
Aku memakai fetchmail untuk mengambil Email yang ada di Server Email di kantor pusat dan menditribusikannya ke email user lokal pada Server Email lokal.

Asumsi Postfix sudah berjalan untuk server lokal.

Referensi bisa dibaca di link berikut :
- postfix
- Squirrelmail

Langkah instalasi Fetchmail:

1. Instal Fetchmail
#apt-get install fetchmail

2. Buat file .fetchmailrc di /etc
#nano /etc/.fetchmailrc (terus simpan)
#chmod 700 /etc/.fetchmailrc


3. Isi .fetchmailrc dengan:
-----------------------------------------------
poll pop.server.pusat
proto pop3
no dns
user "user@domain-kantor-pusat"
pass "password-email-kantor pusat"
is userlokal@nama-domain-lokal
------------------------------------------------

4. Jalankan Fetchmail
#fetchmail -f /etc/.fetchmailrc

5. Lihat di email lokal. Kalau berhasil Semua email di kantor pusat sudah terdownload di server email lokal.

6. Untuk multi download, tinggal tambahkan poll untuk user lainnya di .fetchmailrc

7. Setelah beres tinggal buat crontab untuk mendownload email secara otomatis setiap misalnya 10 menit:
#crontab -e
*/10 * * * * fetchmail -f /etc/.fetchmailrc
logoblog

Thanks for reading Fetchmail Di Ubuntu

Previous
« Prev Post

No comments: