Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 02/12/2006, à 18:40

newsm

erreur telnet

bonjour,

apres des péripécies (et beaucoups de bêtises de ma part pour rester poli) j'ai retappé toutes les lignes de commandes demander lors de la création de mon serveur de mail dans ma dedibox sous ubuntu, mais a la fin de mes paramétrages, lorsque je fais "telnet localhost 25", j'ai ce message d'erreur:

[telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
Connection closed by foreign host.]

je m'y suis pourtant repris plusieur fois pour tout retaper, et j'ai bien fais attention a ne pas faire de fautes de frappes.

j'ai regardé dans mon fichier main.conf, mais au vu du livre je ne vois pas d'erreur.

[# See /usr/share/postfix/main.cf.dist for a commented, more complete version

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

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

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

myhostname = week-endfrance.fr
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = localhost.localdomain, localhost.localdomain, localhost, week-endfrance.fr
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
myorigin = /etc/mailname
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous, noplaintext, noactive
broken_sasl_auth_clients = yes
smtp_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtpd_use_tls = yes
smtpd_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination ]


pour ce qui est du fichier master, je ne comprend pas plus, mais là je n'ai rien pour verifier si il est intégre.

[#
# Postfix master process configuration file.  For details on the format
# of the file, see the Postfix master(5) manual page.
#
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       -       -       -       smtpd
#submission inet n      -       -       -       -       smtpd
#    -o smtpd_etrn_restrictions=reject
#    -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#smtps    inet  n       -       -       -       -       smtpd
#  -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission inet n      -       -       -       -       smtpd
#  -o smtpd_etrn_restrictions=reject
#  -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
#628      inet  n       -       -       -       -       qmqpd
pickup    fifo  n       -       -       60      1       pickup
cleanup   unix  n       -       -       -       0       cleanup
qmgr      fifo  n       -       -       300     1       qmgr
#qmgr     fifo  n       -       -       300     1       oqmgr
tlsmgr    unix  -       -       -       1000?   1       tlsmgr
rewrite   unix  -       -       -       -       -       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
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay     unix  -       -       -       -       -       smtp
    -o fallback_relay=
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       -       -       -       showq
error     unix  -       -       -       -       -       error
discard   unix  -       -       -       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       -       -       -       lmtp
anvil     unix  -       -       -       -       1       anvil
scache      unix    -    -    -    -    1    scache
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent.  See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
#
# See the Postfix UUCP_README file for configuration details.
#
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
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 -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}
mailman   unix  -       -       n       -       -       pipe
  flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
  ${nexthop} ${user} ]


si quelqu'un pouvais me dire le probleme d'erreur, en sachant par contre que je n'ai pas reparamétré le serveur apache ni ftp sur ma dedibox, j'attend un collegue qui s'y connait mieux pour cela et il va me faire voir, mais cela a-t-il un impact ??

merci de vos sugestions et remarques

Hors ligne

#2 Le 02/12/2006, à 21:20

Uggy

Re : erreur telnet

Il semble que cela soit la suite de http://forum.ubuntu-fr.org/viewtopic.php?id=79780

Je me permet donc de te rappeler ceci:

Uggy a écrit :

Apres si tu veux de l'aide, mets a chaque modif:
- le resultat d'un "postconf -n"
- Les logs relatifs aux test (pas tous les logs)

Hors ligne

#3 Le 02/12/2006, à 21:56

newsm

Re : erreur telnet

bonsoir, non ce n'est pas la suite, car j'ai tout reinstallé et retapé, de plus ce n'est pas la même erreur.

ok pour le postfix -n j'ai enfin compris en lisant un autre post (d'aileur c'est toi qui a répondu smile ) mais comment on fait pour les logs ? (j'ai une idée mais pas sur, alors je met ça)

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
inet_interfaces = all
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination = localhost.localdomain, localhost.localdomain, localhost, week-endfrance.fr
myhostname = week-endfrance.fr
mynetworks = 127.0.0.0/8
myorigin = /etc/mailname
recipient_delimiter = +
relayhost =
smtp_use_tls = yes
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous, noplaintext, noactive
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom


pour les logs, j'espere que c'est bien ce que tu me demande.


-bash: alias_maps: command not found
append_dot_mydomain = no
root@sd-6873:~# append_dot_mydomain = no
-bash: append_dot_mydomain: command not found
root@sd-6873:~# biff = no
-bash: biff: command not found
root@sd-6873:~# broken_sasl_auth_clients = yes
-bash: broken_sasl_auth_clients: command not found
root@sd-6873:~# config_directory = /etc/postfix
inet_interfaces = all
-bash: config_directory: command not found
root@sd-6873:~# inet_interfaces = all
-bash: inet_interfaces: command not found
root@sd-6873:~# mailbox_command = procmail -a "$EXTENSION"
-bash: mailbox_command: command not found
root@sd-6873:~# mailbox_size_limit = 0
-bash: mailbox_size_limit: command not found
root@sd-6873:~# mydestination = localhost.localdomain, localhost.localdomain, lo                                             calhost, week-endfrance.fr
-bash: mydestination: command not found
root@sd-6873:~# myhostname = week-endfrance.fr
-bash: myhostname: command not found
root@sd-6873:~# mynetworks = 127.0.0.0/8
-bash: mynetworks: command not found
root@sd-6873:~# myorigin = /etc/mailname
recipient_delimiter = +
relayhost =
-bash: myorigin: command not found
root@sd-6873:~# recipient_delimiter = +
-bash: recipient_delimiter: command not found
root@sd-6873:~# relayhost =
-bash: relayhost: command not found
root@sd-6873:~# smtp_use_tls = yes
-bash: smtp_use_tls: command not found
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
root@sd-6873:~# smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_sasl_auth_enable = yes
-bash: syntax error near unexpected token `('
root@sd-6873:~# smtpd_recipient_restrictions = permit_sasl_authenticated,permit_                                             mynetworks,reject_unauth_destination
-bash: smtpd_recipient_restrictions: command not found
root@sd-6873:~# smtpd_sasl_auth_enable = yes
-bash: smtpd_sasl_auth_enable: command not found
root@sd-6873:~# smtpd_sasl_local_domain =
-bash: smtpd_sasl_local_domain: command not found
root@sd-6873:~# smtpd_sasl_security_options = noanonymous, noplaintext, noactive
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
-bash: smtpd_sasl_security_options: command not found
root@sd-6873:~# smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
-bash: smtpd_tls_CAfile: command not found
root@sd-6873:~# smtpd_tls_auth_only = no
-bash: smtpd_tls_auth_only: command not found
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
root@sd-6873:~# smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_loglevel = 1
-bash: smtpd_tls_cert_file: command not found
root@sd-6873:~# smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_session_cache_timeout = 3600s
-bash: smtpd_tls_key_file: command not found
root@sd-6873:~# smtpd_tls_loglevel = 1
-bash: smtpd_tls_loglevel: command not found
tls_random_source = dev:/dev/urandom
root@sd-6873:~# smtpd_tls_received_header = yes
-bash: smtpd_tls_received_header: command not found
root@sd-6873:~# smtpd_tls_session_cache_timeout = 3600s
-bash: smtpd_tls_session_cache_timeout: command not found
root@sd-6873:~# smtpd_use_tls = yes
-bash: smtpd_use_tls: command not found
root@sd-6873:~# tls_random_source = dev:/dev/urandom
-bash: tls_random_source: command not found
root@sd-6873:~# tail -f /var/log/mail.log
Dec  2 20:50:03 sd-6873 postfix/pickup[16190]: C4C13AA41E7: uid=123 from=<munin>
Dec  2 20:50:03 sd-6873 postfix/cleanup[18398]: C4C13AA41E7: message-id=<2006120                                             2195003.C4C13AA41E7@week-endfrance.fr>
Dec  2 20:50:03 sd-6873 postfix/qmgr[7855]: C4C13AA41E7: from=<munin@week-endfra                                             nce.fr>, size=29227, nrcpt=1 (queue active)
Dec  2 20:50:03 sd-6873 postfix/local[18400]: C4C13AA41E7: to=<gingko@week-endfr                                             ance.fr>, orig_to=<root>, relay=local, delay=0, status=sent (delivered to comman                                             d: procmail -a "$EXTENSION")
Dec  2 20:50:03 sd-6873 postfix/qmgr[7855]: C4C13AA41E7: removed
Dec  2 20:55:03 sd-6873 postfix/pickup[16190]: BF9FCAA41E7: uid=123 from=<munin>
Dec  2 20:55:03 sd-6873 postfix/cleanup[18646]: BF9FCAA41E7: message-id=<2006120                                             2195503.BF9FCAA41E7@week-endfrance.fr>
Dec  2 20:55:03 sd-6873 postfix/qmgr[7855]: BF9FCAA41E7: from=<munin@week-endfra                                             nce.fr>, size=29227, nrcpt=1 (queue active)
Dec  2 20:55:03 sd-6873 postfix/local[18648]: BF9FCAA41E7: to=<gingko@week-endfr                                             ance.fr>, orig_to=<root>, relay=local, delay=0, status=sent (delivered to comman                                             d: procmail -a "$EXTENSION")
Dec  2 20:55:03 sd-6873 postfix/qmgr[7855]: BF9FCAA41E7: removed

je l'ai retapé plusieur fois, mais j'ai toujour la même erreur

Hors ligne

#4 Le 02/12/2006, à 22:10

Uggy

Re : erreur telnet

essaye:

sudo netstat -alpen --inet |grep 25 && sudo /etc/init.d/postfix restart && sudo tail -f /var/log/mail.log

et dans une autre fenetre tu fais

telnet 127.0.0.1 25

Hors ligne

#5 Le 02/12/2006, à 22:12

Uggy

Re : erreur telnet

Ahhh et mets les resultats de commandes dans des balises "code" sur le forum..

Hors ligne

#6 Le 02/12/2006, à 22:15

Uggy

Re : erreur telnet

Vire tout dans ton main.cf et ne laisse que la ligne suivante:

myhostname = week-endfrance.fr

puis postfix restart

Hors ligne

#7 Le 02/12/2006, à 22:58

newsm

Re : erreur telnet

voici le resultat de la modif




restart && sudo tail -f /var/log/mail.log
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN     0                                 555616     7853/master
* Stopping Postfix Mail Transport Agent...                              [ ok ]
* Starting Postfix Mail Transport Agent...                              [ ok ]
Dec  2 21:55:03 sd-6873 postfix/pickup[20176]: 1DE9FAA41E7: uid=123 from=<munin>
Dec  2 21:55:03 sd-6873 postfix/cleanup[21748]: 1DE9FAA41E7: message-id=<2006120                       2205503.1DE9FAA41E7@week-endfrance.fr>
Dec  2 21:55:03 sd-6873 postfix/qmgr[7855]: 1DE9FAA41E7: from=<munin@week-endfra                       nce.fr>, size=29227, nrcpt=1 (queue active)
Dec  2 21:55:03 sd-6873 postfix/local[21750]: 1DE9FAA41E7: to=<gingko@week-endfr                       ance.fr>, orig_to=<root>, relay=local, delay=0, status=sent (delivered to comman                       d: procmail -a "$EXTENSION")
Dec  2 21:55:03 sd-6873 postfix/qmgr[7855]: 1DE9FAA41E7: removed
Dec  2 21:55:42 sd-6873 postfix/postfix-script: warning: not owned by root: /var                       /spool/postfix/usr
Dec  2 21:55:42 sd-6873 postfix/postfix-script: warning: not owned by root: /var                       /spool/postfix/usr/lib
Dec  2 21:55:42 sd-6873 postfix/postfix-script: warning: not owned by root: /var                       /spool/postfix/usr/lib/zoneinfo
Dec  2 21:56:32 sd-6873 postfix/master[7853]: terminating on signal 15
Dec  2 21:56:32 sd-6873 postfix/master[21942]: daemon started -- version 2.2.4,                        configuration /etc/postfix
Dec  2 21:57:16 sd-6873 postfix/smtpd[21955]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Dec  2 21:57:16 sd-6873 postfix/smtpd[21955]: connect from localhost.localdomain[127.0.0.1]



pour la seconde modif, helas pas de changement, ceci dit, est ce que ce que tu m'a fais faire, est pour remettre postfix a zero ? et nettoyer les fichiers connex ? grep est une commande pour rechercher et editer un fichier ?

telnet 127.0.0.1 25
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
220 week-endfrance.fr ESMTP Postfix

Hors ligne

#8 Le 02/12/2006, à 23:04

Uggy

Re : erreur telnet

newsm a écrit :

telnet 127.0.0.1 25
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
220 week-endfrance.fr ESMTP Postfix

Ok.. Maintenant on a la bannière... ca a l'air ok..

Essaye de faire passer des mails maintenant... (et regarde ce qui se passe a ce moment dans le /var/log/mail.log )

Hors ligne

#9 Le 02/12/2006, à 23:07

Uggy

Re : erreur telnet

newsm a écrit :

est ce que ce que tu m'a fais faire, est pour remettre postfix a zero ?

Oui en quelque sorte... Je t'ai fais enlevé tous les trucs inutiles...

newsm a écrit :

grep est une commande pour rechercher et editer un fichier ?

man grep

Hors ligne

#10 Le 03/12/2006, à 09:48

newsm

Re : erreur telnet

heu, comment ça faire passer un mail ? j'ai pas de messagerie de créer dessus, je ne comprend pas.

de plus j'ai toujour cette erreur:

Escape character is '^]'.

Hors ligne

#11 Le 03/12/2006, à 09:54

newsm

Re : erreur telnet

j'ai essayé

#telnet localhost 25
helle test messagerie.


cela donne ça

# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
220 week-endfrance.fr ESMTP Postfix
hello je test la messagerie
502 Error: command not implemented

Hors ligne

#12 Le 03/12/2006, à 13:24

Uggy

Re : erreur telnet

newsm a écrit :

heu, comment ça faire passer un mail ? j'ai pas de messagerie de créer dessus, je ne comprend pas.

Aie Aie... t'es un sacré cas toi... !

- Tu peux recevoir des mails envoyés vers les adresses TonUser@week-endfrance.fr
- Tu peux envoyer des mails vers n'importe depuis la machine ou depuis des machines dont les IPs sont dans le parametre "mynetworks"

newsm a écrit :

de plus j'ai toujour cette erreur:

Escape character is '^]'.

Ce c'est pas une erreur puisque t'as bien la bannière...
220 week-endfrance.fr ESMTP Postfix

Hors ligne

#13 Le 03/12/2006, à 16:41

newsm

Re : erreur telnet

Uggy a écrit :
newsm a écrit :

heu, comment ça faire passer un mail ? j'ai pas de messagerie de créer dessus, je ne comprend pas.

Aie Aie... t'es un sacré cas toi... !

- Tu peux recevoir des mails envoyés vers les adresses TonUser@week-endfrance.fr
- Tu peux envoyer des mails vers n'importe depuis la machine ou depuis des machines dont les IPs sont dans le parametre "mynetworks"

newsm a écrit :

de plus j'ai toujour cette erreur:

Escape character is '^]'.

Ce c'est pas une erreur puisque t'as bien la bannière...
220 week-endfrance.fr ESMTP Postfix

je dois être vraiment un cas, car je ne comprend rien sad:(:(

j'ai rien fais d'autre, comment faire pour envoyer des mail vu que je n'ai pas créer d'user, ni de compte, ni de boite etc .....

(j'ai bien essayer de me faire greffer un cerveau, mais ils n'en ont plus de dispo tongue )

Hors ligne