Você também precisa editar aliases de sSMTP / etc / ssmtp / revaliases
por exemplo. sudo nano /etc/ssmtp/revaliases
Nesse caso, configurei um alias para usuários pi e movimento
# Format: local_account:outgoing_address:mailhub
#
# Example: root:[email protected]:mailhub.your.domain[:port]
# where [:port] is an optional port number that defaults to 25.
#
pi:[email protected]:smtp.mail.yahoo.com:587
motion:[email protected]:smtp.mail.yahoo.com:587
===
minha configuração para /etc/ssmtp/ssmtp.conf
:
#
# Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
[email protected]
# The place where the mail goes. The actual machine name is required no
# MX records are consulted. Commonly mailhosts are named mail.domain.com
mailhub=smtp.mail.yahoo.com:587
# Where will the mail seem to come from?
rewriteDomain=yahoo.com
# The full hostname
[email protected]
# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
FromLineOverride=No
[email protected]
AuthPass=YOURPASSWORD
UseTLS=YES
UseSTARTTLS=YES
===
Fonte: link