Salah satu virtual server OwnCloud yang digunakan oleh Excellent mengalami kendala saat mengirimkan email notifikasi, misalnya notifikasi untuk informasi share dokumen. Saat dicheck via Apache status, hasilnya adalah sebagai berikut :
cloud:~ # service apache2 status
apache2.service – The Apache Webserver
Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled)
Active: active (running) since Fri 2014-11-21 11:48:57 WIB; 12h ago
Main PID: 844 (httpd2-prefork)
Status: “Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec”
CGroup: /system.slice/apache2.service
|- 844 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start
|- 4183 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start
|- 4197 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start
|- 4212 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start
|- 4248 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start
|- 5203 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start
|- 5820 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start
|- 6610 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start
|- 6812 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start
|-11161 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start
|-11162 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start
|-11194 /usr/sbin/sendmail -t -i -oi -fsharing-noreply@cloud.excellent.co.id -t
`-11195 /usr/sbin/postdrop -r
Nov 21 23:51:06 cloud postfix/postdrop[11195]: warning: mail_queue_enter: create file maildrop/846358.11195: Permission denied
Nov 21 23:51:16 cloud postfix/postdrop[11195]: warning: mail_queue_enter: create file maildrop/846622.11195: Permission denied
Nov 21 23:51:26 cloud postfix/postdrop[11195]: warning: mail_queue_enter: create file maildrop/846870.11195: Permission denied
Nov 21 23:51:36 cloud postfix/postdrop[11195]: warning: mail_queue_enter: create file maildrop/847103.11195: Permission denied
Nov 21 23:51:46 cloud postfix/postdrop[11195]: warning: mail_queue_enter: create file maildrop/847342.11195: Permission denied
Nov 21 23:51:56 cloud postfix/postdrop[11195]: warning: mail_queue_enter: create file maildrop/847590.11195: Permission denied
Nov 21 23:52:06 cloud postfix/postdrop[11195]: warning: mail_queue_enter: create file maildrop/847835.11195: Permission denied
Nov 21 23:52:16 cloud postfix/postdrop[11195]: warning: mail_queue_enter: create file maildrop/848106.11195: Permission denied
Nov 21 23:52:26 cloud postfix/postdrop[11195]: warning: mail_queue_enter: create file maildrop/848396.11195: Permission denied
Nov 21 23:52:36 cloud postfix/postdrop[11195]: warning: mail_queue_enter: create file maildrop/848672.11195: Permission denied
Hal ini terjadi karena hak akses postdrop dan postqueue dari engine Postfix tidak memiliki hak akses sebagaimana mestinya. Jika dicheck dengan perintah :
postfix check
Hasilnya adalah :
cloud:~ # postfix check
postfix/postfix-script: warning: not owned by group maildrop: /usr/sbin/postqueue
postfix/postfix-script: warning: not owned by group maildrop: /usr/sbin/postdrop
postfix/postfix-script: warning: not set-gid or not owner+group+world executable: /usr/sbin/postqueue
postfix/postfix-script: warning: not set-gid or not owner+group+world executable: /usr/sbin/postdrop
Untuk mengatasi hal ini, lakukan perintah berikut (jangan lupa sesuaikan posisi path folder masing-masing) :
chgrp maildrop /usr/sbin/postqueue chgrp maildrop /usr/sbin/postdrop chmod g+s /usr/sbin/postqueue chmod g+s /usr/sbin/postdrop systemctl start postfix postfix check service apache2 restart service apache2 status
Setelah dilakukan penyesuaian folder dan hak akses, email bisa lancar dikirimkan dan notifikasi masuk inbox email dengan baik.
Comment
jadi owncloud ini semacam dropbox atau apa ya?