On Wed, Mar 09, 2005 at 03:59:04PM +0700, anak_ilang wrote:
> Halo postfixer,
>
> Saya sudah berhasil menginstall
> postfix+postfixadmin+courier-authlib+courier-imap-4.0.1+squirrelmail.
> Dan saya sudah berhasil membuat multiple virtual domain dgn MySQL.
> Setelah dicoba mengirim email antar Virtual Domain tsb juga berhasil :)
> (seneng bgt gw, setelah berhari-hari ngoprek, tanya sana-sini, cari
> referensi sana-sini akhirnya bisa juga ;)).

Selamat untuk anda.
Gimana kalau ditambahin juga quota untuk masing-masing user mailbox
virtual domain ?

> Cuma permasalahannya sekarang, gimana caranya saya mendownload
> email-email yang ada di ISP / Mail Hosting yang kemudian di
> distribusikan ke masing-masing Virtual Mailbox user.

Pakai fetchmail untuk mendownload email dr isp.

> Misalnya saya mempunya 2 virtual domain:   'acp.local' dan 'mfu.local'
> Kemudian saya memiliki account di 'asiacemerlang.com' dan
> 'mitrafinishindo.com'
> User2 di 'acp.local' sama dengan user2 di 'asiacemerlang.com'
> (jadi nama usernya sama tapi nama domainnya saja yg berbeda)
> Begitu juga dgn domain 'mfu.local'.
>
> Saya sudah mencoba fetchmail dgn konfigurasi .fetchmailrc spt di bawah ini:
> poll  [EMAIL PROTECTED] protocol pop3 user "usera" password
> "rahasia" smtpaddress [EMAIL PROTECTED]
>
> Tapi masih salah (baca manualnya puyeng euy). Ada yang bisa ngasih hint ??

Anda pakai metode pop3 ya untuk tarik email ?
Kalau serius ingin mail hosting ada banyak hosting provider yg mempunyai
jasa domainpop. Keuntungannya ada banyak, account user diset di mail
server anda sendiri bukannya isp, yaitu pada konfigurasi mail box user
di postfixadmin. Tapi saya akan coba membantu masalah anda.

Ini saya ada contoh skrip .fetchmailrc yg saya gunakan untuk download email
dari pop3.telkom.net:

# cat .fetchmailrc

##Hostname : proxy.megaplasma.com
##My Domain: megaplasma.com
set postmaster "[EMAIL PROTECTED]"
set no bouncemail
set no spambounce
defaults protocol pop3
set logfile /var/log/fetchmail
poll pop3.telkom.net
   timeout 30
   envelope "X-Rcpt-To"
   user 'usro' with pass 'password' is usro here fetchall
   user 'unyil' with pass 'password' is unyil here fetchall
   user 'ucrit' with pass 'password' is ucrit here fetchall
   dropdelivered
   smtpaddress megaplasma.com

Hm, dalam kasus anda, isinya akan jadi begini:

# cat .fetchmailrc
set postmaster "[EMAIL PROTECTED]"
set no bouncemail
set no spambounce
set logfile /tmp/fetchmail/fetchmail.log
poll asiacemerlang.com
  timeout 30
  ## envelope ini penting lho
  envelope "X-Rcpt-To"
  user '[EMAIL PROTECTED]' with pass 'rahasia' is usera here fetchall
  user '[EMAIL PROTECTED]' with pass 'rahasia' is userb here fetchall
  .. dst ..
  smtpaddress acp.local
poll mitrafinishindo.com
  timeout 30
  ## envelope ini penting lho
  envelope "X-Rcpt-To"
  user '[EMAIL PROTECTED]' with pass 'rahasia' is usera here fetchall
  user '[EMAIL PROTECTED]' with pass 'rahasia' is userb here fetchall
  .. dst ..
  smtpaddress mfu.local

Wah, kelihatannya tidak efektif ya ? Tiap nambah atau hapus satu user anda
harus edit file .fetchmailrc-nya. Paling enak pakai model domainpop, ini salah
satu contoh script yg saya buat untuk ambil email domainpop dr provider
indoglobal:

# domain jbr.mega-plasma.com harus dianggap lokal oleh postfix
poll pop.mega-plasma.com localdomains jbr.mega-plasma.com
  timeout 30
  envelope "X-Rcpt-To"
  # pakai multidrop
  user '[EMAIL PROTECTED]' with pass 'rahasia' to * here fetchall
  dropdelivered
  smtpaddress megaplasma.com

Paling enak waktu jalankan fetchmail enable verbose logging:

  # fetchmail -f /root/bin/.fetchmailrc -v

Selama masa percobaan ganti option 'fetchall' dengan 'keep' untuk mencegah
email didownload dan postfix bingung mau deliver kemana.

Salam

~yudi


Reply via email to