Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@laptop:/home/yar1k# cat /etc/ssmtp/ssmtp.conf
- # The user that gets all the mails (UID < 1000, usually the admin)
- root=videoalarmserver@yandex.ru
- # The mail server (where the mail is sent to), both port 465 or 587 should be acceptable
- # See also https://support.google.com/mail/answer/78799
- mailhub=smtp.yandex.ru:587
- # The address where the mail appears to come from for user authentication.
- rewriteDomain=yandex.ru
- # The full hostname
- hostname=localhost
- # Use SSL/TLS before starting negotiation
- UseTLS=Yes
- UseSTARTTLS=Yes
- # Username/Password
- AuthUser=videoalarmserver
- AuthPass=
- # Email 'From header's can override the default domain?
- FromLineOverride=yes
- root@laptop:/home/yar1k# cat /etc/ssmtp/revaliases
- # sSMTP aliases
- #
- # Format: local_account:outgoing_address:mailhub
- #
- # Example: root:your_login@your.domain:mailhub.your.domain[:port]
- # where [:port] is an optional port number that defaults to 25.
- yar1k:videoalarmserver@yandex.ru:smtp.yandex.ru:587
- root:videoalarmserver@yandex.ru:smtp.yandex.ru:587root@laptop:/home/yar1k#
- root@laptop:/home/yar1k#
- root@laptop:/home/yar1k# echo "test test test" | /usr/sbin/ssmtp -v -s yar1k01@ya.ru
- [<-] 220 smtp2j.mail.yandex.net ESMTP (Want to use Yandex.Mail for your domain? Visit http://pdd.yandex.ru)
- [->] EHLO localhost
- [<-] 250 ENHANCEDSTATUSCODES
- [->] STARTTLS
- [<-] 220 Go ahead
- [->] EHLO localhost
- [<-] 250 ENHANCEDSTATUSCODES
- [->] AUTH LOGIN
- [<-] 334 VXNlcm5hbWU6
- [->] dmlkZW9hbGFybXNlcnZlcg==
- [<-] 334 UGFzc3dvcmQ6
- [<-] 535 5.7.8 Error: authentication failed:Invalid format.
- ssmtp: Authorization failed (535 5.7.8 Error: authentication failed:Invalid format.)
- root@laptop:/home/yar1k#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement