Ho implementato, sulla mia Arch, un mta che si basa su Ssmtp, sulla scorta di questa guida, per far in modo di ricevere un'email ogniqualvolta venga eseguito uno degli script che utilizzo giornalmente.
Tutto ok, questo è il file di configurazione del servizio:
Codice: Seleziona tutto
[root@andy ~]# cat /etc/ssmtp/ssmtp.conf
#
# /etc/ssmtp.conf -- a config file for sSMTP sendmail.
#
# The user that gets all the mails (UID < 1000, usually the admin)
root=mia_email@gmail.com
# The mail server (where the mail is sent to), both port 465 or 587 should be acceptable
# See also http://mail.google.com/support/bin/answer.py?answer=78799
mailhub=smtp.gmail.com:587
# The address where the mail appears to come from for user authentification.
rewriteDomain=gmail.com
# The full hostname
hostname=localhost
# Use SSL/TLS before starting negotiation
UseTLS=Yes
UseSTARTTLS=Yes
# Username/Password
AuthUser=mia_email@gmail.com
AuthPass=xxxxx
# Email 'From header's can override the default domain?
FromLineOverride=yes
Codice: Seleziona tutto
root@andy ~]# 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:mia_email@gmail.com:smtp.gmail.com:587
pinco_palla:mia_email@gmail.com:smtp.gmail.com:587E' da parecchio che ci sbatto sopra a 'sto problema; che indicazioni mi date?
Burroughs.

