DEDIBOX-NEWS.COM

Le Forum Non Officiel de la DEDIBOX

Vous n'êtes pas identifié.

#1 2008-04-17 21:30:50

hawk88
Jeidi
Date d'inscription: 2007-06-30
Messages: 176
Site web

Postfix / mysql / pop

Bonsoir,

j'aurais besoin d'un peu d'aide car la je deviens fou. Sur ma nouvelle dedi V2, j'ai donc tout installer a la main ( j'avais plesk avant smile )

Ma configuration est un serveur mail domaines enregistrés dans une BDD, pour le moment je test sur un seul mail

Je bloque sur la configuration de postfix (au départ je me suis aider du tuto, mais il est incomplet), j'ai réussi a des moments a avoir des choses, mais j'ai tester tellement de choses.



Pour résumer

mes mails sont dans /var/www/mail
j'arrive a envoyer un mail a partir de la fonction mail() (formulaire + php ) ca m'envoie bien dans /var/www/mail/NomMail/new/Numéro tt bizzare
mais le mail est dedans
Ensuite, avec thunderbird quand je mets recevoir mes messages pour pop,le mot de passe est bon sauf qu'il renvoie rien, je ne peux pas envoyer un mail vers l'adresse que je test, alors qu'a midi j'arrivais a envoyer un mail sur mon serveur maintenant j'ai une erreur du type


Apr 17 21:10:23 Dedibox2 courierpop3login: Connection, ip=[::ffff:XX.XX.XX.XX
Apr 17 21:10:23 Dedibox2 courierpop3login: chdir Maildir: No such file or directory
Apr 17 21:11:01 Dedibox2 postfix/smtpd[7264]: connect from smtp5-g19.free.fr[212.27.42.35]
Apr 17 21:11:01 Dedibox2 postfix/smtpd[7264]: warning: connect to mysql server localhost: Can't connect to local MySQL server through socket '/var$
Apr 17 21:11:01 Dedibox2 postfix/smtpd[7264]: NOQUEUE: reject: RCPT from smtp5-g19.free.fr[212.27.42.35]: 451 4.3.0 <mto@m-to.fr>: Temporary looku$
Apr 17 21:11:01 Dedibox2 postfix/cleanup[7268]: BC26A458B1F: message-id=<20080417191101.BC26A458B1F@mail.m-to.fr>
Apr 17 21:11:01 Dedibox2 postfix/qmgr[7257]: BC26A458B1F: from=<double-bounce@mail.m-to.fr>, size=932, nrcpt=1 (queue active)
Apr 17 21:11:01 Dedibox2 postfix/smtpd[7264]: disconnect from smtp5-g19.free.fr[212.27.42.35]
Apr 17 21:11:01 Dedibox2 postfix/smtp[7269]: BC26A458B1F: to=<postmaster@mail.m-to.fr>, orig_to=<postmaster>, relay=none, delay=0.05, delays=0.03/$
Apr 17 21:11:01 Dedibox2 postfix/bounce[7270]: warning: BC26A458B1F: undeliverable postmaster notification discarded
Apr 17 21:11:01 Dedibox2 postfix/qmgr[7257]: BC26A458B1F: removed

Deux soucis au niveau du message, soucis avec le maildir et avec la connection au serveur.

Au niveau de mes fichiers de config

/etc/courier/authmysqlrc


##NAME: LOCATION:0
#
# The server name, userid, and password used to log in.

MYSQL_SERVER            localhost
MYSQL_USERNAME          postfix
MYSQL_PASSWORD          XXXX

##NAME: MYSQL_SOCKET:0
#
# MYSQL_SOCKET can be used with MySQL version 3.22 or later, it specifies the
# filesystem pipe used for the connection
#
MYSQL_SOCKET           /var/run/mysqld/mysqld.sock

##NAME: MYSQL_PORT:0
#
# MYSQL_PORT can be used with MySQL version 3.22 or later to specify a port to
# connect to.

MYSQL_PORT              0

##NAME: MYSQL_OPT:0
#
# Leave MYSQL_OPT as 0, unless you know what you're doing.

MYSQL_OPT               0

##NAME: MYSQL_DATABASE:0
#
# The name of the MySQL database we will open:

MYSQL_DATABASE          postfix

# The name of the table containing your user data.  See README.authmysqlrc
# for the required fields in this table.

MYSQL_USER_TABLE        mailbox

##NAME: MYSQL_CRYPT_PWFIELD:0
#
# Either MYSQL_CRYPT_PWFIELD or MYSQL_CLEAR_PWFIELD must be defined.  Both
# are OK too. crypted passwords go into MYSQL_CRYPT_PWFIELD, cleartext
# passwords go into MYSQL_CLEAR_PWFIELD.  Cleartext passwords allow
# CRAM-MD5 authentication to be implemented.

MYSQL_CRYPT_PWFIELD     password

##NAME: MYSQL_CLEAR_PWFIELD:0
#
#
# MYSQL_CLEAR_PWFIELD   password

##NAME: MYSQL_DEFAULT_DOMAIN:0
#
# If DEFAULT_DOMAIN is defined, and someone tries to log in as 'user',
# we will look up 'user@DEFAULT_DOMAIN' instead.
#
#
# DEFAULT_DOMAIN                example.com

##NAME: MYSQL_UID_FIELD:0
#
# Other fields in the mysql table:
#
# MYSQL_UID_FIELD - contains the numerical userid of the account
#
MYSQL_UID_FIELD         '5000'

##NAME: MYSQL_GID_FIELD:0
#
# Numerical groupid of the account

MYSQL_GID_FIELD         '5000'

##NAME: MYSQL_LOGIN_FIELD:0
#
# The login id, default is id.  Basically the query is:
#
#  SELECT MYSQL_UID_FIELD, MYSQL_GID_FIELD, ... WHERE id='loginid'
#

MYSQL_LOGIN_FIELD       username

##NAME: MYSQL_HOME_FIELD:0
#

MYSQL_HOME_FIELD          '/var/www/mail/'

##NAME: MYSQL_NAME_FIELD:0
#
# The user's name (optional)

MYSQL_NAME_FIELD        name


/etc/courier/authdaemonrc



##NAME: authmodulelist:2
#
# The authentication modules that are linked into authdaemond.  The
# default list is installed.  You may selectively disable modules simply
# by removing them from the following list.  The available modules you
# can use are: authuserdb authpam authpgsql authldap authmysql authcustom authpipe

#authmodulelist="authpam authmysql"
authmodulelist="authmysql"
##NAME: authmodulelistorig:3
#
# This setting is used by Courier's webadmin module, and should be left
# alone

authmodulelistorig="authuserdb authpam authpgsql authldap authmysql authcustom authpipe"

config postfix

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

append_dot_mydomain = no

myhostname = mail.m-to.fr
mydomain = m-to.fr
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = myhostname , mydomain , localhost.localdomain , localhost
relayhost =
mynetworks = 127.0.0.1/32
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all

virtual_alias_maps = mysql:alias_maps
virtual_uid_maps = static:101
virtual_gid_maps = static:104
virtual_mailbox_base = /var/www/mail/
virtual_mailbox_domains = mysql:domains_maps
virtual_mailbox_limit = 204800000
virtual_mailbox_maps = mysql:mailbox_maps
virtual_minimum_uid = 100
virtual_transport = virtual

# Additional for quota support
virtual_create_maildirsize = yes
virtual_mailbox_extended = yes
virtual_mailbox_limit_maps = mysql:mailbox_limit_maps
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = Sorry, the user's maildir has overdrawn his diskspace quota, please try again later.
virtual_overquota_bounce = yes

# [mysql infos]
mysql_user   = postfix
mysql_passwd = XXXX
mysql_host   = localhost
mysql_dbname = postfix

# [mysql_relay_domains_maps]

relay_domains_maps_user = $mysql_user
relay_domains_maps_password = $mysql_passwd
relay_domains_maps_hosts = $mysql_host
relay_domains_maps_dbname = $mysql_dbname
relay_domains_maps_table = domain
relay_domains_maps_select_field = domain
relay_domains_maps_where_field = domain

# [mysql_virtual_alias_maps]

alias_maps_user = $mysql_user
alias_maps_password = $mysql_passwd
alias_maps_hosts = $mysql_host
alias_maps_dbname = $mysql_dbname
alias_maps_table = alias

# [mysql_virtual_domains_maps]

domains_maps_user = $mysql_user
domains_maps_password = $mysql_passwd
domains_maps_hosts = $mysql_host
domains_maps_dbname = $mysql_dbname
domains_maps_table = domain
domains_maps_select_field = description
domains_maps_where_field = domain

# [mysql_virtual_mailbox_limit_maps]

mailbox_limit_maps_user = $mysql_user
mailbox_limit_maps_password = $mysql_passwd
mailbox_limit_maps_hosts = $mysql_host
mailbox_limit_maps_dbname = $mysql_dbname
mailbox_limit_maps_table = mailbox
mailbox_limit_maps_select_field = quota
mailbox_limit_maps_where_field = username

# [mysql_virtual_mailbox_maps]

mailbox_maps_user = $mysql_user
mailbox_maps_password = $mysql_passwd
mailbox_maps_hosts = $mysql_host
mailbox_maps_dbname = $mysql_dbname
mailbox_maps_table = mailbox
mailbox_maps_select_field = maildir
mailbox_maps_where_field = username

J'ai un peu tester toutes les configurations et j'ai un peu de mal mais si quelqu'un aurait un coup de pouce smile

Merci Bonne soirée

Hors ligne

 

#2 2008-04-18 14:15:32

hawk88
Jeidi
Date d'inscription: 2007-06-30
Messages: 176
Site web

Re: Postfix / mysql / pop

Bonjour,

Bon j'ai résolu tout mes soucis.. ou presque

je peux envoyer un mail a partir d'outlook, c'est enregistrer dans /var/www/mail/adresse/new
je peux me connecter avec outlook au compte, pas de soucis de connection, dans les logs ok pas d'erreur
sauf qu'il ne me récupere pas les mails sad et ca n'affiche pas d'erreur

une idée smile

Dernière modification par hawk88 (2008-04-18 14:27:25)

Hors ligne

 

#3 2008-04-18 14:30:01

hawk88
Jeidi
Date d'inscription: 2007-06-30
Messages: 176
Site web

Re: Postfix / mysql / pop

oups erreur

Dernière modification par hawk88 (2008-04-18 14:30:18)

Hors ligne

 

#4 2008-04-20 03:49:35

hawk88
Jeidi
Date d'inscription: 2007-06-30
Messages: 176
Site web

Re: Postfix / mysql / pop

Personne a une idée ?

Je me demande si ca pourrait pas venir des droits mais bon j'ai pas compris cette partie sad

Hors ligne

 

#5 2008-04-20 20:45:53

hawk88
Jeidi
Date d'inscription: 2007-06-30
Messages: 176
Site web

Re: Postfix / mysql / pop

Personne n'a installer de serveur mail ? sad

Car j'ai regarder dans les logs mais rien du tout, il se connecte puis se déconnecte, jamais il ne récupere les mails donc je sais plus trop quoi faire.

Je sais plus quoi faire car j'ai l'impression d'etre jsute a coté, car je peu envoyer des mails, par telnet ca marche, j'arrive a me connecter avec thunderbird mais pas a récupérer sad

Merci si il y a une ame charitable

Hors ligne

 

#6 2008-04-22 11:49:23

hawk88
Jeidi
Date d'inscription: 2007-06-30
Messages: 176
Site web

Re: Postfix / mysql / pop

Bonjour

J'ai fait qqch de spécial pour que personne ne veuille répondre ?

Car j'ai vu sur un forum une personne qui avait le même soucis et apparament ca solution "il avait mis récupérer les mails au format maildir alors qu'il fallait mettre pop" mais je vois pas trop ce que ca veut dire.

Merci

Hors ligne

 

#7 2008-04-24 21:58:09

hawk88
Jeidi
Date d'inscription: 2007-06-30
Messages: 176
Site web

Re: Postfix / mysql / pop

Bonsoir,

je reviens encore

je viens de tester en telnet pour la connection pop

Code:

telnet localhost pop3
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK Hello there.
user XXX
+OK Password required.
thciensa
-ERR Invalid command.
pass XXX
+OK logged in.
list
+OK POP3 clients that break here, they violate STD53.
.

si je fais

Code:

mutt -f .

a la racine de l'utilistateur mail ca me les affiche bien correctement

Code:

find
.
./cur
./mail
./new
./new/1208873443.V802I4fc210M625364.Dedibox2
./new/1208873443.V802I4fc20fM614634.Dedibox2
./new/1208872443.V802I4fc20eM901997.Dedibox2
./tmp
./1208872443.V802I4fc20eM901997.Dedibox2

mais il ne fait pas la list des mails et pourtant ils sont bien présent dans /var/www/mail/Utilisateur/NEW

chose bizarre aussi, je n'arrive pas a mettre le dossier des mails avec l'utilistaur  vmail

Code:

drwxr-xr-x 5 root root 4096 2008-04-16 14:13 ..
drwxrwxrwx 5 root root 4096 2008-04-24 22:16 mto@m-to.fr

malgré

Code:

groupadd -g 5000 vmail
useradd -g vmail -u 5000 vmail -d /var/www/mail/mto@m-to.fr

personne a pas une petite idée car la ca fait depuis 1 semaine que je galère sad

Dernière modification par hawk88 (2008-04-24 22:37:39)

Hors ligne

 

#8 2008-04-24 22:58:13

hawk88
Jeidi
Date d'inscription: 2007-06-30
Messages: 176
Site web

Re: Postfix / mysql / pop

Bon ba en faite j'ai réusii big_smilebig_smilebig_smilebig_smile

http://ladiesroom.fr/wp-content/uploads/2007/09/chauve.single_width_240.jpg

bon par contre j'ai plus de cheveux

Hors ligne

 

Pied de page des forums

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson