Ssmtp: differenze tra le versioni

(Creata pagina con '{{Versioni compatibili|Jessie}} == Introduzione == Ssmtp è un semplice MTA che permette l'invio di email da un computer ad un hub mail (server smtp) senza la necessità di ave...')
 
Riga 21: Riga 21:


I file di configurazione di <code>ssmtp</code> sono due ed entrambi assolutamente minimali.
I file di configurazione di <code>ssmtp</code> sono due ed entrambi assolutamente minimali.
=== /etc/ssmtp/ssmtp.conf ===
Ecco un esempio generico di file di configurazione adatto a servizi gratuiti come gmail, yahoo, ecc. che supportano TLS:
<pre>
#
# Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=nome_account@dominio
# The place where the mail goes. The actual machine name is required no
# MX records are consulted. Commonly mailhosts are named mail.domain.com
UseTLS=YES
UseSTARTTLS=YES
mailhub=indirizzo_server_smtp:587
# Where will the mail seem to come from?
#rewriteDomain=
# The full hostname
hostname=hostname_della_propria_macchina
# 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=YES
# Authentication parameters
AuthMethod=LOGIN
AuthUser=nome_account@dominio
AuthPass=password_account_mail
</pre>


{{Autori
{{Autori
2 853

contributi