Configuration extension Contact Form 7
Une fois le plugin installé, aller dans les paramètres puis dans l’onglet E-mail. Renseigner son adresse de destination et vérifier les autres champs.
Le formulaire par défaut convient très bien mais il est aussi possible de le personnaliser.
Copier/Coller le lien comme indiqué dans les paramètres dans une page vide pour afficher le formulaire.
Il faut ensuite configurer l’envoi de mail sur le serveur.
Mon serveur utilise Exim.
Pour reconfigurer, lancer la commande
1 |
$ sudo dpkg-reconfigure exim4-config |
Utiliser l’envoi de mail par smarthost , pas de réception
mail sent by smarthost ; not local mail
Puis paramétrer les champs comme ci dessous
1 2 3 4 |
mail server configuration. configuration type: => "<strong>mail sent by smarthost ; not local mail</strong>." select "OK" then "enter". |
1 2 |
System mail name: => "<strong>it</strong>" (the netbios name of your machine). select "OK" then "enter". |
1 2 3 4 |
List of IP addresses where exim will be waiting for incoming SMTP connections: => "<strong>127.0.0.1</strong>" ipv6 not necessary exim will be listening on 127.0.0.1 for incoming messages select "OK" then "enter" |
1 2 |
Other destinations whose mail must be accepted: => "<strong>localhost</strong>" select "OK" then "enter" |
1 2 |
Visible domain name for local users: => "<strong>localhost</strong>" select "OK" then "enter" |
1 2 |
Network name or IP address of the system smarthost: => "<strong>your server mail ou isp</strong>" (exemple <strong>smtp.free.fr</strong>) select "OK" then "enter" |
1 2 |
Should we minimize the DNS requests (connection to the request): => "<strong>NO</strong>" select "<strong>NO</strong>" then "enter" |
1 2 |
Should the configuration be separated into several files: => "<strong>NO</strong>" select "<strong>NO</strong>" then "enter" |
/!\ Pour utiliser son serveur mail en relay, penser a autoriser son ip dans les réseaux de confiance.
/!\ Penser a ouvrir le port 25 sur netfilter
/!\ Au besoin redémarrer le service http