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 25/10/2013, à 02:25

renaud07

[résolu] serveur mail : réception impossible

Bonsoir,

Après des tonnes d'essais infructueux pour mettre en place un serveur mail, j'ai enfin réussi. Enfin en partie, car si j'arrive à envoyer des courriers la réception ne fonctionne pas.

Pourtant d'après les logs ça a l'air de bien fonctionner :

Oct 25 03:28:40 serveur postfix/smtpd[2834]: connect from smtp11.smtpout.orange.fr[80.12.242.133]
Oct 25 03:28:40 serveur postfix/smtpd[2834]: 8EA421FD6D: client=smtp11.smtpout.orange.fr[80.12.242.133]
Oct 25 03:28:40 serveur postfix/cleanup[2838]: 8EA421FD6D: message-id=<5269C945.9050702@orange.fr>
Oct 25 03:28:40 serveur postfix/qmgr[2653]: 8EA421FD6D: from=<renaud.***************@orange.fr>, size=921, nrcpt=1 (queue active)
Oct 25 03:28:40 serveur postfix/smtpd[2834]: disconnect from smtp11.smtpout.orange.fr[80.12.242.133]
Oct 25 03:28:40 serveur postfix/local[2839]: 8EA421FD6D: to=<renaud@**********.fr.nf>, relay=local, delay=0.22, delays=0.15/0.02/0/0.05, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
Oct 25 03:28:40 serveur postfix/qmgr[2653]: 8EA421FD6D: removed

Mais je n'ai rien dans la boite de réception hmm Ou alors c'est courier-imap le coupable ?


Merci d'avance.

PS :  voici le main.cf  :

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


# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
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

readme_directory = no

# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = serveur
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = mondomaine.fr.nf, serveur.WORKGROUP, localhost.WORKGROUP, localhost
relayhost = [smtp.orange.fr]:25
#mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.1.0/24
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
home_mailbox = Maildir/

Dernière modification par renaud07 (Le 26/10/2013, à 02:29)


Fixe : AMD FX 8350 4Ghz - Asus M5A97 R2.0 - nVidia GT610 - RAM 8 Go - triple boot Ubuntu 18.04 MATE 64 bits / Manjaro MATE 17 64 bits / Windows 7 64 bits
Portable : Dell vostro 3550 - Intel core i5 2410M 2.30Ghz  - HD Gaphics 3000 - RAM 4 Go - dualboot Xubuntu 18.04 64 bits / Windows 7 64 bits

Hors ligne

#2 Le 25/10/2013, à 08:19

tiramiseb

Re : [résolu] serveur mail : réception impossible

Salut,

Postfix a bien transmis l'e-mail à procmail (vu que tu l'as configuré pour transmettre les e-mails à procmail).

Il faut alors voir comment procmail et courier sont configurés :
- soit procmail pose les e-mails au mauvais endroit
- soit courier cherche les e-mails au mauvais endroit

Hors ligne

#3 Le 25/10/2013, à 14:31

renaud07

Re : [résolu] serveur mail : réception impossible

Ah je crois que ça marche :  j'ai tout simplement commenté la ligne mailbox_command et maintenant j'ai bien les mails qui arrivent big_smile

Par  contre j'ai un dernier soucis que je n'arrive pas à régler à savoir : l'impossibilité d'envoyer des mails si je mets mon nom de domaine à la place de l'IP locale. Pourtant il me semble que je suis bien authentifié sur le SMTP vu que je dois renter user/MDP mais même en mettant la directive : smtpd_recipient_restrictions = permit_sasl_authenticated ça ne fonctionne pas.

Le main.cf tel qu'il est actuellement :

[...]
myhostname = serveur
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = mondomaine.fr.nf, serveur.WORKGROUP, localhost.WORKGROUP, localhost
relayhost = [smtp.orange.fr]:25
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.1.0/24
# mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
home_mailbox = Maildir/
broken_sasl_auth_clients = no
smtpd_client_restrictions = permit_sasl_authenticated
smtpd_recipient_restrictions = permit_mynetworks
                               permit_sasl_authenticated
                               reject_unauth_destination

Dernière modification par renaud07 (Le 25/10/2013, à 14:37)


Fixe : AMD FX 8350 4Ghz - Asus M5A97 R2.0 - nVidia GT610 - RAM 8 Go - triple boot Ubuntu 18.04 MATE 64 bits / Manjaro MATE 17 64 bits / Windows 7 64 bits
Portable : Dell vostro 3550 - Intel core i5 2410M 2.30Ghz  - HD Gaphics 3000 - RAM 4 Go - dualboot Xubuntu 18.04 64 bits / Windows 7 64 bits

Hors ligne

#4 Le 25/10/2013, à 14:51

tiramiseb

Re : [résolu] serveur mail : réception impossible

un dernier soucis que je n'arrive pas à régler à savoir : l'impossibilité d'envoyer des mails si je mets mon nom de domaine à la place de l'IP locale

Quelle est l'erreur dans les logs ?

Hors ligne

#5 Le 25/10/2013, à 15:03

renaud07

Re : [résolu] serveur mail : réception impossible

Oct 25 15:25:20 serveur postfix/smtpd[15322]: connect from ALyon*******.abo.wanadoo.fr[80.**.**.**]
Oct 25 15:25:20 serveur postfix/smtpd[15322]: NOQUEUE: reject: RCPT from ALyon*********.abo.wanadoo.fr[80.**.**.**]: 554 5.7.1 <renaud***@hotmail.fr>: Relay access denied; from=<renaud@********.fr.nf> to=<renaud****@hotmail.fr> proto=ESMTP helo=<[192.168.1.16]>
Oct 25 15:25:24 serveur postfix/smtpd[15322]: disconnect from ALyon********.abo.wanadoo.fr[80.**.**.**]

EDIT : je viens de tester en désactivant l'authentification sur le SMTP et ça fonctionne quand même donc je me suis gouré c'est que courier-imap qui réclame le MDP et non postfix hmm

Et dire qu'en 5 min j'arrive à tout faire fonctionner et en sécurisé avec hmail server sur windows... Ça me décourage...

Dernière modification par renaud07 (Le 25/10/2013, à 15:15)


Fixe : AMD FX 8350 4Ghz - Asus M5A97 R2.0 - nVidia GT610 - RAM 8 Go - triple boot Ubuntu 18.04 MATE 64 bits / Manjaro MATE 17 64 bits / Windows 7 64 bits
Portable : Dell vostro 3550 - Intel core i5 2410M 2.30Ghz  - HD Gaphics 3000 - RAM 4 Go - dualboot Xubuntu 18.04 64 bits / Windows 7 64 bits

Hors ligne

#6 Le 25/10/2013, à 15:13

tiramiseb

Re : [résolu] serveur mail : réception impossible

À tout hasard...

smtpd_recipient_restrictions = permit_mynetworks
                               permit_sasl_authenticated
                               reject_unauth_destination

Il ne manquerait pas des virgules, là ?

Hors ligne

#7 Le 25/10/2013, à 15:15

renaud07

Re : [résolu] serveur mail : réception impossible

Ah il faut des virgules ? Bon je test.


Fixe : AMD FX 8350 4Ghz - Asus M5A97 R2.0 - nVidia GT610 - RAM 8 Go - triple boot Ubuntu 18.04 MATE 64 bits / Manjaro MATE 17 64 bits / Windows 7 64 bits
Portable : Dell vostro 3550 - Intel core i5 2410M 2.30Ghz  - HD Gaphics 3000 - RAM 4 Go - dualboot Xubuntu 18.04 64 bits / Windows 7 64 bits

Hors ligne

#8 Le 25/10/2013, à 15:23

renaud07

Re : [résolu] serveur mail : réception impossible

Non toujours rien sad


Fixe : AMD FX 8350 4Ghz - Asus M5A97 R2.0 - nVidia GT610 - RAM 8 Go - triple boot Ubuntu 18.04 MATE 64 bits / Manjaro MATE 17 64 bits / Windows 7 64 bits
Portable : Dell vostro 3550 - Intel core i5 2410M 2.30Ghz  - HD Gaphics 3000 - RAM 4 Go - dualboot Xubuntu 18.04 64 bits / Windows 7 64 bits

Hors ligne

#9 Le 25/10/2013, à 15:23

tiramiseb

Re : [résolu] serveur mail : réception impossible

Toujours la même erreur ?

Hors ligne

#10 Le 25/10/2013, à 15:34

renaud07

Re : [résolu] serveur mail : réception impossible

Oui :  Relay access denied.


Fixe : AMD FX 8350 4Ghz - Asus M5A97 R2.0 - nVidia GT610 - RAM 8 Go - triple boot Ubuntu 18.04 MATE 64 bits / Manjaro MATE 17 64 bits / Windows 7 64 bits
Portable : Dell vostro 3550 - Intel core i5 2410M 2.30Ghz  - HD Gaphics 3000 - RAM 4 Go - dualboot Xubuntu 18.04 64 bits / Windows 7 64 bits

Hors ligne

#11 Le 25/10/2013, à 15:39

tiramiseb

Re : [résolu] serveur mail : réception impossible

Cela veut dire qu'il ne te reconnaît pas comme un expéditeur de confiance.
Là je n'ai malheureusement pas le temps pour me pencher sur les détails de ta configuration, désolé hmm

Hors ligne

#12 Le 25/10/2013, à 16:09

renaud07

Re : [résolu] serveur mail : réception impossible

Bon je sais déjà une chose : l'authentification ne fonctionne pas vu que quand je fais :

root@serveur:~# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 serveur ESMTP Postfix (Debian/GNU)
EHLO ld
250-serveur
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
quit
221 2.0.0 Bye
Connection closed by foreign host.

je n'ai pas la ligne 250-AUTH et faut déjà savoir pourquoi et après avoir vérifié les fichiers de conf tout me semble correct les voici :

main.cf :

myhostname = serveur
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = mondomaine.fr.nf, serveur.WORKGROUP, localhost.WORKGROUP, localhost
relayhost = [smtp.orange.fr]:25
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.1.0/24
# mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
home_mailbox = Maildir/
broken_sasl_auth_clients = no
smtpd_client_restrictions = permit_sasl_authenticated
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination

master.cf :

#
# Postfix master process configuration file.  For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# Do not forget to execute "postfix reload" after editing this file.
#
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       -       -       -       smtpd
#smtp      inet  n       -       -       -       1       postscreen
#smtpd     pass  -       -       -       -       -       smtpd
#dnsblog   unix  -       -       -       -       0       dnsblog
#tlsproxy  unix  -       -       -       -       0       tlsproxy
#submission inet n       -       -       -       -       smtpd
#  -o syslog_name=postfix/submission
#  -o smtpd_tls_security_level=encrypt
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
#smtps     inet  n       -       -       -       -       smtpd
#  -o syslog_name=postfix/smtps
#  -o smtpd_tls_wrappermode=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
#628       inet  n       -       -       -       -       qmqpd
pickup    fifo  n       -       -       60      1       pickup
cleanup   unix  n       -       -       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
#qmgr     fifo  n       -       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
proxywrite unix -       -       n       -       1       proxymap
smtp      unix  -       -       -       -       -       smtp
relay     unix  -       -       -       -       -       smtp
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       -       -       -       showq
error     unix  -       -       -       -       -       error
retry     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/bin/maildrop -d ${recipient}
#
# ====================================================================
#
# Recent Cyrus versions can use the existing "lmtp" master.cf entry.
#
# Specify in cyrus.conf:
#   lmtp    cmd="lmtpd -a" listen="localhost:lmtp" proto=tcp4
#
# Specify in main.cf one or more of the following:
#  mailbox_transport = lmtp:inet:localhost
#  virtual_transport = lmtp:inet:localhost
#
# ====================================================================
#
# Cyrus 2.1.5 (Amos Gouaux)
# Also specify in main.cf: cyrus_destination_recipient_limit=1
#
#cyrus     unix  -       n       n       -       -       pipe
#  user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
#
# ====================================================================
# Old example of delivery via Cyrus.
#
#old-cyrus unix  -       n       n       -       -       pipe
#  flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
#
# ====================================================================
#
# 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       n       -       -       pipe
  flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
  ${nexthop} ${user}

saslauthd.conf :

#
# Settings for saslauthd daemon
# Please read /usr/share/doc/sasl2-bin/README.Debian for details.
#

# Should saslauthd run automatically on startup? (default: no)
START=yes

# Description of this saslauthd instance. Recommended.
# (suggestion: SASL Authentication Daemon)
DESC="SASL Authentication Daemon"

# Short name of this saslauthd instance. Strongly recommended.
# (suggestion: saslauthd)
NAME="saslauthd"

# Which authentication mechanisms should saslauthd use? (default: pam)
#
# Available options in this Debian package:
# getpwent  -- use the getpwent() library function
# kerberos5 -- use Kerberos 5
# pam       -- use PAM
# rimap     -- use a remote IMAP server
# shadow    -- use the local shadow password file
# sasldb    -- use the local sasldb database file
# ldap      -- use LDAP (configuration is in /etc/saslauthd.conf)
#
# Only one option may be used at a time. See the saslauthd man page
# for more information.
#
# Example: MECHANISMS="pam"
# MECHANISMS="pam"
MECHANISMS="sasldb"

# Additional options for this mechanism. (default: none)
# See the saslauthd man page for information about mech-specific options.
MECH_OPTIONS=""

# How many saslauthd processes should we run? (default: 5)
# A value of 0 will fork a new process for each connection.
THREADS=5

# Other options (default: -c -m /var/run/saslauthd)
# Note: You MUST specify the -m option or saslauthd won't run!
#
# WARNING: DO NOT SPECIFY THE -d OPTION.
# The -d option will cause saslauthd to run in the foreground instead of as
# a daemon. This will PREVENT YOUR SYSTEM FROM BOOTING PROPERLY. If you wish
# to run saslauthd in debug mode, please run it by hand to be safe.
#
# See /usr/share/doc/sasl2-bin/README.Debian for Debian-specific information.
# See the saslauthd man page and the output of 'saslauthd -h' for general
# information about these options.
#
# Example for chroot Postfix users: "-c -m /var/spool/postfix/var/run/saslauthd"
# Example for non-chroot Postfix users: "-c -m /var/run/saslauthd"
#
# To know if your Postfix is running chroot, check /etc/postfix/master.cf.
# If it has the line "smtp inet n - y - - smtpd" or "smtp inet n - - - - smtpd"
# then your Postfix is running in a chroot.
# If it has the line "smtp inet n - n - - smtpd" then your Postfix is NOT
# running in a chroot.
OPTIONS="-m /var/spool/postfix/var/run/saslauthd"

Fixe : AMD FX 8350 4Ghz - Asus M5A97 R2.0 - nVidia GT610 - RAM 8 Go - triple boot Ubuntu 18.04 MATE 64 bits / Manjaro MATE 17 64 bits / Windows 7 64 bits
Portable : Dell vostro 3550 - Intel core i5 2410M 2.30Ghz  - HD Gaphics 3000 - RAM 4 Go - dualboot Xubuntu 18.04 64 bits / Windows 7 64 bits

Hors ligne

#13 Le 25/10/2013, à 16:18

tiramiseb

Re : [résolu] serveur mail : réception impossible

Ne faut-il pas d'abord faire un STARTTLS pour chiffrer la communication avant l'authentification ?
(juste une supposition hein, je n'ai aucune expérience ou connaissance sur laquelle je fonde cette supposition)

Hors ligne

#14 Le 25/10/2013, à 16:39

renaud07

Re : [résolu] serveur mail : réception impossible

Y'a bien la ligne 250-STARTTLS dans le retour de la première commande... Et la connexion avec thunderbird se fait en STARTTLS et ça fonctionne parfaitement, j'ai même essayé sur les ports 465 et 587 ça marche également.

Dernière modification par renaud07 (Le 25/10/2013, à 16:44)


Fixe : AMD FX 8350 4Ghz - Asus M5A97 R2.0 - nVidia GT610 - RAM 8 Go - triple boot Ubuntu 18.04 MATE 64 bits / Manjaro MATE 17 64 bits / Windows 7 64 bits
Portable : Dell vostro 3550 - Intel core i5 2410M 2.30Ghz  - HD Gaphics 3000 - RAM 4 Go - dualboot Xubuntu 18.04 64 bits / Windows 7 64 bits

Hors ligne

#15 Le 25/10/2013, à 16:47

tiramiseb

Re : [résolu] serveur mail : réception impossible

Y'a bien la ligne 250-STARTTLS dans le retour de la première commande...

Oui, ça veut dire qu'il accepte de passer en TLS. Il faut lui dire "STARTTLS" pour passer en TLS.
Et ensuite, une fois la connexion chiffrée, il prendra peut-être l'authentification.

Hors ligne

#16 Le 25/10/2013, à 17:07

renaud07

Re : [résolu] serveur mail : réception impossible

Alors j'ai fait ça :

root@serveur:~# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 serveur ESMTP Postfix (Debian/GNU)
EHLO serveur
250-serveur
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
STARTTLS
220 2.0.0 Ready to start TLS

Je tape quoi après Ready to start TLS ?

Dernière modification par renaud07 (Le 25/10/2013, à 17:08)


Fixe : AMD FX 8350 4Ghz - Asus M5A97 R2.0 - nVidia GT610 - RAM 8 Go - triple boot Ubuntu 18.04 MATE 64 bits / Manjaro MATE 17 64 bits / Windows 7 64 bits
Portable : Dell vostro 3550 - Intel core i5 2410M 2.30Ghz  - HD Gaphics 3000 - RAM 4 Go - dualboot Xubuntu 18.04 64 bits / Windows 7 64 bits

Hors ligne

#17 Le 25/10/2013, à 17:16

tiramiseb

Re : [résolu] serveur mail : réception impossible

Je tape quoi après Ready to start TLS ?

Tu ne peux pas continuer à la main, vu qu'il passe sur une négociation d'un chiffrement TLS...

Je ne sais pas comment tester manuellement à partir de là.

Hors ligne

#18 Le 25/10/2013, à 17:24

renaud07

Re : [résolu] serveur mail : réception impossible

Ce qui est bizarre c'est que sur tous les tutos que j'ai vu lorsque on tape telnet localhost 25 on doit avoir dessous 250-STARTTLS la ligne 250-AUTH (si c'est bien configuré) y'a pas besoin de faire autre chose...


Fixe : AMD FX 8350 4Ghz - Asus M5A97 R2.0 - nVidia GT610 - RAM 8 Go - triple boot Ubuntu 18.04 MATE 64 bits / Manjaro MATE 17 64 bits / Windows 7 64 bits
Portable : Dell vostro 3550 - Intel core i5 2410M 2.30Ghz  - HD Gaphics 3000 - RAM 4 Go - dualboot Xubuntu 18.04 64 bits / Windows 7 64 bits

Hors ligne

#19 Le 25/10/2013, à 17:33

renaud07

Re : [résolu] serveur mail : réception impossible

Je viens de remarquer que si je mets seulment ça :

smtpd_recipient_restrictions = permit_sasl_authenticated

Comme décrit sur ce tuto : http://rene.bz/setting-smtp-authenticat … s-postfix/

au lieu de :

smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination

Ça bloque totalement la connexion. Il y a donc bien un problème quelque part...

Dernière modification par renaud07 (Le 25/10/2013, à 17:35)


Fixe : AMD FX 8350 4Ghz - Asus M5A97 R2.0 - nVidia GT610 - RAM 8 Go - triple boot Ubuntu 18.04 MATE 64 bits / Manjaro MATE 17 64 bits / Windows 7 64 bits
Portable : Dell vostro 3550 - Intel core i5 2410M 2.30Ghz  - HD Gaphics 3000 - RAM 4 Go - dualboot Xubuntu 18.04 64 bits / Windows 7 64 bits

Hors ligne

#20 Le 25/10/2013, à 19:41

renaud07

Re : [résolu] serveur mail : réception impossible

À force de persévérance j'ai fini par y arriver, enfin ! big_smile

Je ne sais pas ce qui a résolu le problème en tout cas voilà la solution :

 mkdir -p /var/spool/postfix/var/run/saslauthd

ln -s /var/spool/postfix/var/run/saslauthd /var/run

chgrp sasl /var/spool/postfix/var/run/saslauthd

adduser postfix sasl

/etc/postfix/main.cf :

broken_sasl_auth_clients = no
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination

/etc/postfix/sasl/smtpd.conf :

pwcheck_method: saslauthd
mech_list: login plain

/etc/default/saslauthd :

START=yes
MECHANISMS="pam"
PARAMS="-r"
OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd -r"

Et hop l'authentification fonctionne en local et je peux enfin mettre nom NDD ça marche aussi big_smile


Pour être sûr que ça ne viens pas de mes bidouilles précédentes, je vais tester sur une debian fraîchement installée en VM.

Dernière modification par renaud07 (Le 25/10/2013, à 19:46)


Fixe : AMD FX 8350 4Ghz - Asus M5A97 R2.0 - nVidia GT610 - RAM 8 Go - triple boot Ubuntu 18.04 MATE 64 bits / Manjaro MATE 17 64 bits / Windows 7 64 bits
Portable : Dell vostro 3550 - Intel core i5 2410M 2.30Ghz  - HD Gaphics 3000 - RAM 4 Go - dualboot Xubuntu 18.04 64 bits / Windows 7 64 bits

Hors ligne