Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- teezy@serverx:~$ /etc/init.d/postfix start
- [ ok ] Starting postfix (via systemctl): postfix.service.
- teezy@serverx:~$ /etc/init.d/postfix stop
- [ ok ] Stopping postfix (via systemctl): postfix.service.
- teezy@serverx:~$ sudo su
- [sudo] password for teezy:
- root@serverx:/home/teezy# postfix start
- postfix/postfix-script: starting the Postfix mail system
- root@serverx:/home/teezy# postfix stop
- postfix/postfix-script: stopping the Postfix mail system
- root@serverx:/home/teezy# echo "Test mail from postfix" | mail -s "Test Postfix" teezy.koo@gmail.com
- root@serverx:/home/teezy# postfix start
- postfix/postfix-script: starting the Postfix mail system
- root@serverx:/home/teezy# echo "Test mail from postfix" | mail -s "Test Postfix" teezy.koo@gmail.com
- root@serverx:/home/teezy# postfix stop
- postfix/postfix-script: stopping the Postfix mail system
- root@serverx:/home/teezy# postconf -n
- alias_database = hash:/etc/aliases
- alias_maps = hash:/etc/aliases
- append_dot_mydomain = no
- biff = no
- config_directory = /etc/postfix
- inet_interfaces = all
- inet_protocols = all
- mailbox_size_limit = 0
- mydestination = mail.example.com, serverx, localhost.localdomain, , localhost
- myhostname = mail.example.com
- mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
- myorigin = /etc/mailname
- readme_directory = no
- recipient_delimiter = +
- relayhost = [smtp.gmail.com]:587
- smtp_sasl_auth_enable = yes
- smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
- smtp_sasl_security_options = noanonymous
- smtp_tls_CAfile = /etc/postfix/cacert.pem
- smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
- smtp_use_tls = yes
- smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
- smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
- smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
- smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
- smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
- smtpd_use_tls = yes
- root@serverx:/home/teezy# cd /etc
- root@serverx:/etc# nano mailname
- root@serverx:/etc# cd /etc/postfix
- root@serverx:/etc/postfix# ls
- cacert.pem main.cf postfix-files post-install sasl_passwd
- dynamicmaps.cf master.cf postfix-script sasl sasl_passwd.db
- root@serverx:/etc/postfix# nano sasl_passwd
- root@serverx:/etc/postfix# postfix start
- postfix/postfix-script: starting the Postfix mail system
- root@serverx:/etc/postfix# postfix stop
- postfix/postfix-script: stopping the Postfix mail system
- root@serverx:/etc/postfix# postfix start
- postfix/postfix-script: starting the Postfix mail system
- root@serverx:/etc/postfix# echo "Test mail from postfix" | mail -s "Test Postfix" teezy.koo@gmail.com
- root@serverx:/etc/postfix# postfix stop
- postfix/postfix-script: stopping the Postfix mail system
- root@serverx:/etc/postfix# cd /var/log
- root@serverx:/var/log# tail -20 mail.log
- Aug 29 12:33:59 serverx postfix/qmgr[27788]: E0BDE6E2FF3: from=<root@serverx>, size=361, nrcpt=1 (queue active)
- 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)
- Aug 29 12:34:01 serverx postfix/qmgr[27788]: E0BDE6E2FF3: removed
- Aug 29 12:34:01 serverx postfix/pickup[27787]: 673806E2FF3: uid=1000 from=<teezy>
- Aug 29 12:34:01 serverx postfix/cleanup[27803]: 673806E2FF3: message-id=<20150829093401.673806E2FF3@mail.example.com>
- Aug 29 12:34:01 serverx postfix/qmgr[27788]: 673806E2FF3: from=<teezy@mail.example.com>, size=762, nrcpt=1 (queue active)
- 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)
- Aug 29 12:34:01 serverx postfix/qmgr[27788]: 673806E2FF3: removed
- Aug 29 12:34:01 serverx postfix/pickup[27787]: 9AE436E2FF3: uid=1000 from=<teezy>
- Aug 29 12:34:01 serverx postfix/cleanup[27803]: 9AE436E2FF3: message-id=<20150829093401.9AE436E2FF3@mail.example.com>
- Aug 29 12:34:01 serverx postfix/qmgr[27788]: 9AE436E2FF3: from=<teezy@mail.example.com>, size=1130, nrcpt=1 (queue active)
- 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)
- Aug 29 12:34:01 serverx postfix/qmgr[27788]: 9AE436E2FF3: removed
- Aug 29 12:34:01 serverx postfix/pickup[27787]: DCD426E2FF3: uid=1000 from=<teezy>
- Aug 29 12:34:01 serverx postfix/cleanup[27803]: DCD426E2FF3: message-id=<20150829093401.DCD426E2FF3@mail.example.com>
- Aug 29 12:34:01 serverx postfix/qmgr[27788]: DCD426E2FF3: from=<teezy@mail.example.com>, size=1661, nrcpt=1 (queue active)
- 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)
- Aug 29 12:34:01 serverx postfix/qmgr[27788]: DCD426E2FF3: removed
- Aug 29 12:34:08 serverx postfix/postfix-script[27872]: stopping the Postfix mail system
- Aug 29 12:34:08 serverx postfix/master[27786]: terminating on signal 15
- root@serverx:/var/log#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement