[Linux-bruxelles] problème de config Exim pour utiliser l'smtp Gmail

Aldo info at brlspeak.net
Lun 15 Oct 19:33:19 CEST 2012


Hello,

l'autre jour j'ai tenté, sans succès, de mettre en pratique le HowTo
suivant, qui explique la marche à suivre pour configurer Exim pour qu'il
poste via le serveur smtp Gmail.

voici l'URL de ref. de ce how-to:
URL: http://islandlinux.org/howto/configure-exim-use-gmail-smtp-server

Configure Exim to use Gmail as the SMTP Server

   Fri, 09/18/2009 - 10:37 — Dallas Vogels

   Configuring Exim to use Gmail as the outgoing SMTP server is simple.
   This HOWTO will walk you through installing, configuring and routing
   email thru Gmail for exim.

   The first step is to install exim4. Launch terminal and:
   sudo apt-get install exim4

   Run the following command to configure exim4:
   sudo dpkg-reconfigure exim4-config
(sous Debian comme on devient root, on lance la commande sans le sudo) 

   Set the following:
General type of mail configuration: mail sent by smarthost; no local mail
(là déjà je ne comprends pas ce choix, le 3me dans la liste, où il devient
impossible d'envoyer du courriel en interne, j'ai essayé avec la 2me et la
3me option, mais dans aucun des deux cas ça ne fonctionne)

System mail name: (default)
IP-addresses to listen on for incoming SMTP connections: 127.0.0.1
Other destinations for which mail is accepted:  (default)
Visible domain name for local users: yourdomain.com
IP address or host name of the outgoing smarthost: smtp.gmail.com::587
(ici je ne comprends pas et doute sur les deux "::")

Keep number of DNS-queries minimal (Dial-on-Demand)? No
Split configuration into small files? No

   The exim4 SMTP server is now set to route emails thru Gmail. Now all we
   need to do is to tell exim4 the username and password we are going to
   use. To accomplish this create a text file called
   /etc/exim4/passwd.client. Update the file to read:
   # password file used when the local exim is authenticating to a remote
   # host as a client.
   #
   # see exim4_passwd_client(5) for more documentation
   #
   # Example:
   ### target.mail.server.example:login:password
   gmail-smtp.l.google.com:you at gmail.com:password
   *.google.com:you at gmail.com:password
   smtp.gmail.com:you at gmail.com:password

   Replace you at gmail.com:password with your login information.

   Reload the exim4 server:
   sudo /etc/init.d/exim4 reload

...

Voilà jusq'où j'ai été et ça ne marche pas,
même pas quand dans /etc/email-addresses je met pour l'utilisateur aldo
l'adresse courriel gmail.

Aldo.






Plus d'informations sur la liste de diffusion Linux-bruxelles