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
No comments:
Post a Comment