ajazurrahman
New Member
I have been able to install send mail but when i try to send email using following command i get following error:
echo "This is message body" | mail -s "hello subject" [email protected]
[root@gpetln02 alternatives]# can not chdir(/var/spool/clientmqueue/): Permission denied
Program mode requires special privileges, e.g., root or TrustedUser.
I have gone through many solutions provided over internet, mostly suggesting setting the suid and permission on mutiple file but they don't seem to work. I am using RedHat Linux 7.1 ,
[root@gpetln02 alternatives]# ls -ltr /usr/sbin/sendmail.sendmail
-rwxr-sr-x. 1 root smmsp 836928 Aug 8 2019 /usr/sbin/sendmail.sendmail
drwx------. 2 root smmsp 4096 Feb 23 2016 cron
drwxr-xr-x. 2 root smmsp 4096 Mar 10 2016 lpd
drwxr-xr-x. 2 root smmsp 4096 Jul 1 2016 plymouth
drwx------. 2 root smmsp 4096 Jul 22 2016 up2date
drwxrwxr-x. 2 root root 4096 Aug 8 2019 mqueue
drwxr-xr-x. 2 root smmsp 4096 Nov 13 21:06 anacron
drwxr-xr-x. 3 root smmsp 4096 Nov 13 21:06 rhsm
drwxr-xr-x. 16 root smmsp 4096 Nov 13 21:06 postfix
drwxrwxr-x. 2 root smmsp 4096 Dec 26 07:48 mail
drwxrwx---. 2 smmsp smmsp 4096 May 5 13:06 clientmqueue
Any help in this regard is highly appriciated.
echo "This is message body" | mail -s "hello subject" [email protected]
[root@gpetln02 alternatives]# can not chdir(/var/spool/clientmqueue/): Permission denied
Program mode requires special privileges, e.g., root or TrustedUser.
I have gone through many solutions provided over internet, mostly suggesting setting the suid and permission on mutiple file but they don't seem to work. I am using RedHat Linux 7.1 ,
[root@gpetln02 alternatives]# ls -ltr /usr/sbin/sendmail.sendmail
-rwxr-sr-x. 1 root smmsp 836928 Aug 8 2019 /usr/sbin/sendmail.sendmail
drwx------. 2 root smmsp 4096 Feb 23 2016 cron
drwxr-xr-x. 2 root smmsp 4096 Mar 10 2016 lpd
drwxr-xr-x. 2 root smmsp 4096 Jul 1 2016 plymouth
drwx------. 2 root smmsp 4096 Jul 22 2016 up2date
drwxrwxr-x. 2 root root 4096 Aug 8 2019 mqueue
drwxr-xr-x. 2 root smmsp 4096 Nov 13 21:06 anacron
drwxr-xr-x. 3 root smmsp 4096 Nov 13 21:06 rhsm
drwxr-xr-x. 16 root smmsp 4096 Nov 13 21:06 postfix
drwxrwxr-x. 2 root smmsp 4096 Dec 26 07:48 mail
drwxrwx---. 2 smmsp smmsp 4096 May 5 13:06 clientmqueue
Any help in this regard is highly appriciated.