MyBB Community Forums

Full Version: sendmail works but mybb doesn't send activation email
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
As the title says it, I installed mybb and everything went smoothly, but when new users signup they don't get activation email

sendmail is working in my vps (centos7) and is located at

sendmail: /usr/sbin/sendmail.postfix /usr/sbin/sendmail /usr/lib/sendmail.postfix /usr/lib/sendmail /usr/share/man/man8/sendmail.8.gz

and here is a grep of php.ini 

[root@public ~]# cat /etc/php.ini | grep sendmail
; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
sendmail_path = /usr/sbin/sendmail -t -i
; to the sendmail binary. These parameters will always replace the value of


Also, I can send emails using /usr/sbin/sendmail but not php's mail() function. I don't know what is going on.
Could you have a check on your system log for sendmail?
Hey sorry for the late reply, just got of work. Here is the log from /var/log/maillog

Oct  7 19:55:13 publicae postfix/smtp[1800]: A35ED13E: to=<***@pm.me>, relay=mailsec.domain.ch[185.70.30.112]:25, delay=26, delays=13/0.01/11/1.2, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 31AA51800254)
Oct  7 19:55:13 publicae postfix/qmgr[1229]: A35ED13E: removed
Oct  8 15:55:24 publicae postfix/sendmail[4300]: fatal: open /etc/postfix/main.cf: Permission denied

I checked the permission and here the stdout

[root@public postfix]# ls -la
total 160
drwxr-xr-x.  2 root root  154 Aug  8 12:40 .
drwxr-xr-x. 86 root root  8192 Oct  7 19:58 ..
-rw-r--r--.  1 root root 20876 Oct 30  2018 access
-rw-r--r--.  1 root root 11883 Oct 30  2018 canonical
-rw-r--r--.  1 root root 10106 Oct 30  2018 generic
-rw-r--r--.  1 root root 21545 Oct 30  2018 header_checks
-rw-r--r--.  1 root root 27176 Oct 30  2018 main.cf
-rw-r--r--.  1 root root  6105 Oct 30  2018 master.cf
-rw-r--r--.  1 root root  6816 Oct 30  2018 relocated
-rw-r--r--.  1 root root 12549 Oct 30  2018 transport
-rw-r--r--.  1 root root 12696 Oct 30  2018 virtual

usually I just solve my problems with chmod 777 but I am curious to know why this is happening. 
Do you have any idea? Maybe php is running under nginx user and doesn't have perm to main.cf??

Anyone??  Huh