Pustaka Taratsa

Baca teks (EPUB): Procmail: Edit .procmailrc

1 bagian

Teks ini diambil langsung dari berkas EPUB; tata letak dan gambar tidak disertakan. Untuk tampilan lengkap, silakan merujuk pada dokumen asli.

Daftar isi
  1. Procmail: Edit .procmailrc
  2. Check Shell
  3. Buat ~/.procmailrc
  4. Check lokasi procmail dan ID myid
  5. Konfigurasi .forward
  6. Cek permission myid
  7. Pranala Menarik

Procmail: Edit .procmailrc

Sumber: https://onnocenter.or.id/wiki/index.php/Procmail:_Edit_.procmailrc

Check Shell

Check shell

which sh

akan keluar

/bin/sh

Buat ~/.procmailrc

Edit file ~/.procmailrc

vi ~/.procmailrc
#Preliminaries
SHELL=/bin/sh               #Use the Bourne shell (check your path!)
MAILDIR=/var/spool/mail/        #First check what your mail directory is!
LOGFILE=${MAILDIR}/procmail.log
LOG="--- Logging ${LOGFILE} for ${LOGNAME}, "

#Whatever recipes you'll use
#The order of the recipes is significant
:0
* ^From: scam@cyberspam\.com
/dev/null

# Accept all the rest to your default mailbox
:0:
${DEFAULT}



Pastikan spamreport bisa membaca file tersebut

chmod u+r ~/.procmailrc

Check lokasi procmail dan ID myid

Cek lokasi procmail

which procmail

keluar

/usr/bin/procmail

Cek ID myid

whoami

Keluar

myid

Konfigurasi .forward

Edit .forward

vi ~/.forward

masukan kalimat

"|IFS=' ' && exec /usr/bin/procmail || exit 75 #myid"

Ubah permission .forward

chmod 644 ~/.forward

Cek permission myid

Cek permission home directory myid

 ls -lFd ~/

pastikan keluar

drwx--s--x

atau

drwxr-xr-x

Jika tidak lakukan

chmod u+rwx ~/
chmod og+x ~/
ls -lFd ~/

Pranala Menarik