Bonjour à tous,
J'ai un VPS chez OVH (VPS 2014 Classic 1) sous Debian 7 (Wheezy) (64 bits).
J'ai une adresse mail existante
postmaster@mondomaine.org
Il me faut utiliser la fonction "mail()" php sur mon site (pour l'envoi d'une dizaine de mails par mois à 3 adresses mails différentes).
Suivant plusieurs tuto, j'ai fait les actions suivante :
1) installé exim4
2) configurer update-exim4.conf.conf de la manière suivante :
Code:
# /etc/exim4/update-exim4.conf.conf
dc_eximconfig_configtype='satellite'
dc_other_hostnames=''
dc_local_interfaces='127.0.0.1 ; ::1'
c_readhost='mondomaine.org'
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost='ssl0.ovh.net::465'
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname='true'
dc_mailname_in_oh='true'
dc_localdelivery='mail_spool'
3) modifié les alias /etc/aliases
Code:
# /etc/aliases
mailer-daemon: postmaster
postmaster: root
nobody: root
hostmaster: root
usenet: root
news: root
webmaster: root
www: root
ftp: root
abuse: root
noc: root
security: root
root: postmaster@mondomaine.org
4) ajouté l'authentification au smtp d'ovh
Code:
# /etc/exim4/passwd.client
ssl0.ovh.net:postmaster@mondomaine.org:MotDePasse
5) relancé exim
Code:
update-exim4.conf
/etc/init.d/exim4 restart
6) tenté d'envoyer un mail
Code:
echo "test message" | mail -s "test" autreadresse@domaine.com
7) le mail n'est pas délivré. Voici ce qui est indiqué dans mainlog :
Code:
2016-02-17 17:29:39 1aW4yx-0002nf-M9 <= root@mondomaine.org U=root P=local S=523
2016-02-17 17:29:39 1aW4yx-0002nf-M9 == autreadresse@domaine.com R=smarthost T=remote_smtp_smarthost defer (-53): retry time not reached for any host
Malgré mes recherches, je ne trouve pas de solution. Pourriez-vous m'aider ?
Merci