IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Administration système Discussion :

[Centos - Postfix] smtpd - Reject - Relay Access Denied


Sujet :

Administration système

  1. #1
    Membre confirmé Avatar de _shuriken_
    Homme Profil pro
    Inscrit en
    Mars 2006
    Messages
    543
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 39

    Informations professionnelles :
    Secteur : High Tech - Opérateur de télécommunications

    Informations forums :
    Inscription : Mars 2006
    Messages : 543
    Points : 454
    Points
    454
    Par défaut [Centos - Postfix] smtpd - Reject - Relay Access Denied
    Bonjour à tous,

    Voici mon postconf :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
     
    alias_database = hash:/etc/aliases
    alias_maps = hash:/etc/aliases
    command_directory = /usr/sbin
    config_directory = /etc/postfix
    daemon_directory = /usr/libexec/postfix
    debug_peer_level = 2
    home_mailbox = Maildir/
    html_directory = no
    inet_interfaces = all
    mail_owner = postfix
    mail_spool_directory = /var/mail
    mailbox_command = /usr/bin/procmail -a "$EXTENSION" DEFAULT=$HOME/Maildir/ MAILDIR=$HOME/Maildir
    mailq_path = /usr/bin/mailq.postfix
    manpage_directory = /usr/share/man
    mydestination = $myhostname, localhost.$mydomain, localhost, mail.orangemali.net
    mydomain = mondamaine.com
    myhostname = mail.mondamaine.com
    mynetworks = 192.168.1.0/24, 127.0.0.0/8
    myorigin = $mydomain
    newaliases_path = /usr/bin/newaliases.postfix
    queue_directory = /var/spool/postfix
    readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
    recipient_delimiter = +
    relay_domains = $mydestination
    relay_recipient_maps = hash:/etc/postfix/relay_recipients
    relayhost = mail.DomainFAI.net
    sample_directory = /usr/share/doc/postfix-2.3.3/samples
    sendmail_path = /usr/sbin/sendmail.postfix
    setgid_group = postdrop
    smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
    smtpd_delay_reject = yes
    smtpd_helo_required = yes
    smtpd_helo_restrictions = permit_mynetworks, reject_invalid_helo_hostname
    smtpd_sender_restrictions = permit_sasl_authenticated, permit_mynetworks,reject_unknown_sender_domain, permit
    unknown_local_recipient_reject_code = 550
    Mon fichier host :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
     
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    #127.0.0.1              localhost.localdomain localhost
    ::1             localhost6.localdomain6 localhost6
     
    192.168.3.9     mail.mondomaine.com     mail
    Je n'arrive pas à envoyer de mail en interne, comme à l'extérieur. Qu'est-ce qui ne va pas avec ma config ?
    "When you can measure what you are speaking about, and express it in numbers, you know something about it; but when you cannot measure it, when you cannot express it in numbers, your knowledge is of a meager and unsatisfactory kind; it may be the beginning of knowledge, but you have scarcely in your thoughts advanced to the state of Science, whatever the matter may be."

    Lord Kelvin - 1883.

  2. #2
    Membre confirmé Avatar de _shuriken_
    Homme Profil pro
    Inscrit en
    Mars 2006
    Messages
    543
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 39

    Informations professionnelles :
    Secteur : High Tech - Opérateur de télécommunications

    Informations forums :
    Inscription : Mars 2006
    Messages : 543
    Points : 454
    Points
    454
    Par défaut
    Bonjour,

    Le problème persiste toujours.

    Ci-dessous mon dovecof.conf

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    [root@dns ~]# dovecot -n
    # 1.0.7: /etc/dovecot.conf
    base_dir: /var/run/dovecot/
    listen(default): *:143
    listen(imap): *:143
    listen(pop3): *:110
    login_dir: /var/run/dovecot//login
    login_executable(default): /usr/libexec/dovecot/imap-login
    login_executable(imap): /usr/libexec/dovecot/imap-login
    login_executable(pop3): /usr/libexec/dovecot/pop3-login
    mail_location: maildir:~/Maildir
    mail_executable(default): /usr/libexec/dovecot/imap
    mail_executable(imap): /usr/libexec/dovecot/imap
    mail_executable(pop3): /usr/libexec/dovecot/pop3
    mail_plugin_dir(default): /usr/lib/dovecot/imap
    mail_plugin_dir(imap): /usr/lib/dovecot/imap
    mail_plugin_dir(pop3): /usr/lib/dovecot/pop3
    auth default:
      passdb:
        driver: pam
      userdb:
        driver: passwd
    Voici les log :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    NOQUEUE: reject: RCPT from unknown[Mon_IP_Publique]: 554 5.7.1 <x.y@domainex.com>: Relay access denied; from=<x.y@mon_domaine> to=<x.y@domainex.com> proto=ESMTP helo=<USERPC>
    "When you can measure what you are speaking about, and express it in numbers, you know something about it; but when you cannot measure it, when you cannot express it in numbers, your knowledge is of a meager and unsatisfactory kind; it may be the beginning of knowledge, but you have scarcely in your thoughts advanced to the state of Science, whatever the matter may be."

    Lord Kelvin - 1883.

  3. #3
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Juillet 2007
    Messages
    25
    Détails du profil
    Informations personnelles :
    Âge : 40
    Localisation : France, Rhône (Rhône Alpes)

    Informations forums :
    Inscription : Juillet 2007
    Messages : 25
    Points : 30
    Points
    30
    Par défaut
    Bonjour,

    Dans ton premier post qqch m'interpelle :

    postconf :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    mynetworks = 192.168.1.0/24, 127.0.0.0/8
    fichier host :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    192.168.3.9     mail.mondomaine.com     mail
    Les réseaux ne correspondent pas.

    De plus comment-as tu monté ton infra ? Pour l'extérieur as-tu déclaré un mx ? As-tu que cela comme log ? Tu utilises quoi comme client ? N'as-tu pas de log sur le client ? Pour ma part il me manque pas mal d'informations pour pouvoir t'aider . Ton infra (mx, ns ...), niveau log c'est léger (log client) etc ...

    Bon courage.
    Wagab

  4. #4
    Membre régulier
    Homme Profil pro
    Ingénieur systèmes et réseaux
    Inscrit en
    Avril 2015
    Messages
    46
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : Ingénieur systèmes et réseaux
    Secteur : Finance

    Informations forums :
    Inscription : Avril 2015
    Messages : 46
    Points : 108
    Points
    108
    Par défaut
    Pour ton soucis en sortie de mail vers extérieure c'est plutôt simple: L'ip de sortie de ton serveur mail ne doit pas être un mx déclaré dans la zone dns du domaine du sender.

    Si ton domaine est toto.fr; il te faut une entrée mx (poids faible) qui pointe vers l'ip de sortie de ton serveur (il doit être naté).

    Sinon pour l'instant le smptd distant te refuse car il considère que tu es un relais ouvert à tout va, donc potentiellement une source de spam.

Discussions similaires

  1. Postfix - CENTOS : 554 5.7.1 - Relay access Denied
    Par _shuriken_ dans le forum Linux
    Réponses: 3
    Dernier message: 03/01/2014, 16h59
  2. [Postfix] Relay access denied pour les adresses différentes de .com
    Par kfa1983 dans le forum RedHat / CentOS / Fedora
    Réponses: 0
    Dernier message: 23/11/2012, 17h28
  3. [Postfix] Relay access denied
    Par vedder dans le forum Debian
    Réponses: 8
    Dernier message: 04/08/2010, 15h31
  4. Relay Access Denied avec Postfix
    Par dnizard dans le forum Administration système
    Réponses: 0
    Dernier message: 12/05/2009, 14h54
  5. Relay access denied (postfix / ubuntu)
    Par nimbus_77 dans le forum Réseau
    Réponses: 0
    Dernier message: 30/10/2008, 22h42

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo