Grazie a tutti ho risolto.
posto la soluzione così da essere utile al forum:
ho configurato ssmtp nel modo seguente:
il file /etc/ssmtp/ssmtp.conf
#
# Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriti
# The place where the mail goes. The actual machine name is required no
# MX records are consulted. Commonly mailhosts are named mail.domain.co
root=segreteria@miosito.it
hostname=_HOSTNAME_MACCHINA_
mailhub=smtp.fastwebnet.it (SMTP fasteweb o del vostro provider)
#UseSTARTTLS=YES
#AuthMethod=LOGIN
# 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
il file /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:segreteria@miosito.it:smtp.fastwebnet.it
www-data:segreteria@miosito.it:smtp.fastwebnet.it
Ora l'unica cosa che vorrei migliorare è la seguente:
quando invia correttamente la mail, il mittente è www-data con mail
segreteria@miosito.itè possibile cambiare il nome visualizzato di www-data?
Grazie del supporto.
Marco