Partage
  • Partager sur Facebook
  • Partager sur Twitter

Probleme d'envoi mail Postfix/dovecot

    12 juin 2019 à 18:35:45

    Bonjour à tous et merci d'avance à la communauté pour votre aide :)

    je débute dans la configuration des serveurs mail et j'ai un problème d'envoi de mail avec mon serveur , j'utilise postfix et dovecot suivi de Rainloop comme client ,

    Je reçois les mails extérieur correctement et je n'ai aucun autre soucis apparent (pour l'instant XD ).

    mon postconf -n :

    alias_database = $alias_maps
    alias_maps = hash:/etc/postfix/aliases
    append_dot_mydomain = no
    biff = no
    broken_sasl_auth_clients = yes
    command_directory = /usr/sbin
    compatibility_level = 2
    data_directory = /var/lib/postfix
    debug_peer_level = 2
    html_directory = no
    inet_interfaces = all
    inet_protocols = ipv4
    mail_owner = postfix
    mailq_path = /usr/bin/mailq.postfix
    manpage_directory = /usr/share/man
    mynetworks = 127.0.0.0/8
    newaliases_path = /usr/bin/newaliases.postfix
    proxy_interfaces = xx.xx.xx.xx
    queue_directory = /var/spool/postfix
    readme_directory = no
    relay_domains = *
    sendmail_path = /usr/sbin/sendmail.postfix
    setgid_group = postdrop
    smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
    smtpd_banner = $myhostname $mail_name (RisingCorp. Mail)
    smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
    smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_authenticated_header = yes
    smtpd_sasl_path = /var/spool/postfix/private/auth
    smtpd_sasl_security_options = noanonymous
    smtpd_sasl_tls_security_options = $smtpd_sasl_security_options
    smtpd_sasl_type = dovecot
    smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert.pem
    smtpd_tls_key_file = /etc/ssl/private/ssl-cert.key
    smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
    smtpd_use_tls = yes
    unknown_local_recipient_reject_code = 550
    virtual_alias_maps = hash:/etc/postfix/vmail_aliases
    virtual_gid_maps = static:2222
    virtual_mailbox_base = /var/vmail
    virtual_mailbox_domains = hash:/etc/postfix/vmail_domains
    virtual_mailbox_maps = hash:/etc/postfix/vmail_mailbox
    virtual_minimum_uid = 2222
    virtual_transport = lmtp:unix:private/dovecot-lmtp
    virtual_uid_maps = static:2222



    mon doveconf -n :

    # 2.2.27 (c0f36b0): /etc/dovecot/dovecot.conf
    # Pigeonhole version 0.4.16 (fed8554)
    # OS: Linux 4.9.0-9-686-pae i686 Debian 9.9 ext4
    auth_mechanisms = plain login
    disable_plaintext_auth = no
    first_valid_uid = 2222
    last_valid_uid = 2222
    listen = *
    mail_gid = 2222
    mail_location = maildir:/var/vmail/%d/%n/mail
    mail_privileged_group = vmail
    mail_uid = 2222
    maildir_stat_dirs = yes
    namespace inbox {
      inbox = yes
      location =
      mailbox Drafts {
        auto = subscribe
        special_use = \Drafts
      }
      mailbox Junk {
        auto = subscribe
        special_use = \Junk
      }
      mailbox Sent {
        auto = subscribe
        special_use = \Sent
      }
      mailbox "Sent Messages" {
        auto = subscribe
        special_use = \Sent
      }
      mailbox Trash {
        auto = subscribe
        special_use = \Trash
      }
      prefix =
    }
    passdb {
      args = scheme=SHA1 /etc/dovecot/passwd
      driver = passwd-file
    }
    protocols = imap lmtp
    service auth-worker {
      user = vmail
    }
    service auth {
      unix_listener /var/spool/postfix/private/auth {
        group = postfix
        mode = 0666
        user = postfix
      }
      unix_listener auth-userdb {
        group = vmail
        mode = 0600
        user = vmail
      }
      user = dovecot
    }
    service imap-login {
      inet_listener imap {
        port = 143
      }
      inet_listener imaps {
        port = 993
        ssl = yes
      }
      service_count = 0
    }
    service lmtp {
      unix_listener /var/spool/postfix/private/dovecot-lmtp {
        group = postfix
        mode = 0600
        user = postfix
      }
    }
    ssl = required
    ssl_cert = </etc/ssl/certs/mailserver.crt
    ssl_cipher_list = ALL:!aNULL:!eNULL:!LOW:!MEDIUM:!EXP:!RC2:!RC4:!DES:!3DES:!MD5:!PSK:!SRP:!DSS:!AECDH:!ADH:@STRENGTH
    ssl_dh_parameters_length = 2048
    ssl_key =  # hidden, use -P to show it
    ssl_prefer_server_ciphers = yes
    userdb {
      args = uid=2222 gid=2222 home=/var/vmail/%d/%n allow_all_users=yes
      driver = static
    }



    Dès que je me connecte via rainloop je me retrouve avec ça dans les logs :

    Jun 12 17:17:29 mx1 dovecot: imap-login: Login: user=<user@site>, method=PLAIN, rip=192.168.1.254, lip=192.168.1.5, mpid=2023, TLS, session=<Mztt6SGLGpzAqAH+>
    Jun 12 17:17:29 mx1 dovecot: imap(user@site): Logged out in=11 out=422
    Jun 12 17:17:30 mx1 dovecot: imap-login: Login: user=<user@site>, method=PLAIN, rip=192.168.1.254, lip=192.168.1.5, mpid=2024, TLS, session=<CBZ76SGLHJzAqAH+>
    Jun 12 17:17:30 mx1 dovecot: imap(user@site): Logged out in=80 out=1676

    -
    Edité par MrRise 12 juin 2019 à 18:39:44

    • Partager sur Facebook
    • Partager sur Twitter

    Pourquoi faire simple quand on peut faire compliqué ?

    Probleme d'envoi mail Postfix/dovecot

    × Après avoir cliqué sur "Répondre" vous serez invité à vous connecter pour que votre message soit publié.
    • Editeur
    • Markdown