daily pastebin goal
41%
SHARE
TWEET

Untitled

a guest Aug 14th, 2016 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. root@laptop:/home/yar1k# 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:587
  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=
  22.  
  23. # Email 'From header's can override the default domain?
  24. FromLineOverride=yes
  25.  
  26. root@laptop:/home/yar1k# 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. yar1k:videoalarmserver@yandex.ru:smtp.yandex.ru:587
  34. root:videoalarmserver@yandex.ru:smtp.yandex.ru:587root@laptop:/home/yar1k#
  35. root@laptop:/home/yar1k#
  36. root@laptop:/home/yar1k# echo "test test test" | /usr/sbin/ssmtp -v -s yar1k01@ya.ru
  37. [<-] 220 smtp2j.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. [<-] 535 5.7.8 Error: authentication failed:Invalid format.
  49. ssmtp: Authorization failed (535 5.7.8 Error: authentication failed:Invalid format.)
  50. root@laptop:/home/yar1k#
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