Guest User

Untitled

a guest
Jun 30th, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. mail to joe@hotmail from mark@gmail
  2. mail to fred@yahoo from mark@hotmail.
  3.  
  4. [smtp.gmail.com]:587 myemail@gmail.com:mypasswd
  5.  
  6. # See /usr/share/postfix/main.cf.dist for a commented, more complete version
  7.  
  8. # Debian specific: Specifying a file name will cause the first
  9. # line of that file to be used as the name. The Debian default
  10. # is /etc/mailname.
  11. #myorigin = /etc/mailname
  12.  
  13. smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
  14. biff = no
  15.  
  16. # appending .domain is the MUA's job.
  17. append_dot_mydomain = no
  18.  
  19. # Uncomment the next line to generate "delayed mail" warnings
  20. #delay_warning_time = 4h
  21.  
  22. readme_directory = no
  23.  
  24. # TLS parameters
  25. smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
  26. smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
  27. smtpd_use_tls=yes
  28. smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
  29. smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  30.  
  31. # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
  32. # information on enabling SSL in the smtp client.
  33.  
  34. myhostname = MyComputerName
  35. alias_maps = hash:/etc/aliases
  36. alias_database = hash:/etc/aliases
  37. myorigin = /etc/mailname
  38. mydestination = MyEmailRemovedHere@comcast.net, MyComputerName, localhost.localdomain, localhost
  39. relayhost =
  40. mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
  41. mailbox_size_limit = 0
  42. recipient_delimiter = +
  43. inet_interfaces = all
  44.  
  45. echo "some text" | mailx mark@gmail.com
  46.  
  47. echo hello world | mailx -v -r AnotherEmailOfMine@gmail.com -S smtp=smtp.gmail.com:587 -S smtp-use-starttls -S smtp-auth-user=AnotherEmailOfMine@gmail.com -S smtp-auth-password=MyPassword destination@somewhere.com
Add Comment
Please, Sign In to add comment