[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Probleme serveur mail dovecot + mysql



Joss Red a écrit :

commentaires = ligne précédente

> # 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

ça serait mieux de décommenter celui-là (sinon, comment savoir si qq chose
merdouille dans l'envoi?)
 
> # 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:${queue_directory}/smtpd_scache
> smtp_tls_session_cache_database = btree:${queue_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 = host_1

pourquoi le host n'est-il pas FQDN? (host.domain)
et ajouter:
mydomain = mondomaineamoi

> alias_maps = hash:/etc/aliases
> alias_database = hash:/etc/aliases
> myorigin = /etc/mailname
> mydestination = host_1, localhost.localdomain, localhost, 127.0.0.1

mydestination = $myhostname, $mydomain, localhost.localdomain, localhost

> relayhost = [smtp.monsuperdomaine.com]
> mynetworks = 127.0.0.0/8

mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.1.0/24
(le dernier correspond à mon LAN, il est à adapter en fonction du tiens)

> mailbox_command = procmail -a "$EXTENSION"

je ne connais pas dovecot, mais avec courier-imap il faut modifier en:
mailbox_command = procmail -a "$EXTENSION" -d "$USER"

> mailbox_size_limit = 0
> recipient_delimiter = +
> inet_interfaces = all

penser aussi à IPv6:
inet_protocols = all

> smtpd_sasl_auth_enable = yes

celui me fout la zone is @ Yes (mais mon installation est un peu particulière)
(et quel est l'intérêt de passer par SASL en interne?)

> smtpd_sasl_local_domain = host_1

smtpd_sasl_local_domain = $myhostname

> smtpd_recipient_restrictions =
>     permit_mynetworks
>     permit_sasl_authenticated
>     reject_unauth_destination
>     
> smtpd_sasl_authenticated_header = yes
> 
> smtpd_sasl_security_options = noanonymous
> 
> broken_sasl_auth_clients = yes
> 
> smtpd_sasl_type = dovecot
> smtpd_sasl_path = private/auth
> 
> home_mailbox = Maildir/

si tu es en IMAP et pas en POP3

> smtpd_helo_required = yes
> smtpd_recipient_restrictions = permit_mynetworks
> permit_sasl_authenticated reject_unauth_destination
> smtpd_sasl_auth_enable = yes
> smtpd_sasl_type = dovecot
> smtpd_sasl_path = private/auth

manquent: 
relay_domains = $mydestination (ne relaye que ton domaine)
masquerade_domains = mondomaineamoi (strip les sous-domaines de l'adresse email)
transports_maps = hash:/etc/postfix/transport (contient le/les relai(s) vers qui
   envoyer les emails; par ex, chez moi, ça contient:
   smtp      smtp:smtp.gmail.com:587
   (ET ça nécessite un coup de postmap pour créer le hash)



vérifie que tu as bien MàJ les hash des fichiers de conf, sans oublier
/etc/aliases.
Et si tu utilises TLS, que smtpd_tls_security_level=may (sinon gare à procmail)

Vérifier aussi si SASL est fonctionnel.

Et regarde sur le net: y'a des tas de bons HOWTOs sur cette combinaison postfix/
dovecot/mysql
-- 
This Fortune Examined By INSPECTOR NO. 2-14


Reply to: