LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to send mails between two users in the same local net? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-send-mails-between-two-users-in-the-same-local-net-4175551095/)

luofeiyu 08-18-2015 07:28 PM

How to send mails between two users in the same local net?
 
Both root and debian8 are users in my local machine.
I want to send mail between them with mail command.

debian8@pengsir:~$ echo "hello" | mail -v -s test root@pengsir.hfi
LOG: MAIN
<= debian8@pengsir.hfi U=debian8 P=local S=336
debian8@pengsir:~$ delivering 1ZRKBw-00023L-JP
R: system_aliases for root@pengsir.hfi
R: system_aliases for debian8@pengsir.hfi
R: userforward for debian8@pengsir.hfi
R: procmail for debian8@pengsir.hfi
R: maildrop for debian8@pengsir.hfi
R: lowuid_aliases for debian8@pengsir.hfi (UID 1000)
R: local_user for debian8@pengsir.hfi
T: appendfile for debian8@pengsir.hfi
LOG: MAIN
=> debian8 <root@pengsir.hfi> R=local_user T=mail_spool
LOG: MAIN
Completed
^C
debian8@pengsir:~$ su root
Password:
root@pengsir:/home/debian8# mail
No mail for root

Why can't send mail when logining in as debian8 user to root user?

Habitual 08-19-2015 10:32 AM

https://www.linuxquestions.org/quest...5/#post5407946


All times are GMT -5. The time now is 12:14 AM.