On Thu, 4 Dec 2003, Ronny Haryanto wrote:

> On 04-12-2003 3:01 PM Brad Pitt wrote:
> 
> > Isi .procmailrc-nya adalah:
> > ----- .procmailrc ----
> > :0
> > ! [EMAIL PROTECTED]
> > 
> > ------- EOF ----------
> > 
> > Ada yang bisa membantu saya agar procmailnya bisa bekerja ?
> 
> Overkill banget sih forward aja pake procmail. Gak bisa pake .forward
> (atau .qmail kalo MTAnya qmail) yah di sana?
> 
Pake .forward sih bisa. Tapi saya ingin sesuatu yang lebih kompleks.
Makanya saya coba konfigurasi minimal, namun tidak bekerja juga.

> Anyway, baca 'man procmailrc' cari VERBOSE, LOGFILE dan LOGABSTRACT,
> nyalain verbose logging dan lihat apa yg dilakukan procmail waktu ada
> email masuk (tes aja kirim email ke diri sendiri).
> 
> Sekalian baca ini:
> http://rhols66.adsl.netsonic.fi/era/procmail/mini-faq.html#debugging
> 
> Ronny
Saya baca di faq-nya, dan mendapatkan informasi berikut ini:

* Why can't I get procmail to work?

The most likely reason is that you have not told procmail how to find
your mail spool file. In order to improve performance on a system with
this many users, Grex uses a pair of hierarchical levels of directory
structure based on the first two letters of your login ID to hold users'
spool files. This means that your spool file will not be where procmail
expects to find it by default. To find your spool file, type

      echo $MAIL.

Procmail will work if you make this the first line of the .procmailrc
file:

MAIL=PATH-TO-YOUR-INBOX

saya coba ubah .procmailrc saya menjadi berikut ini:

------ .procmailrc ------------
MAIL=/var/spool/mail/b/a/badak
LOGFILE=procmail.log
:0:
* ^Subject:.*foo
junk
--------- EOF ------------------

Dan berikut adalah isi dari $MAIL, seperti yang dianjurkan oleh faq

bash-2.05$ echo $MAIL
/var/spool/mail/b/a/badak

Kemudian saya kirimi ke diri sendiri [EMAIL PROTECTED] dengan
subject "foo foo"
Namun tidak ada sesuatu yg terjadi. Dan file procmail.log juga tidak ada
isinya. Oh iya, file procmail.log ini saya buat dengan perintah `touch
procmail.log` sebelum saya melakukan testing.

Apa lagi ya yang harus saya lakukan ?

-- badak


-- 
Unsubscribe: kirim email kosong ke [EMAIL PROTECTED]
Arsip dan info di http://linux.or.id/milis.php

Kirim email ke