Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@point:/etc/ssmtp# 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:465
- # 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=pass
- # Email 'From header's can override the default domain?
- FromLineOverride=yes
- AuthMethod=LOGINroot@point:/etc/ssmtp# 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.
- root:videoalarmserver@yandex.ru:smtp.yandex.ru:25root@point:/etc/ssmtp#
- root@point:/etc/ssmtp#
- root@point:/etc/ssmtp#
- root@point:/etc/ssmtp# echo "test test test" | /usr/sbin/ssmtp -v -s yar1k01@ya.ru
- [<-] 220 smtp2p.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
- [<-] 235 2.7.0 Authentication successful.
- [->] MAIL FROM:<videoalarmserver@yandex.ru>
- [<-] 250 2.1.0 <videoalarmserver@yandex.ru> ok
- [->] RCPT TO:<yar1k01@ya.ru>
- [<-] 250 2.1.5 <yar1k01@ya.ru> recipient ok
- [->] DATA
- [<-] 354 Enter mail, end with "." on a line by itself
- [->] Received: by localhost (sSMTP sendmail emulation); Sun, 14 Aug 2016 21:20:49 +0300
- [->] From: "root" <videoalarmserver@yandex.ru>
- [->] Date: Sun, 14 Aug 2016 21:20:49 +0300
- [->] test test test
- [->]
- [->] .
- [<-] 554 5.7.1 Message rejected under suspicion of SPAM; https://ya.cc/0EgTP 1471198850-a2LGFzNwbm-KojWR5U4
- ssmtp: 554 5.7.1 Message rejected under suspicion of SPAM; https://ya.cc/0EgTP 1471198850-a2LGFzNwbm-KojWR5U4
- root@point:/etc/ssmtp#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement