Menyohost
Tutorial
Majordomo adalah software yang digunakan untuk memanage mailing list di server. Sayangnya majordomo sudah lama tidak diupdate sehingga penggunaannya menimbulkan banyak implikasi karena sering tidak Compatible dengan software-software terbaru yang digunakan saat ini. Untuk itu, kami akan memberikan panduan jika anda mengalami issue mengenai majordomo di directadmin
Salah satu solusi resmi adalah melakukan edit templated majordomo. Edit file berikut
/usr/local/directadmin/data/templates/majordomo.cf
Anda bisa menggunakan Vi, nano atau perintah lainnya yang tersedia di server anda dan anda sukai.
Tambahkan baris perintah berikut di bagian paling atas majordomo.cf
use lib '.';
Selanjutnya save. Hal ini akan memastikan software tidak menjalankan majordomo jika mereka tidak benar-benar membutuhkannya.
Selanjutnya adalah masalah mermission denied. Untuk memastikan jalankan perintah berikut untuk check apa issue dari Majordomo
cd /etc/virtual/majordomo; ./wrapper config-test
Contoh hasil perintah diatas saat error
---------------- Config-test for Majordomo ---------------- --------------------- Obvious things: --------------------- ------------------ environment variables ------------------ HOME=/etc/virtual/majordomo LOGNAME=root MAJORDOMO_CF=/etc/virtual/majordomo/majordomo.cf PATH=/bin:/usr/bin:/usr/ucb SHELL=/bin/sh USER=root --------------------- euid/egid checks --------------------- effective user = majordomo (uid 994) effective group = daemon root mysyslog (gid 2 0 990 ) ---------------------- uid/gid checks ---------------------- real user = majordomo (uid 994) real group = daemon root mysyslog (gid 2 0 990 ) Non obvious things that cause headaches: BAD: something's wrong with /etc/virtual/majordomo/majordomo.cf: Can't locate /etc/virtual/majordomo/majordomo.cf in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at (eval 2) line 1. Good: found majordomo_version.pl okay. Good: found majordomo.pl okay. Good: found shlock.pl okay. Good: found config_parse.pl okay. You're running Majordomo Version 1.94.5. --==> Majordomo home directory is . ------------------- Include directories ------------------- /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . --------------------------- Home --------------------------- Use of chdir('') or chdir(undef) as chdir() is deprecated at /etc/virtual/majordomo/config-test line 151. Good: changedir to succeeded. Good: Created a mock lock file. ---------------------- temp directory ---------------------- BAD: $TMPDIR not defined by majordomo.cf ---------------------- list directory ---------------------- Hmmm, list directory doesn't exist or isn't a directory. Let me try to make it for you… BAD: Couldn't create , No such file or directory --------------------------- log --------------------------- Logfile didn't exist, trying to create… BAD: Couldn't create logfile , No such file or directory BAD: logfile exists, but is not writeable or isn't a file. ------------------------- Mailers ------------------------- You have defined neither $mailer, nor $sendmail_command. Majordomo will use /usr/lib/sendmail -f\$sender to deliver mail to the list. Attempting to verify that this is a valid mailer…looks okay. You have defined neither $mailer, nor $sendmail_command. Majordomo will use /usr/lib/sendmail -f\$sender -t to deliver administrative mail. Attempting to verify that this is a valid mailer…looks okay. ------------------ Checking majordomo.cf ------------------ Checking to see if there are new variables that should be in your majordomo.cf file…BAD: Couldn't open /etc/virtual/majordomo/majordomo.cf for reading, Permission denied New configuration variables (see sample.cf): $MAX_HEADER_LINE_LENGTH $MAX_TOTAL_HEADER_LENGTH $TMPDIR $admin_body $admin_headers $bounce_mailer $config'default_subscribe_policy $config_umask $digest_work_dir $filedir $filedir_suffix $global_taboo_body $global_taboo_headers $homedir $index_command $listdir $log $mailer $majordomo_dont_reply $majordomo_request $max_which_hits $no_true_x400 $no_x400at $return_subject $sendmail_command $whereami $whoami $whoami_owner Have you configured where Majordomo is? $whereami is Good: yup! ----------------------- end of tests ----------------------- 6 bad things were found. Please fix before attempting to run Majordomo.
Non obvious things that cause headaches:
/usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .
Perlu di pahami bahwa hasil diatas hanya contoh dan mungkin tidak selalu sama. Tampilan hasil tersebut adalah contoh masalah yang ada pada majordomo.
Hal utama yang kita perlu perhatikan adalah baris mengenai “Couldn’t open /etc/virtual/majordomo/majordomo.cf” . Terlihat ada masalah permission di file majordomo.cf sehingga tidak dapat dibuka oleh server / program yang memerlukannya.
Check file permission dengan perintah berikut
ls -l /etc/virtual/majordomo/majordomo.cf
Berikut contoh hasil dari perintah diatas
#-rw-r----- 1 mail mail 10465 Mar 10 01:21 /etc/virtual/majordomo/majordomo.cf
Agar bisa di baca file templated majordomo.cf oleh program lain, maka permission yang digunakan dirubah ke 644. Berikut perintah perubahan permission ke 644
chmod 644 /etc/virtual/majordomo/majordomo.cf
lalu check Permission kembali
hasilnya seharusnya seperti berikut
-rw-r--r-- 1 mail mail 10465 Mar 10 01:21 /etc/virtual/majordomo/majordomo.cf
Perhatikan hasil check permission setelah dirubah ke 644 maka status permission menjadi “-rw-r–r–“
Referensi:https://phoenixnap.com/kb/linux-file-permissionshttps://forum.directadmin.com/threads/majordomo-digest-fails-to-locate-config_parse-pl.57935/
Powered by BetterDocs
Your email address will not be published. Required fields are marked *
Comment
Name *
Email *
Website
Save my name, email, and website in this browser for the next time I comment.