[Linux-bruxelles] aide Exim4 et envoi de courriel par smtp authentifié

Aldo lar0sa.osvaldo at gmail.com
Sam 20 Juin 22:30:14 CEST 2020


Hello, 

j'espère que ce mail arrivera à bon port et qu'un spécialiste d'Exim
m'aiguillera ! 

Voici: 
sur l'ordi d'où j'envoit ce mail, je ne peux envoyer des courriels QUE via
Gmail, auquel je me connecte par Mutt et une conf ad hoc.

Recevoir se fait nickel par Fetchmail et divers .fetchmailrc-*

J'aimerais pouvoir utiliser par ex. le smtp de Telenet.be, (mon FAI @ la
maison à Ostende) mais n'arrive pas à configurer Exim4 pour faire du smtp
avec certification/authentification.

J'ai suivit un chouette HowTo mais je n'y arrive pas! 
Cf. bobcares.com: http://bobcares.com/blog/exim4-smtp-authentication/

Voici ce que j'ai fait:

# Script started on 2020-06-19 15:03:46+0200
@ Generer exim.crt et exim.key 
root at i5-2520M:~# /usr/share/doc/exim4-base/examples/exim-gencert 
[*] /etc/exim4/exim.crt and /etc/exim4/exim.key exists!
    Use "/usr/share/doc/exim4-base/examples/exim-gencert --force" to force generation!
root at i5-2520M:~# cd /etc/exim4/

root at i5-2520M:/etc/exim4# cat exim4.conf.localmacros 
MAIN_TLS_ENABLE = true
# J'ai édité ce fichier et ai mis l'info ci-dessus dedant. 

# En ligne 1882 de exim4.conf.template j'ai décoché les lignes ci-dessous
root at i5-2520M:/etc/exim4# joe exim4.conf.templlate 
				    IW   exim4.conf.template                                                                                                     Row 1882 Col 1    3:07  Ctrl-K H for help 

# plain_server:
   driver = plaintext
   public_name = PLAIN
   server_condition = "${if crypteq{$auth3}{${extract{1}{:}{${lookup{$auth2}lsearch{CONFDIR/passwd}{$value}{*:*}}}}}{1}{0}}"
   server_set_id = $auth2
   server_prompts = :
   .ifndef AUTH_SERVER_ALLOW_NOTLS_PASSWORDS
   server_advertise_condition = ${if eq{$tls_in_cipher}{}{}{*}}
   .endif 

File exim4.conf.template saved.

# Ci-après je me mêle un peu les pinces, s'agit-il d'un user sur l'ordi ou
# d'un user et mdp pour le mail ?
root at i5-2520M:/etc/exim4# /usr/share/doc/exim4-base/examples/exim-adduser
User: yellowpenguin at telenet.be 
Password: azertyuiop

# Mais même en mettant les deux ça ne fonctionne pas! 
root at i5-2520M:/etc/exim4# ls -l passwd 
-rw-r----- 1 root root 106 jun 19 15:11 passwd 

root at i5-2520M:/etc/exim4# cd 

# J'ai aussi mis le chmod de passwd en 640 mais rien de plus, étant sous
# Ubuntu (il y aurait une difference avec Debian); puis j'ai exécuté
root at i5-2520M:~# update-exim4.conf
2020-06-19 15:13:45 Exim configuration error in line 891 of /var/lib/exim4/config.autogenerated.tmp: 
  authenticator name missing 
Invalid new configfile /var/lib/exim4/config.autogenerated.tmp, not installing 
/var/lib/exim4/config.autogenerated.tmp to /var/lib/exim4/config.autogenerated

# Je ne comprends pas où est l'erreur...

root at i5-2520M:~# cd - 
/etc/exim4 

root at i5-2520M:/etc/exim4# joe passwd 
				    I    passwd                                                                                                                  Row 1    Col 1    3:14  Ctrl-K H for help 
aldo:$1$tkA0$iRJ4heRe/vdK3s/pwzLa50:motdepassedaldo
yellowpenguin at telenet.be:$1$3Eqv$BYmRjJzu0EVaFBqvm1xGV1:azertyuiop

File passwd saved.

root at i5-2520M:/etc/exim4# cd 

root at i5-2520M:~# clear 

root at i5-2520M:~# 

# Script done on 2020-06-19 15:17:01+0200 

Merci de votre aide.

Aldo. 


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