Guest User

Untitled

a guest
Apr 27th, 2018
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. $ uname -a
  2. Linux xxxx 4.9.0-4-amd64 #1 SMP Debian 4.9.51-1 (2017-09-28) x86_64 GNU/Linux
  3.  
  4. $ cat /etc/aliases
  5. # See man 5 aliases for format
  6. postmaster: root
  7. root: root@xxxx.xxxx
  8.  
  9. $ sudo mail -f /var/spool/mail/nobody
  10. "/var/spool/mail/nobody": 23 messages 1 new 19 unread
  11. 1 Anacron Tue Jan 9 00:07 20/823 Anacron job
  12.  
  13. 'cron.daily' on xxxx
  14. From: Anacron <root@xxxx.xxxx>
  15. To: root@xxxx.xxxx
  16. Subject: Anacron job 'cron.daily' on xxxx
  17. Content-Type: text/plain; charset=UTF-8
  18.  
  19. $ sudo mail -f /var/spool/mail/root
  20. /var/spool/mail/root: 0 messages
  21.  
  22. $ echo "This is the body of the email" | mail -s "This is the subject line" root
  23.  
  24. $ sudo mail -f /var/spool/mail/root
  25. $ sudo mail -f /var/mail/root
  26. $ sudo mail -f /root/Maildir
  27.  
  28. $ sudo mail -f /var/spool/mail/nobody
  29.  
  30. $ sudo cat /var/log/mail.log
  31. Apr 27 17:48:43 xxxx postfix/pickup[7114]: 1FE0D2801E3: uid=1000 from=<debian9@xxxx.xxxx>
  32. Apr 27 17:48:43 xxxx postfix/cleanup[7492]: 1FE0D2801E3: message-id=<20180427094843.1FE0D2801E3@xxxx.xxxx>
  33. Apr 27 17:48:43 xxxx postfix/qmgr[1394]: 1FE0D2801E3: from=<debian9@xxxx.xxxx>, size=360, nrcpt=1 (queue active)
  34. Apr 27 17:48:43 xxxx postfix/local[7494]: 1FE0D2801E3: to=<root@xxxx.xxxx>, relay=local, delay=0.21, delays=0.17/0/0/0.04, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
  35. Apr 27 17:48:43 xxxx postfix/qmgr[1394]: 1FE0D2801E3: removed
  36.  
  37. debian9@hwy:~$ sudo cat /root/.forward
  38. nobody
  39. debian9@hwy:~$
Add Comment
Please, Sign In to add comment