rai ha scritto: ↑sabato 23 gennaio 2021, 16:51
Ciao
prova ad aggiungere nel file di configurazione la riga
Ho trovato una wiki e ho aggiornato il conf file come segue
Codice: Seleziona tutto
#
# Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=myname@gmail.com
# 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.gmail.com:587
# The address where the mail appears to come from for user authentication.
rewriteDomain=gmail.com
# The full hostname. Must be correctly formed, fully qualified domain name or GMail will reject connection.
hostname=ananas
# Use SSL/TLS before starting negotiation
TLS_CA_FILE=/etc/ssl/certs/ca-certificates.crt
UseTLS=Yes
UseSTARTTLS=Yes
# Username/Password
AuthUser=myname@gmail.com
AuthPass=mypassword
AuthMethod=LOGIN
# Email 'From header's can override the default domain?
FromLineOverride=yes
Ora mi esce un output piu' esteso, ma la mail non la ricevo lo stesso
Codice: Seleziona tutto
user@ananas:~$ echo -e 'Subject: test\n\nTesting ssmtp' | sendmail -v myname@gmail.com
[<-] 220 smtp.gmail.com ESMTP v20sm16357528wra.19 - gsmtp
[->] EHLO ananas
[<-] 250 SMTPUTF8
[->] STARTTLS
[<-] 220 2.0.0 Ready to start TLS
[->] EHLO ananas
[<-]
sendmail: (ananas)
rai ha scritto: ↑sabato 23 gennaio 2021, 16:51
PS
se esegui il comando
l'output è
ananas ?
Si, e' il nome del mio Raspberry
rai ha scritto: ↑sabato 23 gennaio 2021, 16:51
PPS
wiki.debian.org/it/sSMTP ha scritto:Pacchetto attualmente non mantenuto
Questo pacchetto è orfano a partire dal 2019-03-19. Come alternativa si può usare msmtp.
Puo' essere, su Raspbian pero' ssmtp si scarica e installa tranquillamente. In ogni caso, come si configurerebbe msmtp?