HELP !
J’ai mis en place un serveur VPS qui tourne sous Debian et je souhaiterai recevoir
mes logs d’alertes sur mon email : mail@robot.zapier.com
J’utilise zapier.com pour mes emails mais je passe par un relais smtp de mandrill.
Mais j’ai un problème avec Ssmtp :
Installé avec sendmail et qui précédemment marchait bien, il ne peu m’envoyer
les logs de mon par-feu csf ni de arpwatch via smtp.
Le test, si incroyable que cela paresse a réussi :
Je reçois bien les messages sur mail@robot.zapier.com !
Voici donc ma configuration :
Ssmtp.conf
[color=#000080]#
Config file for sSMTP sendmail
The person who gets all mail for userids < 1000
Make this empty to disable rewriting.
root=mail@robot.zapier.com
AuthUser=mail@gmail.com
AuthPass=pass
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:587=smtp.mandrillapp.com
Where will the mail seem to come from?
#rewriteDomain=
The full hostname
hostname=localhost
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
Utilisation d’une connexion securisee/TLS (décommenter pour activer)
UseTLS=YES
UseSTARTTLS=YES
[/color]
et sSMTP aliases
[color=#0000BF][color=#000040]# 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:mail@robot.zapier.com:smtp.mandrillapp.com:587
mainuser:mail@robot.zapier.com:smtp.mandrillapp.com:587
[/color]
[/color]
Je trouve dans les derniers logs des erreurs que je n’arrive pas à résoudre,
la connection SSL se fait bien, mais elle se dirige vers localhost !
J’ai vraiment tout essayé pour éviter cela, sans succès.
mail.err
an 13 17:40:01 108 sSMTP[14472]: Unable to locate mailhub
Jan 13 17:40:01 108 sSMTP[14472]: Cannot open mailhub:25
an 13 17:40:01 108 sSMTP[14472]: /etc/ssmtp/ssmtp.conf not found
Jan 13 17:40:01 108 sSMTP[14472]: Unable to locate mailhub
Jan 13 17:40:01 108 sSMTP[14472]: Cannot open mailhub:25
Jan 13 17:41:22 108 sSMTP[14534]: Creating SSL connection to host
Jan 13 17:41:22 108 sSMTP[14534]: SSL connection using RSA_AES_128_CBC_SHA1
Jan 13 17:41:24 108 sSMTP[14534]: Sent mail for root@localhost (221 2.0.0 Bye) uid=0 username=root
En fin de compte, je crois que je regrette d’avoir mis sendmail au placard, si il n’y a
pas de solutions je devrais désinstaller Ssmtp.
Toutes suggestions seront les bienvenues.
Merci.