Advertisement
Guest User

Untitled

a guest
Aug 29th, 2015
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.17 KB | None | 0 0
  1. teezy@serverx:~$ /etc/init.d/postfix start
  2. [ ok ] Starting postfix (via systemctl): postfix.service.
  3. teezy@serverx:~$ /etc/init.d/postfix stop
  4. [ ok ] Stopping postfix (via systemctl): postfix.service.
  5. teezy@serverx:~$ sudo su
  6. [sudo] password for teezy:
  7. root@serverx:/home/teezy# postfix start
  8. postfix/postfix-script: starting the Postfix mail system
  9. root@serverx:/home/teezy# postfix stop
  10. postfix/postfix-script: stopping the Postfix mail system
  11. root@serverx:/home/teezy# echo "Test mail from postfix" | mail -s "Test Postfix" teezy.koo@gmail.com
  12. root@serverx:/home/teezy# postfix start
  13. postfix/postfix-script: starting the Postfix mail system
  14. root@serverx:/home/teezy# echo "Test mail from postfix" | mail -s "Test Postfix" teezy.koo@gmail.com
  15. root@serverx:/home/teezy# postfix stop
  16. postfix/postfix-script: stopping the Postfix mail system
  17. root@serverx:/home/teezy# postconf -n
  18. alias_database = hash:/etc/aliases
  19. alias_maps = hash:/etc/aliases
  20. append_dot_mydomain = no
  21. biff = no
  22. config_directory = /etc/postfix
  23. inet_interfaces = all
  24. inet_protocols = all
  25. mailbox_size_limit = 0
  26. mydestination = mail.example.com, serverx, localhost.localdomain, , localhost
  27. myhostname = mail.example.com
  28. mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
  29. myorigin = /etc/mailname
  30. readme_directory = no
  31. recipient_delimiter = +
  32. relayhost = [smtp.gmail.com]:587
  33. smtp_sasl_auth_enable = yes
  34. smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
  35. smtp_sasl_security_options = noanonymous
  36. smtp_tls_CAfile = /etc/postfix/cacert.pem
  37. smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  38. smtp_use_tls = yes
  39. smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
  40. smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
  41. smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
  42. smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
  43. smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
  44. smtpd_use_tls = yes
  45. root@serverx:/home/teezy# cd /etc
  46. root@serverx:/etc# nano mailname
  47. root@serverx:/etc# cd /etc/postfix
  48. root@serverx:/etc/postfix# ls
  49. cacert.pem main.cf postfix-files post-install sasl_passwd
  50. dynamicmaps.cf master.cf postfix-script sasl sasl_passwd.db
  51. root@serverx:/etc/postfix# nano sasl_passwd
  52. root@serverx:/etc/postfix# postfix start
  53. postfix/postfix-script: starting the Postfix mail system
  54. root@serverx:/etc/postfix# postfix stop
  55. postfix/postfix-script: stopping the Postfix mail system
  56. root@serverx:/etc/postfix# postfix start
  57. postfix/postfix-script: starting the Postfix mail system
  58. root@serverx:/etc/postfix# echo "Test mail from postfix" | mail -s "Test Postfix" teezy.koo@gmail.com
  59. root@serverx:/etc/postfix# postfix stop
  60. postfix/postfix-script: stopping the Postfix mail system
  61. root@serverx:/etc/postfix# cd /var/log
  62. root@serverx:/var/log# tail -20 mail.log
  63. Aug 29 12:33:59 serverx postfix/qmgr[27788]: E0BDE6E2FF3: from=<root@serverx>, size=361, nrcpt=1 (queue active)
  64. Aug 29 12:34:01 serverx postfix/smtp[27805]: E0BDE6E2FF3: to=<teezy.koo@gmail.com>, relay=smtp.gmail.com[64.233.163.109]:587, delay=1.2, delays=0.02/0.02/0.55/0.66, dsn=2.0.0, status=sent (250 2.0.0 OK 1440840841 rp6sm2098612lbb.44 - gsmtp)
  65. Aug 29 12:34:01 serverx postfix/qmgr[27788]: E0BDE6E2FF3: removed
  66. Aug 29 12:34:01 serverx postfix/pickup[27787]: 673806E2FF3: uid=1000 from=<teezy>
  67. Aug 29 12:34:01 serverx postfix/cleanup[27803]: 673806E2FF3: message-id=<20150829093401.673806E2FF3@mail.example.com>
  68. Aug 29 12:34:01 serverx postfix/qmgr[27788]: 673806E2FF3: from=<teezy@mail.example.com>, size=762, nrcpt=1 (queue active)
  69. Aug 29 12:34:01 serverx postfix/local[27851]: 673806E2FF3: to=<teezy@mail.example.com>, orig_to=<teezy>, relay=local, delay=0.02, delays=0.01/0/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
  70. Aug 29 12:34:01 serverx postfix/qmgr[27788]: 673806E2FF3: removed
  71. Aug 29 12:34:01 serverx postfix/pickup[27787]: 9AE436E2FF3: uid=1000 from=<teezy>
  72. Aug 29 12:34:01 serverx postfix/cleanup[27803]: 9AE436E2FF3: message-id=<20150829093401.9AE436E2FF3@mail.example.com>
  73. Aug 29 12:34:01 serverx postfix/qmgr[27788]: 9AE436E2FF3: from=<teezy@mail.example.com>, size=1130, nrcpt=1 (queue active)
  74. Aug 29 12:34:01 serverx postfix/local[27851]: 9AE436E2FF3: to=<teezy@mail.example.com>, orig_to=<teezy>, relay=local, delay=0.01, delays=0.01/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
  75. Aug 29 12:34:01 serverx postfix/qmgr[27788]: 9AE436E2FF3: removed
  76. Aug 29 12:34:01 serverx postfix/pickup[27787]: DCD426E2FF3: uid=1000 from=<teezy>
  77. Aug 29 12:34:01 serverx postfix/cleanup[27803]: DCD426E2FF3: message-id=<20150829093401.DCD426E2FF3@mail.example.com>
  78. Aug 29 12:34:01 serverx postfix/qmgr[27788]: DCD426E2FF3: from=<teezy@mail.example.com>, size=1661, nrcpt=1 (queue active)
  79. Aug 29 12:34:01 serverx postfix/local[27851]: DCD426E2FF3: to=<teezy@mail.example.com>, orig_to=<teezy>, relay=local, delay=0.01, delays=0.01/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
  80. Aug 29 12:34:01 serverx postfix/qmgr[27788]: DCD426E2FF3: removed
  81. Aug 29 12:34:08 serverx postfix/postfix-script[27872]: stopping the Postfix mail system
  82. Aug 29 12:34:08 serverx postfix/master[27786]: terminating on signal 15
  83. root@serverx:/var/log#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement