Andesi - forum

Forum francophone pour Debian

Vous n'êtes pas identifié(e).

#1 08/02/2007 19:48:24

Ed
Membre
Inscription : 08/02/2007
Messages : 10

Pb de configuration serveur mail...

Bonsoir à tous,

Le titre de mon sujet n'est pas très original je l'avoue :S

Voilà, j'ai eu l'idée, il y a maintenant quelques jours, de me lancer dans la mise en place d'un serveur mail sur mon petit serveur perso (qui tourne sous Debian 3.1). L'installation du serveur web apache s'est tellement bien passée que je me suis dit qu'un serveur mail devrait se mettre en place tout aussi facilement...

J'ai donc commencé à me renseigner ici et là via google, et je trouve d'excellentes explications sur lesquelles je me base pour configurer mon propre serveur mail. J'utilise donc le combo Postfix/Courier-IMAP/SASL/Mysql pour pouvoir gérer plusieurs adresses email avec plusieurs domaines virtuels (à la façon d'apache avec les virtualhosts), mais le résultat est là, je n'arrive à rien !! sad

Je sollicite donc l'aide de spécialistes qui sauront m'éclaircir, car là, je crois que je peux le dire, je suis perdu !!

Voici le contenu des fichiers de config :

master.cf de postfix

# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       n       -       -       smtpd
#submission inet n      -       -       -       -       smtpd
#    -o smtpd_etrn_restrictions=reject
#628      inet  n       -       -       -       -       qmqpd
pickup    fifo  n       -       -       60      1       pickup
cleanup   unix  n       -       n       -       0       cleanup
qmgr      fifo  n       -       -       300     1       qmgr
#qmgr     fifo  n       -       -       300     1       oqmgr
rewrite   unix  -       -       n       -       -       trivial-rewrite
bounce    unix  -       -       -       -       0       bounce
defer     unix  -       -       -       -       0       bounce
trace     unix  -       -       -       -       0       bounce
verify    unix  -       -       -       -       1       verify
flush     unix  n       -       -       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
smtp      unix  -       -       -       -       -       smtp
relay     unix  -       -       -       -       -       smtp
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       -       -       -       showq
error     unix  -       -       -       -       -       error
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp
anvil     unix  -       -       n       -       1       anvil
#
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# maildrop. See the Postfix MAILDROP_README file for details.
#
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -d -t$nexthop -f$sender $recipient
scalemail-backend unix    -    n    n    -    2    pipe
  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
# only used by postfix-tls
#tlsmgr      fifo    -    -    n    300    1    tlsmgr
#smtps      inet    n    -    n    -    -    smtpd -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#587      inet    n    -    n    -    -    smtpd -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
amavis unix - - - - 2 smtp
    -o smtp_data_done_timeout=1200
    -o smtp_send_xforward_command=yes
127.0.0.1:10025 inet n - - - - smtpd
    -o content_filter=
    -o local_recipient_maps=
    -o relay_recipient_maps=
    -o smtpd_restriction_classes=
    -o smtpd_client_restrictions=
    -o smtpd_helo_restrictions=
    -o smtpd_sender_restrictions=
    -o smtpd_recipient_restrictions=permit_mynetworks,reject
    -o mynetworks=127.0.0.0/8
    -o strict_rfc821_envelopes=yes
    -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
    -o smtpd_bind_address=127.0.0.1
scache      unix    -    -    n    -    1    scache
discard      unix    -    -    n    -    -    discard
tlsmgr    unix  -       -       n       1000?   1       tlsmgr

main.cf de postfix

# Do not change these directory settings - they are critical to Postfix
# operation.
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
program_directory = /usr/lib/postfix
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Le nom resolvable de la machine
myhostname = samatan 
#alias_maps = hash:/etc/aliases
#alias_database = hash:/etc/aliases
#myorigin = /etc/mailname
myorigin = $mydomain
mydomain = mondomaine.fr
mydestination = localhost, localhost.localdomain
relayhost =
mynetworks = 127.0.0.0/8
inet_interface = all
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
# Voici nos fichiers pour indiquer d'utiliser MySQL
virtual_alias_maps = mysql:/usr/local/etc/postfix/mysql-virtual_alias_maps.cf
virtual_uid_maps = static:108
virtual_gid_maps = static:113
virtual_mailbox_base = /usr/local/virtual
virtual_mailbox_domains = mysql:/usr/local/etc/postfix/mysql-virtual_domains_maps.cf
virtual_mailbox_limit = 51200000
virtual_mailbox_maps = mysql:/usr/local/etc/postfix/mysql-virtual_mailbox_maps.cf
virtual_transport = virtual
# Additional for quota support
virtual_create_maildirsize = yes
virtual_mailbox_extended = yes
virtual_mailbox_limit_maps = mysql:/usr/local/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_mailbox_limit_message = "Desole, la boite de messagerie de l'utilisateur est pleine, reessayez plus tard."
virtual_overquota_bounce = yes
content_filter = amavis:[127.0.0.1]:10024
reveive_override_options = no_address_mappings
unknown_local_recipient_reject_code = 450

authmysqlrc de courier

#DEFAULT_DOMAIN    domain.tld
MYSQL_SERVER    127.0.0.1
MYSQL_USERNAME    postfix
MYSQL_PASSWORD    postfix
MYSQL_SOCKET    /var/run/mysqld/mysqld.sock
#MYSQL_PORT    0
MYSQL_OPT    0
MYSQL_DATABASE    postfix
MYSQL_USER_TABLE    mailbox
MYSQL_CRYPT_PWFIELD    password
#MYSQL_CLEAR_PWFIELD    password
MYSQL_UID_FIELD    '108'
MYSQL_GID_FIELD    '113'
MYSQL_LOGIN_FIELD    username
MYSQL_HOME_FIELD    '/usr/local/virtual'
MYSQL_MAILDIR_FIELD    maildir
MYSQL_NAME_FIELD    name
#MYSQL_QUOTA_FIELD    quota

Si vous avez besoin d'autres renseignements pour y voir plus clair dans tout ça... dite le moi.

L'adresse de mon site est http://www.mondomaine.fr et j'essai de monter un webmail sur https://mail.mondomaine.fr

Merci d'avance pour votre aide !

Dernière modification par Ed (06/06/2010 15:07:33)

Hors ligne

#2 08/02/2007 20:32:12

ioguix
Administrator
Lieu : Paris
Inscription : 25/04/2003
Messages : 3 945

Re : Pb de configuration serveur mail...

Salut,

Bon, je ne suis pas expert en mailing, mais quelques gaillard du coin le sont...en espèrant qu'ils passent bientôt wink

en attendant, joli site, félicitation !

et bienvenu aussi !

++


[email protected]
"Contrairement aux chasseurs qui, eux, ne sont pas des lapins, les pollueurs, eux sont des ordures. - Philippe Geluck, Le chat"
gpg: 0828C222

Hors ligne

#3 08/02/2007 20:33:00

oDn
Membre
Lieu : Cannes
Inscription : 09/01/2007
Messages : 56

Re : Pb de configuration serveur mail...

Salut Ed,

en effet vaste entreprise que de mettre en place tout ça d'un coup.
Pour ma part, j'ai eu énormément de problèmes à faire fonctionner SASL avec postfix. Pour l'instant, j'ai donc laissé ça de côté.

Je gère plusieurs serveurs mail fonctionnant sur une base de Postfix + Dovecot + MySQL avec un front-end bien sympa qui s'appelle tout bêtement PostfixAdmin (PHP + MySQL).

Ce que je peux te conseiller pour l'instant c'est de faire correctement fonctionner Postfix + Dovecot sans fioritures. Puis ensuite de rajouter la gestion des compte et domaines virtuels dans un deuxième temps.

Je te donnerai un lien vers un tutoriel relativement bien fait qui te permettra d'intégrer MySQL dans tout ça sans trop de soucis.

Bref, procède par étape.

Il serait aussi relativement intéressant d'avoir tes versions Postfix, Courier ou Dovecot (le daemon de ton choix en somme) et surtout de MySQL ...

Bon courage, j'essaierai de me pencher sur ton problème de plus prêt demain.

Hors ligne

#4 08/02/2007 20:53:40

Ed
Membre
Inscription : 08/02/2007
Messages : 10

Re : Pb de configuration serveur mail...

ioguix a écrit :

Salut,

Bon, je ne suis pas expert en mailing, mais quelques gaillard du coin le sont...en espèrant qu'ils passent bientôt wink

en attendant, joli site, félicitation !

et bienvenu aussi !

++

Merci !! smile

oDn a écrit :

Salut Ed,

en effet vaste entreprise que de mettre en place tout ça d'un coup.
Pour ma part, j'ai eu énormément de problèmes à faire fonctionner SASL avec postfix. Pour l'instant, j'ai donc laissé ça de côté.

Je gère plusieurs serveurs mail fonctionnant sur une base de Postfix + Dovecot + MySQL avec un front-end bien sympa qui s'appelle tout bêtement PostfixAdmin (PHP + MySQL).

Ce que je peux te conseiller pour l'instant c'est de faire correctement fonctionner Postfix + Dovecot sans fioritures. Puis ensuite de rajouter la gestion des compte et domaines virtuels dans un deuxième temps.

Je te donnerai un lien vers un tutoriel relativement bien fait qui te permettra d'intégrer MySQL dans tout ça sans trop de soucis.

Bref, procède par étape.

Il serait aussi relativement intéressant d'avoir tes versions Postfix, Courier ou Dovecot (le daemon de ton choix en somme) et surtout de MySQL ...

Bon courage, j'essaierai de me pencher sur ton problème de plus prêt demain.

J'ai surement vu trop grand c'est clair, je ne pensais pas qu'il y avait autant de programmes intervenants dans la mise en place d'un serveur mail yikes

Je vais déjà essayer de virer proprement ce que j'ai mis pour repartir sur de bonnes bases et je vais y aller petit à petit en commençant par postfix et dovecot ...

Sinon en ce qui concerne les versions des paquets :
- Postfix 2.3.7 compilé à partir des sources + VDA patch (je ne sais pas si le tout fonctionne correctement mais la compilation/installation s'est passée normalement)
- Courier 3.0.8 (installée via les dépôts officiels je crois)
- MySQL Server 5.0.32_dotdeb

Tant que j'y suis, quelles sont les différences entre Courier et Dovecot ? et Postfix et Exim ?

Merci encore pour ton aide oDn !! smile

Hors ligne

#5 08/02/2007 21:24:51

Ed
Membre
Inscription : 08/02/2007
Messages : 10

Re : Pb de configuration serveur mail...

Voilà, j'ai essayé de remettre Postfix 2.1.5 (des dépôts debian) avec Dovecot.

le contenu de /var/log/mail.log :

Feb  9 21:54:32 samatan localhost dovecot-auth: MySQL: Can't connect to database postfix: Can't connect to MySQL server on '127.0.0.1' (111)
Feb  9 21:54:45 samatan localhost postfix[11306]: fatal: /etc/postfix/postfix-script: No such file or directory
Feb  9 21:54:46 samatan localhost postfix[11335]: fatal: /etc/postfix/postfix-script: No such file or directory
Feb  9 21:58:24 samatan localhost postfix[11352]: fatal: /etc/postfix/postfix-script: No such file or directory
Feb  9 21:58:25 samatan localhost postfix[11381]: fatal: /etc/postfix/postfix-script: No such file or directory
Feb  9 22:00:15 samatan localhost imap-login: Disconnected [127.0.0.1]
Feb  9 22:00:31 samatan localhost imap-login: Aborted login [127.0.0.1]
Feb  9 22:01:02 samatan localhost dovecot-auth: MySQL: Can't connect to database postfix: Can't connect to MySQL server on '127.0.0.1' (111)
Feb  9 22:01:02 samatan localhost imap-login: Aborted login [127.0.0.1]
Feb  9 22:01:08 samatan localhost imap-login: Aborted login [127.0.0.1]

Dernière modification par Ed (09/02/2007 23:05:28)

Hors ligne

#6 14/02/2007 19:41:00

Ed
Membre
Inscription : 08/02/2007
Messages : 10

Re : Pb de configuration serveur mail...

Après un grand ménage, je suis revenu sur l'ensemble Postfix 2.1.5 + Courier avec MySQL en suivant ce tutoriel ...

#telnet localhost 25 fonctionne on dirait...

Par contre l'envoi de mail a tjs du mal à se faire j'ai l'impression ?

Feb 14 18:32:31 samatan postfix/master[4284]: warning: /usr/lib/postfix/virtual: bad command startup -- throttling
Feb 14 18:33:31 samatan postfix/virtual[4349]: fatal: mysql:/etc/postfix/mysql-virtual_mailboxes.cf: proxy map is not allowed for security sensitive data
Feb 14 18:33:32 samatan postfix/master[4284]: warning: process /usr/lib/postfix/virtual pid 4349 exit status 1
Feb 14 18:33:32 samatan postfix/master[4284]: warning: /usr/lib/postfix/virtual: bad command startup -- throttling
Feb 14 18:34:32 samatan postfix/virtual[4350]: fatal: mysql:/etc/postfix/mysql-virtual_mailboxes.cf: proxy map is not allowed for security sensitive data
Feb 14 18:34:33 samatan postfix/master[4284]: warning: process /usr/lib/postfix/virtual pid 4350 exit status 1
Feb 14 18:34:33 samatan postfix/master[4284]: warning: /usr/lib/postfix/virtual: bad command startup -- throttling
Feb 14 18:35:33 samatan postfix/virtual[4351]: fatal: mysql:/etc/postfix/mysql-virtual_mailboxes.cf: proxy map is not allowed for security sensitive data
Feb 14 18:35:34 samatan postfix/master[4284]: warning: process /usr/lib/postfix/virtual pid 4351 exit status 1
Feb 14 18:35:34 samatan postfix/master[4284]: warning: /usr/lib/postfix/virtual: bad command startup -- throttling

Dernière modification par Ed (14/02/2007 19:42:03)

Hors ligne

#7 14/02/2007 20:48:41

Ed
Membre
Inscription : 08/02/2007
Messages : 10

Re : Pb de configuration serveur mail...

Maintenant j'ai un problème de création de répertoires par user dans /var/spool/vmail :

Feb 14 19:47:02 samatan postfix/master[5056]: daemon started -- version 2.1.5
Feb 14 19:47:09 samatan postfix/smtpd[5062]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Feb 14 19:47:09 samatan postfix/smtpd[5062]: connect from localhost.localdomain[127.0.0.1]
Feb 14 19:47:29 samatan postfix/smtpd[5062]: 25963E40DE: client=localhost.localdomain[127.0.0.1]
Feb 14 19:47:37 samatan postfix/cleanup[5065]: 25963E40DE: message-id=<[email protected]>
Feb 14 19:47:37 samatan postfix/qmgr[5060]: 25963E40DE: from=<[email protected]>, size=377, nrcpt=1 (queue active)
Feb 14 19:47:37 samatan postfix/virtual[5066]: 25963E40DE: to=<[email protected]>, relay=virtual, delay=18, status=deferred (maildir delivery failed: create /var/spool/vmail/mondomaine.fr/ed/tmp/1171478857.P5066.samatan.localdomain: Permission denied)
Feb 14 19:47:37 samatan postfix/virtual[5066]: warning: maildir access problem for UID/GID=5000/5000: create /var/spool/vmail/mondomaine.fr/ed/tmp/1171478857.P5066.samatan.localdomain: Permission denied
Feb 14 19:47:37 samatan postfix/virtual[5066]: warning: perhaps you need to create the maildirs in advance
Feb 14 19:47:39 samatan postfix/smtpd[5062]: disconnect from localhost.localdomain[127.0.0.1]

Comment y remédier ?

Dernière modification par Ed (06/06/2010 15:09:44)

Hors ligne

#8 05/03/2007 20:34:27

Ed
Membre
Inscription : 08/02/2007
Messages : 10

Re : Pb de configuration serveur mail...

Bonsoir,

Je reviens à la charge avec du nouveau (en espérant avoir une réponse... on sait jamais...) :

Mar  4 10:35:27 samatan postfix/smtpd[3851]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Mar  4 10:35:27 samatan postfix/smtpd[3851]: connect from unknown[222.122.12.123]
Mar  4 10:35:28 samatan postfix/smtpd[3851]: lost connection after CONNECT from unknown[222.122.12.123]
Mar  4 10:35:28 samatan postfix/smtpd[3851]: disconnect from unknown[222.122.12.123]
Mar  4 10:38:48 samatan postfix/anvil[3853]: statistics: max connection rate 1/60s for (smtp:222.122.12.123) at Mar  4 10:35:27
Mar  4 10:38:48 samatan postfix/anvil[3853]: statistics: max connection count 1 for (smtp:222.122.12.123) at Mar  4 10:35:27
Mar  4 10:38:48 samatan postfix/anvil[3853]: statistics: max cache size 1 at Mar  4 10:35:27
Mar  4 10:45:30 samatan postfix/smtpd[3862]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Mar  4 10:45:30 samatan postfix/smtpd[3862]: connect from unknown[222.122.12.123]
Mar  4 10:45:31 samatan postfix/smtpd[3862]: warning: Illegal address syntax from unknown[222.122.12.123] in MAIL command: <[email protected]>
Mar  4 10:45:31 samatan postfix/smtpd[3862]: lost connection after MAIL from unknown[222.122.12.123]
Mar  4 10:45:31 samatan postfix/smtpd[3862]: disconnect from unknown[222.122.12.123]
Mar  4 10:48:51 samatan postfix/anvil[3864]: statistics: max connection rate 1/60s for (smtp:222.122.12.123) at Mar  4 10:45:30
Mar  4 10:48:51 samatan postfix/anvil[3864]: statistics: max connection count 1 for (smtp:222.122.12.123) at Mar  4 10:45:30
Mar  4 10:48:51 samatan postfix/anvil[3864]: statistics: max cache size 1 at Mar  4 10:45:30
Mar  4 11:03:32 samatan postfix/smtpd[3868]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Mar  4 11:03:32 samatan postfix/smtpd[3868]: connect from unknown[222.122.12.123]
Mar  4 11:03:33 samatan postfix/smtpd[3868]: lost connection after CONNECT from unknown[222.122.12.123]
Mar  4 11:03:33 samatan postfix/smtpd[3868]: disconnect from unknown[222.122.12.123]
Mar  4 11:06:46 samatan postfix/smtpd[3871]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Mar  4 11:06:46 samatan postfix/smtpd[3871]: connect from unknown[222.122.12.123]
Mar  4 11:06:47 samatan postfix/smtpd[3871]: warning: Illegal address syntax from unknown[222.122.12.123] in MAIL command: <[email protected]>
Mar  4 11:06:47 samatan postfix/smtpd[3871]: lost connection after MAIL from unknown[222.122.12.123]
Mar  4 11:06:47 samatan postfix/smtpd[3871]: disconnect from unknown[222.122.12.123]
Mar  4 11:10:07 samatan postfix/anvil[3870]: statistics: max connection rate 1/60s for (smtp:222.122.12.123) at Mar  4 11:03:32
Mar  4 11:10:07 samatan postfix/anvil[3870]: statistics: max connection count 1 for (smtp:222.122.12.123) at Mar  4 11:03:32
Mar  4 11:10:07 samatan postfix/anvil[3870]: statistics: max cache size 1 at Mar  4 11:03:32
Mar  4 18:59:34 samatan courierpop3login: Connection, ip=[::ffff:218.189.93.211]
Mar  4 23:59:03 samatan postfix/smtpd[4195]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Mar  4 23:59:03 samatan postfix/smtpd[4195]: connect from 97.57.85.218.broad.fz.fj.dynamic.163data.com.cn[218.85.57.97]
Mar  4 23:59:07 samatan postfix/smtpd[4198]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Mar  4 23:59:07 samatan postfix/smtpd[4198]: connect from 97.57.85.218.broad.fz.fj.dynamic.163data.com.cn[218.85.57.97]
Mar  4 23:59:10 samatan postfix/smtpd[4198]: warning: non-SMTP command from 97.57.85.218.broad.fz.fj.dynamic.163data.com.cn[218.85.57.97]: Subject:?erelay ok?f82.232.94.xxx
Mar  4 23:59:10 samatan postfix/smtpd[4198]: disconnect from 97.57.85.218.broad.fz.fj.dynamic.163data.com.cn[218.85.57.97]
Mar  5 00:00:00 samatan dccifd[1794]: 1.2.74 rejected messages to 0 targets and discarded messages to 0 targets among 0 total since 03/04/07 00:00:00
Mar  5 00:04:03 samatan postfix/smtpd[4195]: timeout after CONNECT from 97.57.85.218.broad.fz.fj.dynamic.163data.com.cn[218.85.57.97]
Mar  5 00:04:03 samatan postfix/smtpd[4195]: disconnect from 97.57.85.218.broad.fz.fj.dynamic.163data.com.cn[218.85.57.97]
Mar  5 00:07:23 samatan postfix/anvil[4197]: statistics: max connection rate 2/60s for (smtp:218.85.57.97) at Mar  4 23:59:07
Mar  5 00:07:23 samatan postfix/anvil[4197]: statistics: max connection count 2 for (smtp:218.85.57.97) at Mar  4 23:59:07
Mar  5 00:07:23 samatan postfix/anvil[4197]: statistics: max cache size 1 at Mar  4 23:59:03
Mar  5 08:57:08 samatan postfix/smtpd[4490]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Mar  5 08:57:08 samatan postfix/smtpd[4490]: connect from unknown[222.122.12.123]
Mar  5 08:57:08 samatan postfix/smtpd[4490]: lost connection after CONNECT from unknown[222.122.12.123]
Mar  5 08:57:08 samatan postfix/smtpd[4490]: disconnect from unknown[222.122.12.123]
Mar  5 09:00:28 samatan postfix/anvil[4492]: statistics: max connection rate 1/60s for (smtp:222.122.12.123) at Mar  5 08:57:08
Mar  5 09:00:28 samatan postfix/anvil[4492]: statistics: max connection count 1 for (smtp:222.122.12.123) at Mar  5 08:57:08
Mar  5 09:00:28 samatan postfix/anvil[4492]: statistics: max cache size 1 at Mar  5 08:57:08
Mar  5 09:03:59 samatan postfix/smtpd[4493]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Mar  5 09:03:59 samatan postfix/smtpd[4493]: connect from unknown[222.122.12.123]
Mar  5 09:04:00 samatan postfix/smtpd[4493]: warning: Illegal address syntax from unknown[222.122.12.123] in MAIL command: <[email protected]>
Mar  5 09:04:00 samatan postfix/smtpd[4493]: lost connection after MAIL from unknown[222.122.12.123]
Mar  5 09:04:00 samatan postfix/smtpd[4493]: disconnect from unknown[222.122.12.123]
Mar  5 09:07:20 samatan postfix/anvil[4495]: statistics: max connection rate 1/60s for (smtp:222.122.12.123) at Mar  5 09:03:59
Mar  5 09:07:20 samatan postfix/anvil[4495]: statistics: max connection count 1 for (smtp:222.122.12.123) at Mar  5 09:03:59
Mar  5 09:07:20 samatan postfix/anvil[4495]: statistics: max cache size 1 at Mar  5 09:03:59
Mar  5 12:08:30 samatan courierpop3login: Connection, ip=[::ffff:84.87.205.197]
Mar  5 12:42:45 samatan postfix/smtpd[4584]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Mar  5 12:42:45 samatan postfix/smtpd[4584]: connect from 22.5f.5446.static.theplanet.com[70.84.95.34]
Mar  5 12:42:46 samatan postfix/smtpd[4584]: warning: unknown smtpd restriction: "#verifie"
Mar  5 12:42:46 samatan postfix/smtpd[4584]: NOQUEUE: reject: RCPT from 22.5f.5446.static.theplanet.com[70.84.95.34]: 451 4.3.5 Server configuration error; from=<[email protected]> to=<[email protected]> proto=SMTP helo=<localhost.localdomain>
Mar  5 12:42:46 samatan postfix/smtpd[4584]: lost connection after RCPT from 22.5f.5446.static.theplanet.com[70.84.95.34]
Mar  5 12:42:46 samatan postfix/cleanup[4588]: C2998E40E0: message-id=<[email protected]>
Mar  5 12:42:46 samatan postfix/qmgr[2029]: C2998E40E0: from=<[email protected]>, size=742, nrcpt=1 (queue active)
Mar  5 12:42:46 samatan postfix/smtpd[4584]: disconnect from 22.5f.5446.static.theplanet.com[70.84.95.34]
Mar  5 12:42:46 samatan postfix/local[4589]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Mar  5 12:42:46 samatan postfix/local[4589]: C2998E40E0: to=<[email protected]>, orig_to=<postmaster>, relay=local, delay=0.03, delays=0.02/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
Mar  5 12:42:46 samatan postfix/qmgr[2029]: C2998E40E0: removed
Mar  5 12:46:06 samatan postfix/anvil[4586]: statistics: max connection rate 1/60s for (smtp:70.84.95.34) at Mar  5 12:42:45
Mar  5 12:46:06 samatan postfix/anvil[4586]: statistics: max connection count 1 for (smtp:70.84.95.34) at Mar  5 12:42:45
Mar  5 12:46:06 samatan postfix/anvil[4586]: statistics: max cache size 1 at Mar  5 12:42:45

Je précise que l'envoi de mail fonctionne parfaitement mais pour la réception c'est une toute autre histoire ...

Mon nom de domaine est géré par 1and1, et dans les paramètres DNS de mon domaine j'ai :

Résultat du contrôle DNS
Nom du domaine     mondomaine.fr
Adresse IP (A-record)     82.xxx.94.xxx
Serveur de noms 1     ns12.1and1.fr
Serveur de noms 2     ns11.1and1.fr
Serveur email 1     samatan.mondomaine.fr, 1

Merci d'avance pour votre aide.

Dernière modification par Ed (06/06/2010 15:10:45)

Hors ligne

#9 06/03/2007 09:32:41

mathieu9512
Membre
Inscription : 27/01/2006
Messages : 263

Re : Pb de configuration serveur mail...

au sujet de ton code si dessus, est ce que tu as modifié tes adresses e-mail sinon tu va te faire spammer

quand on regarde les 2 dernière lignes là, ça signifie que postfix a bien reçu l'e-mail et a bien fait son travail :

Mar  5 12:42:46 samatan postfix/local[4589]: C2998E40E0: to=<[email protected]>, orig_to=<postmaster>, relay=local, delay=0.03, delays=0.02/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
Mar  5 12:42:46 samatan postfix/qmgr[2029]: C2998E40E0: removed

maintenant la question est de savoir où a été mis le message, il doit se trouver quelque part sur le disque mais peut-être pas chez le bon utilisateur

Hors ligne

#10 06/03/2007 21:59:17

Ed
Membre
Inscription : 08/02/2007
Messages : 10

Re : Pb de configuration serveur mail...

C'est bon tout a l'air de fonctionner (envoi et réception ok)

J'avais un commentaire en plein milieu du main.cf de postfix (j'ai abusé du copier/coller...) hmm

Il faut maintenant que je trouve le moyen d'intégrer un antivirus (clamav peut etre?) et un antispam dans la config de postfix... mais c'est une autre histoire...

En tout cas merci quand même mathieu (au moins pour avoir répondu) smile

Hors ligne

Pied de page des forums