SHARE
TWEET

Untitled

a guest Aug 14th, 2016 111 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. root@point:/etc/ssmtp# cat /etc/ssmtp/ssmtp.conf
  2. # The user that gets all the mails (UID < 1000, usually the admin)
  3. root=videoalarmserver@yandex.ru
  4.  
  5. # The mail server (where the mail is sent to), both port 465 or 587 should be acceptable
  6. # See also https://support.google.com/mail/answer/78799
  7. mailhub=smtp.yandex.ru:465
  8.  
  9. # The address where the mail appears to come from for user authentication.
  10. rewriteDomain=yandex.ru
  11.  
  12. # The full hostname
  13. hostname=localhost
  14.  
  15. # Use SSL/TLS before starting negotiation
  16. UseTLS=Yes
  17. UseSTARTTLS=Yes
  18.  
  19. # Username/Password
  20. AuthUser=videoalarmserver
  21. AuthPass=pass
  22.  
  23. # Email 'From header's can override the default domain?
  24. FromLineOverride=yes
  25.  
  26. AuthMethod=LOGINroot@point:/etc/ssmtp# cat /etc/ssmtp/revaliases
  27. # sSMTP aliases
  28. #
  29. # Format:   local_account:outgoing_address:mailhub
  30. #
  31. # Example: root:your_login@your.domain:mailhub.your.domain[:port]
  32. # where [:port] is an optional port number that defaults to 25.
  33. root:videoalarmserver@yandex.ru:smtp.yandex.ru:25root@point:/etc/ssmtp#
  34. root@point:/etc/ssmtp#
  35. root@point:/etc/ssmtp#
  36. root@point:/etc/ssmtp# echo "test test test" | /usr/sbin/ssmtp -v -s yar1k01@ya.ru
  37. [<-] 220 smtp2p.mail.yandex.net ESMTP (Want to use Yandex.Mail for your domain? Visit http://pdd.yandex.ru)
  38. [->] EHLO localhost
  39. [<-] 250 ENHANCEDSTATUSCODES
  40. [->] STARTTLS
  41. [<-] 220 Go ahead
  42. [->] EHLO localhost
  43. [<-] 250 ENHANCEDSTATUSCODES
  44. [->] AUTH LOGIN
  45. [<-] 334 VXNlcm5hbWU6
  46. [->] dmlkZW9hbGFybXNlcnZlcg==
  47. [<-] 334 UGFzc3dvcmQ6
  48. [<-] 235 2.7.0 Authentication successful.
  49. [->] MAIL FROM:<videoalarmserver@yandex.ru>
  50. [<-] 250 2.1.0 <videoalarmserver@yandex.ru> ok
  51. [->] RCPT TO:<yar1k01@ya.ru>
  52. [<-] 250 2.1.5 <yar1k01@ya.ru> recipient ok
  53. [->] DATA
  54. [<-] 354 Enter mail, end with "." on a line by itself
  55. [->] Received: by localhost (sSMTP sendmail emulation); Sun, 14 Aug 2016 21:20:49 +0300
  56. [->] From: "root" <videoalarmserver@yandex.ru>
  57. [->] Date: Sun, 14 Aug 2016 21:20:49 +0300
  58. [->] test test test
  59. [->]
  60. [->] .
  61. [<-] 554 5.7.1 Message rejected under suspicion of SPAM; https://ya.cc/0EgTP 1471198850-a2LGFzNwbm-KojWR5U4
  62. ssmtp: 554 5.7.1 Message rejected under suspicion of SPAM; https://ya.cc/0EgTP 1471198850-a2LGFzNwbm-KojWR5U4
  63. root@point:/etc/ssmtp#
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top