La Ferme du web - Les forums

Venez baraguiner avec la communauté !

Vous n'êtes pas identifié.

#1 20/10/2012 10:46:30

Chucky2401
Membre
Date d'inscription: 20/06/2011
Messages: 3

Problème réception mail postfix/courier

Bonjour à tous !

J'ai suivi le tuto pour installer Postfix, ainsi que courier et Roundcube.
J'ai tout d'abord eu des soucis de connexion IMAP avec roundcube, mais en cherchant un peu sur le forum et avec les logs en debug, j'ai trouvé la solution.

La seul différence par rapport au tuto, c'est que mes mails vont dans /var/spool/mail, et après je ne sais pas si va vient de ma config, ou si c'est normal, mais au final le chemin donne cela :
/var/spool/mail/mon.domaine/{user} ({user} contient new, tmp, cur, etc.)

J'ai ensuite procéder à un test avec telnet, le mail est bien arrivé, mais le soucis c'est que tout les mails que j'envois en telnet, arrivents dans /var/spool/mail/{user} ; qui est un fichier texte, qui contient tous les mails...

Lorsque j'essaie de faire un test avec roundcube, voici ce que j'ai dans les logs :

Code:

Oct 20 10:34:22 tristan imapd: Connection, ip=[::ffff:127.0.0.1]
Oct 20 10:34:22 tristan authdaemond: received auth request, service=imap, authtype=login
Oct 20 10:34:22 tristan authdaemond: authmysql: trying this module
Oct 20 10:34:22 tristan authdaemond: SQL query: SELECT email, password, "", 5000, 5000, "/var/spool/mail/", CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1),'/'), "", name, "" FROM comptes WHERE email = 'chucky@**********' 
Oct 20 10:34:22 tristan authdaemond: password matches successfully
Oct 20 10:34:22 tristan authdaemond: authmysql: sysusername=<null>, sysuserid=5000, sysgroupid=5000, homedir=/var/spool/mail/, address=chucky@**********, fullname=<null>, maildir=web.tristan/tristan/, quota=<null>, options=<null>
Oct 20 10:34:22 tristan authdaemond: authmysql: clearpasswd=<null>, passwd=XTNblvh93peL.
Oct 20 10:34:22 tristan authdaemond: Authenticated: sysusername=<null>, sysuserid=5000, sysgroupid=5000, homedir=/var/spool/mail/, address=chucky@**********, fullname=<null>, maildir=web.tristan/tristan/, quota=<null>, options=<null>
Oct 20 10:34:22 tristan authdaemond: Authenticated: clearpasswd=**********, passwd=XTNblvh93peL.
Oct 20 10:34:22 tristan imapd: LOGIN, user=chucky@**********, ip=[::ffff:127.0.0.1], port=[57141], protocol=IMAP
Oct 20 10:34:22 tristan imapd: LOGOUT, user=chucky@**********, ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=10, sent=237, time=0
Oct 20 10:34:22 tristan imapd: Connection, ip=[::ffff:127.0.0.1]
Oct 20 10:34:22 tristan authdaemond: received auth request, service=imap, authtype=login
Oct 20 10:34:22 tristan authdaemond: authmysql: trying this module
Oct 20 10:34:22 tristan authdaemond: SQL query: SELECT email, password, "", 5000, 5000, "/var/spool/mail/", CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1),'/'), "", name, "" FROM comptes WHERE email = 'chucky@**********' 
Oct 20 10:34:22 tristan authdaemond: password matches successfully
Oct 20 10:34:22 tristan authdaemond: authmysql: sysusername=<null>, sysuserid=5000, sysgroupid=5000, homedir=/var/spool/mail/, address=chucky@**********, fullname=<null>, maildir=web.tristan/tristan/, quota=<null>, options=<null>
Oct 20 10:34:22 tristan authdaemond: authmysql: clearpasswd=<null>, passwd=XTNblvh93peL.
Oct 20 10:34:22 tristan authdaemond: Authenticated: sysusername=<null>, sysuserid=5000, sysgroupid=5000, homedir=/var/spool/mail/, address=chucky@**********, fullname=<null>, maildir=web.tristan/tristan/, quota=<null>, options=<null>
Oct 20 10:34:22 tristan authdaemond: Authenticated: clearpasswd=**********, passwd=XTNblvh93peL.
Oct 20 10:34:23 tristan imapd: LOGIN, user=chucky@**********, ip=[::ffff:127.0.0.1], port=[57142], protocol=IMAP
Oct 20 10:34:23 tristan imapd: LOGOUT, user=chucky@**********, ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=33, sent=346, time=1
Oct 20 10:34:28 tristan postfix/qmgr[7199]: 6716D37A55: from=<chucky@**********>, size=485, nrcpt=1 (queue active)
Oct 20 10:34:28 tristan postfix/trivial-rewrite[7281]: warning: do not list domain web.tristan in BOTH mydestination and virtual_mailbox_domains
Oct 20 10:34:28 tristan postfix/local[7282]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Oct 20 10:34:28 tristan postfix/trivial-rewrite[7281]: warning: do not list domain web.tristan in BOTH mydestination and virtual_mailbox_domains
Oct 20 10:34:28 tristan postfix/local[7282]: 6716D37A55: to=<chucky@**********>, orig_to=<root@web.tristan>, relay=local, delay=948, delays=948/0.22/0/0.25, dsn=2.0.0, status=sent (delivered to mailbox)
Oct 20 10:34:28 tristan postfix/qmgr[7199]: 6716D37A55: removed
Oct 20 10:34:34 tristan imapd: Connection, ip=[::ffff:127.0.0.1]
Oct 20 10:34:34 tristan authdaemond: received auth request, service=imap, authtype=login
Oct 20 10:34:34 tristan authdaemond: authmysql: trying this module
Oct 20 10:34:34 tristan authdaemond: SQL query: SELECT email, password, "", 5000, 5000, "/var/spool/mail/", CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1),'/'), "", name, "" FROM comptes WHERE email = 'chucky@**********' 
Oct 20 10:34:34 tristan authdaemond: password matches successfully
Oct 20 10:34:34 tristan authdaemond: authmysql: sysusername=<null>, sysuserid=5000, sysgroupid=5000, homedir=/var/spool/mail/, address=chucky@**********, fullname=<null>, maildir=web.tristan/tristan/, quota=<null>, options=<null>
Oct 20 10:34:34 tristan authdaemond: authmysql: clearpasswd=<null>, passwd=XTNblvh93peL.
Oct 20 10:34:34 tristan authdaemond: Authenticated: sysusername=<null>, sysuserid=5000, sysgroupid=5000, homedir=/var/spool/mail/, address=chucky@**********, fullname=<null>, maildir=web.tristan/tristan/, quota=<null>, options=<null>
Oct 20 10:34:34 tristan authdaemond: Authenticated: clearpasswd=**********, passwd=XTNblvh93peL.
Oct 20 10:34:34 tristan imapd: LOGIN, user=chucky@**********, ip=[::ffff:127.0.0.1], port=[57146], protocol=IMAP
Oct 20 10:34:34 tristan imapd: LOGOUT, user=chucky@**********, ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=10, sent=237, time=0
Oct 20 10:34:34 tristan postfix/pickup[7198]: A08E337A55: uid=33 from=<chucky@**********>
Oct 20 10:34:34 tristan postfix/cleanup[7290]: A08E337A55: message-id=<0dfb8b9d42b123d2981fe5f5a1a909f7@localhost>
Oct 20 10:34:34 tristan postfix/qmgr[7199]: A08E337A55: from=<chucky@**********>, size=483, nrcpt=1 (queue active)
Oct 20 10:34:34 tristan postfix/trivial-rewrite[7281]: warning: do not list domain web.tristan in BOTH mydestination and virtual_mailbox_domains
Oct 20 10:34:34 tristan postfix/local[7282]: A08E337A55: to=<chucky@**********>, relay=local, delay=0.28, delays=0.21/0.02/0/0.05, dsn=2.0.0, status=sent (delivered to mailbox)

Or dans la boite de réception de Roundcube, aucun message ! Si je vais dans /var/spool/mail/mon.domaine/{user}/new rien !
Je ne saisie pas du tout d'où provient se problème, je vous mets ma config de postfix (main.cf) :

Code:

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
disable_vrfy_command = yes
smtpd_helo_required = yes

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Pour faire simple, il est conseillé d'utiliser le reverse DNS de votre serveur.
myhostname = *******
myorigin = ********
mydestination = **********, localhost.localdomain, localhost
relayhost =
mynetworks = 127.0.0.0/8
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all

virtual_alias_maps = mysql:/etc/postfix/mysql-virtual_aliases.cf,mysql:/etc/postfix/mysql-virtual_aliases_comptes.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual_domaines.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual_comptes.cf
virtual_mailbox_base = /var/spool/mail/
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000

virtual_create_maildirsize = yes
virtual_mailbox_extended = yes
virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql-virtual_quotas.cf
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = "La boite mail de votre destinataire est pleine, merci de reessayez plus tard."
virtual_overquota_bounce = yes

Merci d'avance pour vos réponses et votre aide !

Cordialement,
Chucky2401

PS : je fais des test en local sous un VMWare.

Dernière modification par Chucky2401 (20/10/2012 10:46:56)

Hors ligne

 

20/10/2012 10:46:30

Botte De Foin Publicitaire


#2 20/10/2012 11:29:21

Chucky2401
Membre
Date d'inscription: 20/06/2011
Messages: 3

Re: Problème réception mail postfix/courier

J'ai trouvé la solution !
J'avais cette erreur dans les logs :
warning: do not list domain ****** in BOTH mydestination and virtual_mailbox_domains

J'ai modifier la ligne mydestination en enlevant mon domaine.
Et ça fonctionne !
Je vais pouvoir tenter de faire un relay_host avec gmail now !

Si quelqu'un peut me renseigner sur un relay_host, je suis preneur !

Cordialement,
Chucky

Hors ligne

 

Pied de page des forums

Powered by FluxBB
© Copyright 2008-2009 - LaFermeduWeb.net