Bonjour à tous,
Je suis en train d'installer Postfix, Postfixadmin, dovecot et Roundcube.
Je me suis fait une documentation tirer d'un site. Je vous joins le pdf.
http://pdf.lu/Mr28
Si le lien ne fonctionne pas vous pouvez aller là :
http://www.fichier-pdf.fr/2015/10/02/installation-d-un-serveur-mail-complet-sous-debian/
Quand je teste le mail via la commande suivante:
echo test | mail contact@exemple.com
Pour vérifier si postfix fonctionne bien
Je fais :
tail -f /var/log/mail.log
Voici le resultat :
Oct 2 10:07:34 osn postfix/qmgr[15137]: E54C44012E: from=<root@osn.exemple.com>, size=344, nrcpt=1 (queue active)
Oct 2 10:07:34 osn postfix/trivial-rewrite[16703]: warning: do not list domain exemple.com in BOTH mydestination and virtual_mailbox_domains
Oct 2 10:07:34 osn postfix/local[16706]: E54C44012E: to=<contact@exemple.com>, relay=local, delay=0.04, delays=0.03/0/0/0, dsn=5.1.1, status=bounced (unknown user: "contact")
Oct 2 10:07:34 osn postfix/cleanup[16702]: E9EAA4012F: message-id=<20151002080734.E9EAA4012F@osn.exemple.com>
Oct 2 10:07:34 osn postfix/bounce[16707]: E54C44012E: sender non-delivery notification: E9EAA4012F
Oct 2 10:07:34 osn postfix/qmgr[15137]: E9EAA4012F: from=<>, size=2137, nrcpt=1 (queue active)
Oct 2 10:07:34 osn postfix/qmgr[15137]: E54C44012E: removed
Oct 2 10:07:34 osn postfix/trivial-rewrite[16703]: warning: do not list domain exemple.com in BOTH mydestination and virtual_mailbox_domains
Oct 2 10:07:34 osn postfix/local[16706]: E9EAA4012F: to=<alain@exemple.com>, orig_to=<root@osn.exemple.com>, relay=local, delay=0.02, delays=0.01/0/0/0.01, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
Oct 2 10:07:34 osn postfix/qmgr[15137]: E9EAA4012F: removed
J'ai un warning: do not list domain exemple.com, il me dit que le domaine n'est pas dans la liste des domaine. Si j'ai compris.
Je vérifie que le domaine est présent avec la commande :
postmap -q exemple.com mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
Il doit me retourner 1 pour dire que le domaine est présent.
Voici la Réponse :
root@osn:/etc/postfix# postmap -q exemple.com mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
1
Donc il trouve bien le domaine.
Pour Postfixadmin
Je n'ai pas de soucis pour y accéder.
http://www.exemple.com/postfixadmin
Pour RoundCube
Quand je vais sur Roundcube, j'ai une erreur :
tail -f /var/log/mail.log
Oct 1 19:34:03 osn dovecot: auth: Warning: Configuration file /etc/dovecot/dovecot-sql.conf.ext line 33: Ambiguous '#' character in line, treating it as comment. Add a space before it to remove this warning.
Oct 1 19:34:03 osn dovecot: auth-worker(15346): Warning: Configuration file /etc/dovecot/dovecot-sql.conf.ext line 33: Ambiguous '#' character in line, treating it as comment. Add a space before it to remove this warning.
Oct 1 19:34:03 osn dovecot: auth-worker(15346): Error: mysql(127.0.0.1): Connect failed to database (postfixadmin): Access denied for user 'usermail'@'localhost' (using password: YES) - waiting for 1 seconds before retry
Dans le fichier en question du warning j'ai mis :
driver = mysql
connect = host=127.0.0.1 dbname=postfixadmin user=usermail password=Azerty
password_query = SELECT username,domain,password FROM mailbox WHERE username='%u';
Ces lignes vont de la ligne 32 à 34.
Je suis allé voir si j'arrive bien à me connecter à ma base de donnée.
C'est bon. Les droits base de données pour cette utilisateur est :
select.
Je ne comprend pas d'où ça peux venir.
Faut il d'autres renseignements ?
Pouvez vous m'aider ?
Merci