LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mail from linux terminal (https://www.linuxquestions.org/questions/linux-newbie-8/mail-from-linux-terminal-809431/)

shibu_sp 05-22-2010 03:27 AM

mail from linux terminal
 
Dear All

We are using RHEL 4 and sendmail version -8.13.8-2. We are using sendmail service for mail transcation. But we are not able to mail from terminal.


Quote:

[systems@localhost ~]$ echo hello|mail -s "Hi dere" systems@localhost
[systems@localhost ~]$ collect: Cannot write ./dfo4M8OIMh014372 (bfcommit, uid=5 14, gid=51): Permission denied
queueup: cannot create queue file ./qfo4M8OIMh014372, euid=514, fd=-1, fp=0x0: P ermission denied
[systems@localhost ~]$ su -
Password:
[root@localhost ~]# echo hello|mail -s "Hi dere" systems@localhost
[root@localhost ~]# collect: Cannot write ./dfo4M8R4C3014796 (bfcommit, uid=51, gid=51): Permission denied
queueup: cannot create queue file ./qfo4M8R4C3014796, euid=51, fd=-1, fp=0x0: Permission denied

[root@localhost ~]#


Thanks in Advance

Shibu

fruttenboel 05-22-2010 04:20 AM

Quote:

Originally Posted by shibu_sp (Post 3977353)
Dear All

We are using RHEL 4 and sendmail version -8.13.8-2. We are using sendmail service for mail transcation. But we are not able to mail from terminal.


Thanks in Advance

Shibu

try once more as root user

smoker 05-22-2010 04:33 AM

@fruttenboel

Which part of
Quote:

[systems@localhost ~]$ su -
Password:
[root@localhost ~]# echo hello|mail -s "Hi dere" systems@localhost
[root@localhost ~]# collect: Cannot write ./dfo4M8R4C3014796 (bfcommit, uid=51, gid=51): Permission denied
queueup: cannot create queue file ./qfo4M8R4C3014796, euid=51, fd=-1, fp=0x0: Permission denied

[root@localhost ~]#
did you not understand ?


All times are GMT -5. The time now is 06:32 PM.