Advertisement
Guest User

Untitled

a guest
Oct 8th, 2017
905
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.36 KB | None | 0 0
  1. echo "test"|mail -s "test" account-in-yahoo@yahoo.com
  2.  
  3. postconf -n
  4. alias_database = hash:/etc/aliases
  5. alias_maps = hash:/etc/aliases
  6. command_directory = /usr/sbin
  7. config_directory = /etc/postfix
  8. daemon_directory = /usr/libexec/postfix
  9. data_directory = /var/lib/postfix
  10. debug_peer_level = 2
  11. debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5
  12. home_mailbox = Maildir/
  13. html_directory = no
  14. inet_interfaces = all
  15. inet_protocols = all
  16. mail_owner = postfix
  17. mailq_path = /usr/bin/mailq.postfix
  18. mydomain = domain.com
  19. myhostname = mail.domain.com
  20. myorigin = $mydomain
  21. mynetworks = 127.0.0.0/8
  22. mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
  23. newaliases_path = /usr/bin/newaliases.postfix
  24. queue_directory = /var/spool/postfix
  25. sendmail_path = /usr/sbin/sendmail.postfix
  26. setgid_group = postdrop
  27. unknown_local_recipient_reject_code = 550
  28.  
  29. cat .msmtprc
  30. account default
  31. host domain.com
  32. user root
  33. from root@mydomain.com
  34. password xxxxxx
  35. auth login
  36. tls off
  37. logfile .msmtp.log
  38.  
  39. echo "test" | mail -s "test" xxxx@yahoo.com
  40.  
  41. cat /var/log/mail.log
  42. Oct 7 08:09:50 localhost postfix/pickup[23565]: D6FA3482226: uid=1000 from=<root>
  43. Oct 7 08:09:50 localhost postfix/cleanup[25879]: D6FA3482226: message-id=<20171007120950.D6FA3482226@localhost.localdomain>
  44. Oct 7 08:09:50 localhost postfix/qmgr[4739]: D6FA3482226: from=<root@localdomain.localdomain>, size=359, nrcpt=1 (queue active)
  45. Oct 7 08:09:55 localhost postfix/smtp[25881]: D6FA3482226: to=<xxxx@yahoo.com>, relay=mta5.am0.yahoodns.net[98.136.216.26]:25, delay=4.3, delays=0.08/0/2.5/1.8, dsn=2.0.0, status=sent (250 ok dirdel)
  46. Oct 7 08:09:55 localhost postfix/cleanup[25879]: 38BC7482228: message-id=<20171007120955.38BC7482228@localhost.localdomain>
  47. Oct 7 08:09:55 localhost postfix/bounce[26007]: D6FA3482226: sender delivery status notification: 38BC7482228
  48. Oct 7 08:09:55 localhost postfix/qmgr[4739]: 38BC7482228: from=<>, size=1988, nrcpt=1 (queue active)
  49. Oct 7 08:09:55 localhost postfix/qmgr[4739]: D6FA3482226: removed
  50. Oct 7 08:09:55 localhost postfix/smtp[26008]: 38BC7482228: to=<root@localdomain.localdomain>, relay=none, delay=0.05, delays=0.03/0.01/0.01/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=localdomain.localdomain type=AAAA: Host not found)
  51. Oct 7 08:09:55 localhost postfix/qmgr[4739]: 38BC7482228: removed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement