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

Réseau Discussion :

[postfix] problème d'envoi de mail


Sujet :

Réseau

  1. #1
    Futur Membre du Club
    Étudiant
    Inscrit en
    Février 2008
    Messages
    33
    Détails du profil
    Informations personnelles :
    Âge : 40

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Février 2008
    Messages : 33
    Points : 9
    Points
    9
    Par défaut [postfix] problème d'envoi de mail
    Bonjour !
    Je viens installer un serveur de messagerie constitué principalement de « Postfix, LDAP, Courier » sur Debian Sarge 3.1. Apparemment tout semble être bien configuré, (j’ai déjà exécuté postmap pour vérifer que postfix communique bien avec LDAP, et courierauthtest pour vérifier si POP3 et IMAP sont opérationnels, tout s’est bien passé), tout semble bien configuré aussi du côté antivirus et spamassassin …
    Et le problème c’est que, lorsque j’essaie d’envoyer un mail, je trouve tout ceci dans le log :

    Pour un envoi vers un utilisateur local :

    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
    Apr 15 05:35:34 localhost postfix/qmgr[16377]: 0C85020758B: from=<root@xxxxx>, size=335, nrcpt=1 (queue active)
    Apr 15 05:35:34 localhost postfix/smtp[16807]: connect to 127.0.0.1[127.0.0.1]: Connection refused (port 10024)
    Apr 15 05:35:34 localhost postfix/smtp[16807]: 0C85020758B: to=<test@xxxxx>, relay=none, delay=0, status=deferred (connect to 127.0.0.1[127.0.0.1]: Connection refused)
    Apr 15 05:36:20 localhost postfix/qmgr[16377]: warning: connect to transport amavis : No such file or directory
     
    Pour un envoi vers yahoo.fr:
     
    Apr 15 05:07:20 localhost postfix/qmgr[16377]: 53E69207541: from=<root@xxxxx>, size=385, nrcpt=2 (queue active)
    Apr 15 05:07:20 localhost postfix/qmgr[16377]: warning: connect to transport amavis : No such file or directory
    Apr 15 05:07:20 localhost postfix/qmgr[16377]: C203F207584: from=<root@xxxxx>, size=329, nrcpt=1 (queue active)
    Apr 15 05:07:21 localhost postfix/qmgr[16377]: 03906207579: from=<root@xxxxx>, size=328, nrcpt=1 (queue active)
    Apr 15 05:07:24 localhost postfix/smtp[16380]: connect to a.mx.mail.yahoo.com[209.191.118.103]: Connection refused (port 25)
    Apr 15 05:07:36 localhost postfix/smtp[16380]: C203F207584: host c.mx.mail.yahoo.com[216.39.53.2] refused to talk to me: 553 Mail from 196.192.41.137 not allowed - [10]
    Apr 15 05:07:41 localhost postfix/smtp[16381]: 03906207579: host d.mx.mail.yahoo.com[66.196.82.7] refused to talk to me: 553 Mail from 196.192.41.137 not allowed - [10]
    Apr 15 05:07:57 localhost postfix/smtp[16381]: 03906207579: to=<xxxx@yahoo.fr>, relay=f.mx.mail.yahoo.com[68.142.202.247], delay=45270, status=deferred (host f.mx.mail.yahoo.com[68.142.202.247] refused to talk to me: 553 Mail from 196.192.41.137 not allowed - [10])
    Apr 15 05:08:20 localhost postfix/qmgr[16377]: warning: connect to transport amavis : No such file or directory
    Est ce que vous pouvez m’aider? Ça fait plusieurs jours que je suis bloquée.
    Merci d’avance.

  2. #2
    Membre régulier
    Profil pro
    Inscrit en
    Février 2005
    Messages
    88
    Détails du profil
    Informations personnelles :
    Âge : 40
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Février 2005
    Messages : 88
    Points : 107
    Points
    107
    Par défaut
    Affiche ta conf de postfix stp (main.cf)

    Quelle est la valeur de inet_interfaces?
    Status de iptables (iptables -L)?

  3. #3
    Membre actif
    Profil pro
    Inscrit en
    Mars 2007
    Messages
    202
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2007
    Messages : 202
    Points : 229
    Points
    229
    Par défaut
    il te manque le transport amavis dans ton master.cf:
    warning: connect to transport amavis : No such file or directory

    et le contenu du master.cf
    Tutoriaux Postfix: www.starbridge.org/spip
    Messagerie Dédiée, Relais Mail Antispam/Antivirus, Infogérance 24/7: www.eole-its.com

  4. #4
    Futur Membre du Club
    Étudiant
    Inscrit en
    Février 2008
    Messages
    33
    Détails du profil
    Informations personnelles :
    Âge : 40

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Février 2008
    Messages : 33
    Points : 9
    Points
    9
    Par défaut
    J'ai envoyé en pièces jointes les résultats de : postconf -n, iptables -L ainsi que le contenu du master.cf.
    La valeur de mon inet_interfaces est all.
    Merci

  5. #5
    Futur Membre du Club
    Étudiant
    Inscrit en
    Février 2008
    Messages
    33
    Détails du profil
    Informations personnelles :
    Âge : 40

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Février 2008
    Messages : 33
    Points : 9
    Points
    9
    Par défaut
    J'ai peut être échoué à l'envoi des pièces jointes, voici ce que m'ont donné les commandes :

    #postconf -n

    alias_database = hash:/etc/aliases
    alias_maps = hash:/etc/aliases
    append_dot_mydomain = no
    biff = no
    config_directory = /etc/postfix
    content_filter = amavis:[127.0.0.1]:10024
    home_mailbox = Maildir/
    inet_interfaces = all
    luser_relay =
    mailbox_size_limit = 0
    mydestination = firewall.univ-antsiranana.mg, localhost.univ-antsiranana.mg, localhost
    myhostname = firewall.univ-antsiranana.mg
    mynetworks = 127.0.0.O/8 192.168.0.O/24
    myorigin = univ-antsiranana.mg
    recipient_delimiter = +
    relayhost =
    smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
    smtpd_tls_CAfile = /etc/postfix/democa/cacert.pem
    smtpd_tls_auth_only = no
    smtpd_tls_cert_file = /etc/postfix/proxy-cert.pem
    smtpd_tls_key_file = /etc/postfix/proxy-key.pem
    smtpd_tls_loglevel = 1
    smtpd_tls_received_header = yes
    smtpd_tls_session_cache_database = btree:/var/run/smtp_tls_session_cache
    smtpd_tls_session_cache_timeout = 3600s
    smtpd_use_tls = yes
    tls_random_source = dev:/dev/urandom
    virtual_alias_maps = ldap:/etc/postfix/ldap-aliases.cf
    virtual_gid_maps = static:1006
    virtual_mailbox_base = /home/vmail
    virtual_mailbox_domains = ldap:/etc/postfix/ldap-domains.cf
    virtual_mailbox_maps = ldap:/etc/postfix/ldap-accounts.cf
    virtual_minimum_uid = 100
    virtual_uid_maps = static:1006


    # iptables -L

    Chain INPUT (policy DROP)
    target prot opt source destination
    ACCEPT all -- anywhere anywhere
    ACCEPT icmp -- anywhere anywhere
    ACCEPT igmp -- anywhere anywhere
    ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
    ACCEPT tcp -- anywhere anywhere tcp dpt:ftp-data
    ACCEPT tcp -- anywhere anywhere tcp dpt:ftp
    ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
    ACCEPT tcp -- anywhere anywhere tcp dpt:smtp
    ACCEPT tcp -- anywhere anywhere tcp dpt:domain
    ACCEPT udp -- anywhere anywhere udp dpt:domain
    ACCEPT tcp -- anywhere anywhere tcp dpt:www
    ACCEPT tcp -- anywhere anywhere tcp dpt:netbios-ssn
    ACCEPT udp -- anywhere anywhere udp dpt:netbios-ssn
    ACCEPT udp -- anywhere SAP.MCAST.NET udp dpt:9875
    REJECT all -- anywhere anywhere reject-with icmp-port-unreachable
    Chain FORWARD (policy ACCEPT)
    target prot opt source destination
    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination

    Et enfin, le contenu de master.cf :

    smtp inet n - n - - smtpd
    pickup fifo n - - 60 1 pickup
    cleanup unix n - - - 0 cleanup
    qmgr fifo n - - 300 1 qmgr
    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
    relay unix - - - - - smtp
    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
    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}
    amavis unix - - n - 2 smtp
    -o smtp_data_done_timeout=1200
    -o disable_dns_lookups=yes
    127.0.0.1:10025 inet n - 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

  6. #6
    Futur Membre du Club
    Étudiant
    Inscrit en
    Février 2008
    Messages
    33
    Détails du profil
    Informations personnelles :
    Âge : 40

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Février 2008
    Messages : 33
    Points : 9
    Points
    9
    Par défaut
    J'ai peut être échoué à l'envoi des pièces jointes, voici ce que m'ont donné les commandes :

    #postconf -n

    alias_database = hash:/etc/aliases
    alias_maps = hash:/etc/aliases
    append_dot_mydomain = no
    biff = no
    config_directory = /etc/postfix
    content_filter = amavis:[127.0.0.1]:10024
    home_mailbox = Maildir/
    inet_interfaces = all
    luser_relay =
    mailbox_size_limit = 0
    mydestination = firewall.univ-antsiranana.mg, localhost.univ-antsiranana.mg, localhost
    myhostname = firewall.univ-antsiranana.mg
    mynetworks = 127.0.0.O/8 192.168.0.O/24
    myorigin = univ-antsiranana.mg
    recipient_delimiter = +
    relayhost =
    smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
    smtpd_tls_CAfile = /etc/postfix/democa/cacert.pem
    smtpd_tls_auth_only = no
    smtpd_tls_cert_file = /etc/postfix/proxy-cert.pem
    smtpd_tls_key_file = /etc/postfix/proxy-key.pem
    smtpd_tls_loglevel = 1
    smtpd_tls_received_header = yes
    smtpd_tls_session_cache_database = btree:/var/run/smtp_tls_session_cache
    smtpd_tls_session_cache_timeout = 3600s
    smtpd_use_tls = yes
    tls_random_source = dev:/dev/urandom
    virtual_alias_maps = ldap:/etc/postfix/ldap-aliases.cf
    virtual_gid_maps = static:1006
    virtual_mailbox_base = /home/vmail
    virtual_mailbox_domains = ldap:/etc/postfix/ldap-domains.cf
    virtual_mailbox_maps = ldap:/etc/postfix/ldap-accounts.cf
    virtual_minimum_uid = 100
    virtual_uid_maps = static:1006


    # iptables -L

    Chain INPUT (policy DROP)
    target prot opt source destination
    ACCEPT all -- anywhere anywhere
    ACCEPT icmp -- anywhere anywhere
    ACCEPT igmp -- anywhere anywhere
    ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
    ACCEPT tcp -- anywhere anywhere tcp dpt:ftp-data
    ACCEPT tcp -- anywhere anywhere tcp dpt:ftp
    ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
    ACCEPT tcp -- anywhere anywhere tcp dpt:smtp
    ACCEPT tcp -- anywhere anywhere tcp dpt:domain
    ACCEPT udp -- anywhere anywhere udp dpt:domain
    ACCEPT tcp -- anywhere anywhere tcp dpt:www
    ACCEPT tcp -- anywhere anywhere tcp dpt:netbios-ssn
    ACCEPT udp -- anywhere anywhere udp dpt:netbios-ssn
    ACCEPT udp -- anywhere SAP.MCAST.NET udp dpt:9875
    REJECT all -- anywhere anywhere reject-with icmp-port-unreachable
    Chain FORWARD (policy ACCEPT)
    target prot opt source destination
    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination

    Et enfin, le contenu de master.cf :

    smtp inet n - n - - smtpd
    pickup fifo n - - 60 1 pickup
    cleanup unix n - - - 0 cleanup
    qmgr fifo n - - 300 1 qmgr
    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
    relay unix - - - - - smtp
    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
    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}
    amavis unix - - n - 2 smtp
    -o smtp_data_done_timeout=1200
    -o disable_dns_lookups=yes
    127.0.0.1:10025 inet n - 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

  7. #7
    Membre à l'essai
    Inscrit en
    Octobre 2004
    Messages
    15
    Détails du profil
    Informations forums :
    Inscription : Octobre 2004
    Messages : 15
    Points : 16
    Points
    16
    Par défaut
    #postconf -n
    [...]
    content_filter = amavis:[127.0.0.1]:10024
    [...]

    master.cf :
    [...]
    amavis unix - - n - 2 smtp
    -o smtp_data_done_timeout=1200
    -o disable_dns_lookups=yes
    [...]
    Ta config pour appeler amavis me semble bonne... Je me demande juste si tu as installer amavis?
    # aptitude install amavis-new

  8. #8
    Futur Membre du Club
    Étudiant
    Inscrit en
    Février 2008
    Messages
    33
    Détails du profil
    Informations personnelles :
    Âge : 40

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Février 2008
    Messages : 33
    Points : 9
    Points
    9
    Par défaut
    Merci de m'avoir répondu.
    J'ai bien vérifié, amavis est bien installé.
    J'ai déjà effectué la commande chown -R amavis /var/lib/amavis/ après avoir remarqué la ligne suivante lors de son redémarrage :
    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
    Apr 22 14:55:30 localhost amavis[24338]: TROUBLE in pre_loop_hook: QUARANTINEDIR directory not writable: /var/lib/amavis/virusmails at /usr/sbin/amavisd-new line 5060.
    Et la ligne a disparu après.
    Mais lorsque j'essaie d'envoyer un message en local, voici ce que le log me donne encore :
    Apr 22 18:56:33 localhost postfix/smtpd[1065]: connect from localhost.localdomain[127.0.0.1]
    Apr 22 18:56:33 localhost postfix/smtpd[1065]: EAB4D2075B1: client=localhost.localdomain[127.0.0.1]
    Apr 22 18:56:34 localhost postfix/cleanup[1060]: EAB4D2075B1: message-id=<20080422155632.E04542075AD@firewall.univ-antsiranana.mg>
    Apr 22 18:56:34 localhost postfix/qmgr[637]: EAB4D2075B1: from=<root@univ-antsiranana.mg>, size=826, nrcpt=1 (queue active)
    Apr 22 18:56:34 localhost postfix/smtpd[1065]: disconnect from localhost.localdomain[127.0.0.1]
    Apr 22 18:56:34 localhost amavis[752]: (00752-01) Passed, <root@univ-antsiranana.mg> -> <test@univ-antsiranana.mg>, Message-ID: <20080422155632.E04542075AD@firewall.univ-antsiranana.mg>, Hits: -
    Apr 22 18:56:34 localhost postfix/smtp[1062]: E04542075AD: to=<test@univ-antsiranana.mg>, relay=127.0.0.1[127.0.0.1], delay=2, status=sent (250 2.6.0 Ok, id=00752-01, from MTA: 250 Ok: queued as EAB4D2075B1)
    Apr 22 18:56:34 localhost postfix/qmgr[637]: E04542075AD: removed
    Apr 22 18:56:35 localhost postfix/smtp[1066]: EAB4D2075B1: to=<test@univ-antsiranana.mg>, relay=none, delay=2, status=bounced (mail for univ-antsiranana.mg loops back to myself)
    Apr 22 18:56:35 localhost postfix/cleanup[1060]: D52482075B2: message-id=<20080422155635.D52482075B2@firewall.univ-antsiranana.mg>
    Apr 22 18:56:36 localhost postfix/qmgr[637]: D52482075B2: from=<>, size=2655, nrcpt=1 (queue active)
    Apr 22 18:56:36 localhost postfix/qmgr[637]: EAB4D2075B1: removed
    Apr 22 18:56:36 localhost postfix/smtp[1066]: D52482075B2: to=<root@univ-antsiranana.mg>, relay=none, delay=1, status=bounced (mail for univ-antsiranana.mg loops back to myself)
    Apr 22 18:56:36 localhost postfix/qmgr[637]: D52482075B2: removed
    Apr 22 18:57:03 localhost postfix/qmgr[637]: warning: connect to transport amavis : No such file or directory
    Apr 22 18:57:36 localhost postfix/smtpd[1107]: unable to get private key from '/etc/postfix/proxy-key.pem'
    Apr 22 18:57:36 localhost postfix/smtpd[1107]: 1107:error:02001002:system library:fopen:No such file or directory:bss_file.c:278:fopen('/etc/postfix/proxy-key.pem','r'):
    Apr 22 18:57:36 localhost postfix/smtpd[1107]: 1107:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:280:
    Apr 22 18:57:36 localhost postfix/smtpd[1107]: 1107:error:140B0002:SSL routines:SSL_CTX_use_PrivateKey_file:system lib:ssl_rsa.c:693:
    Apr 22 18:57:36 localhost postfix/smtpd[1107]: TLS engine: cannot load RSA cert/key data
    Apr 22 18:57:46 localhost postfix/smtpd[1107]: connect from unknown[213.154.70.8]
    Apr 22 18:57:46 localhost postfix/smtpd[1107]: lost connection after CONNECT from unknown[213.154.70.8]
    Apr 22 18:57:46 localhost postfix/smtpd[1107]: disconnect from unknown[213.154.70.8]
    Apr 22 18:58:03 localhost postfix/qmgr[637]: warning: connect to transport amavis : No such file or directory

  9. #9
    Membre actif
    Profil pro
    Inscrit en
    Mars 2007
    Messages
    202
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2007
    Messages : 202
    Points : 229
    Points
    229
    Tutoriaux Postfix: www.starbridge.org/spip
    Messagerie Dédiée, Relais Mail Antispam/Antivirus, Infogérance 24/7: www.eole-its.com

  10. #10
    Futur Membre du Club
    Étudiant
    Inscrit en
    Février 2008
    Messages
    33
    Détails du profil
    Informations personnelles :
    Âge : 40

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Février 2008
    Messages : 33
    Points : 9
    Points
    9
    Par défaut
    ok! j'ai fait :
    #telnet 127.0.0.1 10024
    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
    Trying 127.0.0.1...
     Connected to 127.0.0.1...
     Escape character is '^]'.
     220 [127.0.0.1] ESMTP amavisd-new service ready
     helo univ-antsiranana.mg
     250 [127.0.0.1]
     mail from: <root@univ-antsiranana.mg>
     250 2.1.0 Sender root@univ-antsiranana.mg OK
     rcpt to: <test@univ-antsiranana.mg>
     250 2.1.5 Recipient test@univ-antsiranana.mg OK
     data
     354 End data with <CR><LF>.<CR><LF>
     from: <root@univ-antsiranana.mg>
     salut
     .
     250 2.6.0 Ok, id=03379-02, from MTA: 250 Ok:queued as 4BD0F2075C2
     quit
     221 2.0.0 [127.0.0.1] (amavisd) closing transmission channel
     Connection closed by foreign host.
    Et j'ai vu ceci dans le mail.log :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    Apr 24 20:47:03 localhost postfix/smtpd[28318]: unable to get private key from '/etc/postfix/proxy-key.pem'
    Apr 24 20:47:03 localhost postfix/smtpd[28318]: 28318:error:02001002:system library:fopen:No such file or directory:bss_file.c:278:fopen('/etc/postfix/proxy-key.pem','r'):
    Apr 24 20:47:03 localhost postfix/smtpd[28318]: 28318:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:280:
    Apr 24 20:47:03 localhost postfix/smtpd[28318]: 28318:error:140B0002:SSL routines:SSL_CTX_use_PrivateKey_file:system lib:ssl_rsa.c:693:
    Apr 24 20:47:03 localhost postfix/smtpd[28318]: TLS engine: cannot load RSA cert/key data
    Apr 24 20:47:03 localhost postfix/smtpd[28318]: connect from localhost.localdomain[127.0.0.1]
    Apr 24 20:47:03 localhost postfix/smtpd[28318]: 4BD0F2075C2: client=localhost.localdomain[127.0.0.1]
    Apr 24 20:47:03 localhost postfix/cleanup[28320]: 4BD0F2075C2: message-id=<20080424174703.4BD0F2075C2@firewall.univ-antsiranana.mg>
    Apr 24 20:47:03 localhost postfix/qmgr[27948]: 4BD0F2075C2: from=<root@univ-antsiranana.mg>, size=666, nrcpt=1 (queue active)
    Apr 24 20:47:03 localhost postfix/smtpd[28318]: disconnect from localhost.localdomain[127.0.0.1]
    Apr 24 20:47:03 localhost amavis[3379]: (03379-02) Passed, <root@univ-antsiranana.mg> -> <test@univ-antsiranana.mg>, Message-ID: , Hits: -
    Apr 24 20:47:03 localhost postfix/smtp[28321]: 4BD0F2075C2: to=<test@univ-antsiranana.mg>, relay=none, delay=0, status=bounced (mail for univ-antsiranana.mg loops back to myself)
    Apr 24 20:47:03 localhost postfix/qmgr[27948]: 4BD0F2075C2: removed
    Apr 24 20:47:20 localhost postfix/qmgr[27948]: warning: connect to transport amavis : No such file or directory

  11. #11
    Membre actif
    Profil pro
    Inscrit en
    Mars 2007
    Messages
    202
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2007
    Messages : 202
    Points : 229
    Points
    229
    Par défaut
    fais voir ton master.cf en prenant soin de bien le mettre entre balise code

    de meme pour le postconf -n

    je soupconne un pb de mise en forme du fichier
    Tutoriaux Postfix: www.starbridge.org/spip
    Messagerie Dédiée, Relais Mail Antispam/Antivirus, Infogérance 24/7: www.eole-its.com

  12. #12
    Futur Membre du Club
    Étudiant
    Inscrit en
    Février 2008
    Messages
    33
    Détails du profil
    Informations personnelles :
    Âge : 40

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Février 2008
    Messages : 33
    Points : 9
    Points
    9
    Par défaut
    master.cf :

    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
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    smtp      inet  n       -       n       -       -       smtpd
    pickup    fifo  n       -       -       60      1       pickup
    cleanup   unix  n       -       -       -       0       cleanup
    qmgr      fifo  n       -       -       300     1       qmgr
    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
    relay     unix  -       -       -       -       -       smtp
    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
     
    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}
     
    amavis    unix  -       -       n       -       2       smtp
    	 	-o smtp_data_done_timeout=1200
    		-o disable_dns_lookups=yes
     
    127.0.0.1:10025 inet 	n 	-	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
    postconf -n :

    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
    alias_database = hash:/etc/aliases
    alias_maps = hash:/etc/aliases
    append_dot_mydomain = no
    biff = no
    config_directory = /etc/postfix
    content_filter = amavis:[127.0.0.1]:10024
    home_mailbox = Maildir/
    inet_interfaces = all
    luser_relay = 
    mailbox_size_limit = 0
    mydestination = firewall.univ-antsiranana.mg, localhost.univ-antsiranana.mg, localhost
    myhostname = firewall.univ-antsiranana.mg
    mynetworks = 127.0.0.O/8 192.168.0.O/24
    myorigin = univ-antsiranana.mg
    recipient_delimiter = +
    relayhost = 
    smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
    smtpd_tls_CAfile = /etc/postfix/cacert.pem
    smtpd_tls_auth_only = no
    smtpd_tls_cert_file = /etc/postfix/proxy-cert.pem
    smtpd_tls_key_file = /etc/postfix/proxy-key.pem
    smtpd_tls_loglevel = 1
    smtpd_tls_received_header = yes
    smtpd_tls_session_cache_database = btree:/var/run/smtp_tls_session_cache
    smtpd_tls_session_cache_timeout = 3600s
    smtpd_use_tls = yes
    tls_random_source = dev:/dev/urandom
    virtual_alias_maps = ldap:/etc/postfix/ldap-aliases.cf
    virtual_gid_maps = static:1006
    virtual_mailbox_base = /home/vmail
    virtual_mailbox_domains = ldap:/etc/postfix/ldap-domains.cf
    virtual_mailbox_maps = ldap:/etc/postfix/ldap-accounts.cf
    virtual_minimum_uid = 100
    virtual_uid_maps = static:1006

  13. #13
    Membre actif
    Profil pro
    Inscrit en
    Mars 2007
    Messages
    202
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2007
    Messages : 202
    Points : 229
    Points
    229
    Par défaut
    fais un mailq pour voir la queue de postfix
    Tutoriaux Postfix: www.starbridge.org/spip
    Messagerie Dédiée, Relais Mail Antispam/Antivirus, Infogérance 24/7: www.eole-its.com

  14. #14
    Futur Membre du Club
    Étudiant
    Inscrit en
    Février 2008
    Messages
    33
    Détails du profil
    Informations personnelles :
    Âge : 40

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Février 2008
    Messages : 33
    Points : 9
    Points
    9
    Par défaut
    # mailq

    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
    -Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
     
    53E69207541*     385 Sat Apr 12 00:32:51  root@univ-antsiranana.mg
     
                                             xxxx@yahoo.fr
     
                                             test@univ-antsiranana.mg
     
     
     
    0DECA207599      820 Thu Apr 24 21:10:47  root@univ-antsiranana.mg
     
    (host c.mx.mail.yahoo.com[216.39.53.3] refused to talk to me: 553 Mail from 196.192.41.137 not allowed - [10])
     
                                             xxxx@yahoo.fr
     
     
     
    57308207571      823 Thu Apr 24 21:10:47  root@univ-antsiranana.mg
     
    (host g.mx.mail.yahoo.com[206.190.53.191] refused to talk to me: 553 Mail from 196.192.41.137 not allowed - [10])
     
                                             xxxx@yahoo.fr
     
     
     
    401102075C1      821 Thu Apr 24 20:37:21  root@univ-antsiranana.mg
     
     
    (host c.mx.mail.yahoo.com[216.39.53.2] refused to talk to me: 553 Mail from 196.192.41.137 not allowed - [10])
     
                                             xxxx@yahoo.fr
     
     
     
    -- 3 Kbytes in 4 Requests.

  15. #15
    Futur Membre du Club
    Étudiant
    Inscrit en
    Février 2008
    Messages
    33
    Détails du profil
    Informations personnelles :
    Âge : 40

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Février 2008
    Messages : 33
    Points : 9
    Points
    9
    Par défaut
    Bonjour!
    Le résultat de la commande mailq m'a fait penser à vérifier le contenu de ma boîte de réception gmail (puisque j'ai essayé des messages aussi d'envoyer à un compte gmail.com). J'étais stupide de ne pas avoir vérifié dans la boîte de réception du compte gmail mais seulement le contenu des logs de notre serveur.
    Tous les messages que j'envoie à un compte gmail.com sont bien postés bien que classés comme spam. Mais c'est avec yahoo.fr qu'il y a encore de problèmes à resoudre.
    Alors comme déduction : yahoo fait partie de ces serveurs mail qui sont stricts avec les serveurs qui peuvent communiquer avec eux.
    Il s'agit peut être de problèmes avec la configuration DNS (???). Si je ne me trompe pas.
    Et concernant l'envoi en local :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    Apr 24 20:47:03 localhost postfix/smtp[28321]: 4BD0F2075C2: to=<test@univ-antsiranana.mg>, relay=none, delay=0, status=bounced (mail for univ-antsiranana.mg loops back to myself)
    J'ai édité main.cf en ajoutant univ-antsiranana.mg à mydestination.
    Puis j'ai essayé d'envoyer un mail à test@univ-antsiranana.mg :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    Apr 27 05:40:53 localhost postfix/smtpd[16175]: 6D4832075A3: client=localhost.localdomain[127.0.0.1]
    Apr 27 05:40:53 localhost postfix/cleanup[16170]: 6D4832075A3: message-id=<20080427024052.05C522075BD@firewall.univ-antsiranana.mg>
    Apr 27 05:40:53 localhost postfix/qmgr[16116]: 6D4832075A3: from=<root@univ-antsiranana.mg>, size=830, nrcpt=1 (queue active)
    Apr 27 05:40:53 localhost postfix/smtpd[16175]: disconnect from localhost.localdomain[127.0.0.1]
    Apr 27 05:40:53 localhost amavis[6663]: (06663-02) Passed, <root@univ-antsiranana.mg> -> <test@univ-antsiranana.mg>, Message-ID: <20080427024052.05C522075BD@firewall.univ-antsiranana.mg>, Hits: -
    Apr 27 05:40:53 localhost postfix/smtp[16172]: 05C522075BD: to=<test@univ-antsiranana.mg>, relay=127.0.0.1[127.0.0.1], delay=1, status=sent (250 2.6.0 Ok, id=06663-02, from MTA: 250 Ok: queued as 6D4832075A3)
    Apr 27 05:40:53 localhost postfix/qmgr[16116]: 05C522075BD: removed
    Apr 27 05:40:53 localhost postfix/local[16176]: 6D4832075A3: to=<test@univ-antsiranana.mg>, relay=local, delay=0, status=bounced (unknown user: "test")
    Apr 27 05:40:53 localhost postfix/cleanup[16170]: 88AA22075BE: message-id=<20080427024053.88AA22075BE@firewall.univ-antsiranana.mg>
    Apr 27 05:40:53 localhost postfix/qmgr[16116]: 88AA22075BE: from=<>, size=2601, nrcpt=1 (queue active)
    Apr 27 05:40:53 localhost postfix/qmgr[16116]: 6D4832075A3: removed
    Apr 27 05:40:53 localhost postfix/local[16176]: 88AA22075BE: to=<newuser@univ-antsiranana.mg>, orig_to=<root@univ-antsiranana.mg>, relay=local, delay=0, status=sent (delivered to maildir)
    Apr 27 05:40:53 localhost postfix/qmgr16116]: 88AA22075BE: removed
    Or cet utilisateur a comme fichier ldif :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    dn: cn=test,ou=users,ou=horde,dc=univ-antsiranana,dc=mg
    objectclass: top
    objectClass: inetOrgperson
    objectClass: CourierMailAccount
    sn: test
    cn: test
    mail: test@univ-antsiranana.mg
    homeDirectory: /home/vmail
    uidNumber: 1006
    gidNumber: 1006
    mailbox: univ-antsiranana.mg/test/
    userpassword:
    Et le test avec postmap a bien donné:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    univ-antsiranana.mg/test/

  16. #16
    Membre actif
    Profil pro
    Inscrit en
    Mars 2007
    Messages
    202
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2007
    Messages : 202
    Points : 229
    Points
    229
    Par défaut
    ton domaine devrait etre uniquement dans virtual_mailbox_domains pas dans mydestination
    Tutoriaux Postfix: www.starbridge.org/spip
    Messagerie Dédiée, Relais Mail Antispam/Antivirus, Infogérance 24/7: www.eole-its.com

  17. #17
    Futur Membre du Club
    Étudiant
    Inscrit en
    Février 2008
    Messages
    33
    Détails du profil
    Informations personnelles :
    Âge : 40

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Février 2008
    Messages : 33
    Points : 9
    Points
    9
    Par défaut
    ok ! Voici un extrait de mon main.cf :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    virtual_mailbox_base = /home/vmail
    virtual_mailbox_domains = ldap:/etc/postfix/ldap-domains.cf
    Avec ldap-domains.cf :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    server_host = localhost
    server_port = 389
    search_base = dc=univ-antsiranana,dc=mg
    query_filter = (&(objectClass=CourierDomainAlias)(virtualdomain=%s))
    result_attribute = virtualdomain
    bind = yes
    bind_dn = cn =******,dc=univ-antsiranana,dc=mg
    bind_pw = *******
    version = 3
    Et j'ai regardé dans /home/vmail, mais il n'y a pas de répertoire univ-antsiranana/test/. Dois-je le créer ou ça devrait normalement se créer de façon automatique si tout est bien configuré?

    Merci.

  18. #18
    Membre actif
    Profil pro
    Inscrit en
    Mars 2007
    Messages
    202
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2007
    Messages : 202
    Points : 229
    Points
    229
    Par défaut
    pour le domaine listé au deux endroits il faut que celui ci ne se trouve que dans ton ldap

    verifie le contenu de ton ldap.

    tu peux faire un

    postmap -q univ-antsiranana.mg ldap:/etc/postfix/ldap-domains.cf
    Tutoriaux Postfix: www.starbridge.org/spip
    Messagerie Dédiée, Relais Mail Antispam/Antivirus, Infogérance 24/7: www.eole-its.com

  19. #19
    Futur Membre du Club
    Étudiant
    Inscrit en
    Février 2008
    Messages
    33
    Détails du profil
    Informations personnelles :
    Âge : 40

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Février 2008
    Messages : 33
    Points : 9
    Points
    9
    Par défaut
    #postmap -q univ-antsiranana.mg ldap:/etc/postfix/ldap-domains.cf
    Et il n'y a rien d'affiché ...

  20. #20
    Membre actif
    Profil pro
    Inscrit en
    Mars 2007
    Messages
    202
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2007
    Messages : 202
    Points : 229
    Points
    229
    Par défaut
    ton ldap ne contient pas ton domaine.

    il faut que tu l'ajoutes dans le ldap
    Tutoriaux Postfix: www.starbridge.org/spip
    Messagerie Dédiée, Relais Mail Antispam/Antivirus, Infogérance 24/7: www.eole-its.com

Discussions similaires

  1. Problème d'envoi de mail avec postfix
    Par Sephiroth Lune dans le forum Administration système
    Réponses: 3
    Dernier message: 05/02/2015, 16h29
  2. [CentOS6.6 + Postfix] Problème d'envoie de mail
    Par gaet-gaet dans le forum Administration système
    Réponses: 2
    Dernier message: 26/12/2014, 10h50
  3. Problème d'envoie de mail par SMTP
    Par yass dans le forum VB 6 et antérieur
    Réponses: 13
    Dernier message: 12/09/2008, 16h45
  4. Réponses: 3
    Dernier message: 11/10/2006, 10h50
  5. Problème avec envoi de mail et fichier joint
    Par LFC dans le forum Modules
    Réponses: 5
    Dernier message: 20/05/2006, 20h59

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