我在ubuntu 16.04上使用playms 1.4和smstools v3.1.20以及apache2,php7。我可以从playms发送消息,但是"我发送的消息"即使邮件已成功发送,文件夹也始终为空。
我已经设置了目录权限,如下所示:
chown www-data:www-data -R / var / spool / sms
它看起来像这样: ls -ltrR / var / spool / sms
/var/spool/sms:
total 28
drwxrwxrwx 2 www-data www-data 4096 Sep 2 12:44 checked
drwxrwxrwx 5 www-data www-data 4096 Sep 2 13:35 backup
drwxrwxrwx 2 www-data www-data 4096 Sep 3 20:46 failed
drwxrwxrwx 2 www-data www-data 4096 Sep 4 13:49 incoming
drwxrwxrwx 2 www-data www-data 4096 Sep 5 15:37 outgoing
drwxrwxrwx 2 www-data www-data 4096 Sep 5 15:37 sent
drwxrwxrwx 2 www-data www-data 4096 Sep 5 15:37 modem1
/var/spool/sms/checked:
total 0
/var/spool/sms/backup:
total 12
drwxrwxrwx 2 www-data www-data 4096 Sep 2 20:13 failed
drwxrwxrwx 2 www-data www-data 4096 Sep 4 13:49 incoming
drwxrwxrwx 2 www-data www-data 4096 Sep 5 15:16 sent
/var/spool/sms/backup/failed:
total 4
-rwxrwxrwx 1 www-data www-data 205 Sep 2 20:13 out.20170902180659.0.1.5
/var/spool/sms/backup/incoming:
total 24
-rwxrwxrwx 1 www-data www-data 180 Sep 2 21:21 modem1.8zQs3w
-rwxrwxrwx 1 www-data www-data 251 Sep 2 21:21 modem1.cASf2P
-rwxrwxrwx 1 www-data www-data 252 Sep 4 13:49 modem1.cY8NyU
/var/spool/sms/backup/sent:
total 80
-rwxrwxrwx 1 www-data www-data 193 Sep 4 13:47 out.20170904114728.0.1.1
-rwxrwxrwx 1 www-data www-data 253 Sep 4 16:32 out.20170904143202.0.1.2
-rwxrwxrwx 1 www-data www-data 253 Sep 5 15:16 out.20170905131603.0.1.3
-rwxrwxrwx 1 www-data www-data 253 Sep 5 15:16 out.20170905131603.0.1.4
/var/spool/sms/failed:
total 44
-rwxrwxrwx 1 www-data www-data 188 Sep 2 20:38 send_Kr8jMv
-rwxrwxrwx 1 www-data www-data 98 Sep 2 20:45 send_mGCCDT
-rwxrwxrwx 1 www-data www-data 97 Sep 2 20:45 send_6I691g
/var/spool/sms/incoming:
total 0
/var/spool/sms/outgoing:
total 0
/var/spool/sms/sent:
total 40
-rwxrwxrwx 1 www-data www-data 135 Sep 2 12:49 send_QKToY1
-rwxrwxrwx 1 www-data www-data 136 Sep 2 13:02 send_TGGpX5
-rwxrwxrwx 1 www-data www-data 142 Sep 2 20:37 send_mI6lvu
-rwxrwxrwx 1 www-data www-data 136 Sep 2 20:47 send_kARqqi
-rw-r--r-- 1 root root 136 Sep 5 15:37 send_9Ka0VL
playms日志没有显示任何异常,没有错误。注意最后发送的消息是如何在root用户下面的,我相信这是因为它是在我手动设置www-data权限后发送的,而smstools是在系统启动时以root身份运行的。
您对我可以尝试使其正常工作有什么建议吗?很难看到您发送的邮件及其状态。检查日志是不切实际的。