Salut à tous. J'essaye actuellement de faire mon propre serveur mail. Avant de m'attaquer au SMTP, j'ai fais le serveur POP / POP SSL / IMAP / IMAP SSL avec Dovecot. Les fonction primaires marchent (Pas paramétré Managesieve et SpamAssassin vu que c'est sur un LAN pour le moment.)
Pour info, je suis sous Debian Squeeze 32Bits à jour, sans les backports d'utilisés.
Voici le fichier dovecot.conf
## Fichier Configuration - Serveur POP (SSL) / IMAP (SSL) Dovecot
base_dir = /var/run/dovecot/
protocols = imap pop imaps pops
protocol imap {
listen = 192.168.100.200:143
ssl_listen = 192.168.100.200:993
login_executable = /usr/lib/dovecot/imap-login
mail_executable = /usr/lib/dovecot/imap
mail_plugin_dir = /usr/lib/dovecot/imap
imap_logout_format = bytes ( in=%i : out=%o )
}
protocol pop3 {
listen = *:110
ssl_listen = *:995
pop3_enable_last = no
login_executable = /usr/lib/dovecot/pop3-login
mail_executable = /usr/lib/dovecot/pop3
mail_plugin_dir = /usr/lib/dovecot/pop3
pop3_logout_format = top=%t/%p, retr=%r/%b, del=%d/%m, size=%s
}
protocol managesieve {
listen = *:2000
login_executable = /usr/lib/dovecot/managesieve-login
mail_executable = /usr/lib/dovecot/managesieve
managesieve_max_line_length = 65536
managesieve_logout_format = bytes ( in=%i : out=%o )
}
protocol lda {
postmaster_address = postmaster
auth_socket_path = /var/run/dovecot/auth-master
mail_plugins = cmusieve
}
plugin {
sieve=~/currently-active-script.sieve
sieve_dir=~/.Sieve
sieve_extensions =.sieve
}
disable_plaintext_auth = no
shutdown_clients = yes
auth default {
mechanisms = plain login
passdb pam {
}
userdb passwd {
}
socket listen {
client {
path = /var/spool/postfix/private/auth
mode = 0660
user = postfix
group = postfix
}
}
}
##
## Logging
##
log_path = /var/log/dovecot/dovecot.log
info_log_path = /var/log/dovecot/dovecot-info.log
log_timestamp = "%Y-%m-%d %H:%M:%S "
syslog_facility = mail
##
## SSL settings
##
ssl = yes
ssl_cert_file = /root/pki/certificats/serveur/serveur.crt
ssl_key_file = /root/pki/certificats/serveur/serveur.key
ssl_ca_file = /root/pki/CA/ca.crt
ssl_verify_client_cert = no
ssl_cipher_list = ALL:!LOW:!SSLv2
verbose_ssl = yes
mail_location = maildir:~/.Maildir
Cependant, là à l'étape du SMTP avec Postfix ça coince quelque peu ![neutral](https://debian-facile.org/img/smilies/neutral.png)
Voici le main.cf
## Fichier Configuration - Serveur SMTP (SSL) Postfix
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
# Parametres - Base
myhostname = serveur.merckel.lan
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mynetworks = 127.0.0.0/8 192.168.100.0/24 merckel.lan
mydestination = merckel.lan, serveur.merckel.lan, localhost.merckel.lan, localhost
relayhost =
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = 192.168.100.200 192.168.200.200
luser_relay =
readme_directory = no
# Parametres - SSL
smtpd_tls_cert_file=/root/pki/certificats/serveur/serveur.crt
smtpd_tls_key_file=/root/pki/certificats/serveur/serveur.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
# Parametres - SASL
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_security_options = noanonymous
#disable_vrfy_command = yes
# Parametres - Autres
append_dot_mydomain = no
append_at_myorigin = yes
delay_warning_time = 4h
maximal_queue_lifetime = 10d
mailbox_size_limit = 0
message_size_limit = 15728640
# Dovecot LDA
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
# Parametres - Securites
smtpd_delay_reject = yes
smtpd_helo_required = yes
strict_rfc821_envelopes = yes
smtpd_client_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_rbl_client bl.spamcop.net,
reject_rbl_client dnsbl.njabl.org,
reject_rbl_client cbl.abuseat.org,
reject_rbl_client sbl-xbl.spamhaus.org,
reject_rbl_client list.dsbl.org,
permit
smtpd_helo_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_non_fqdn_hostname,
reject_invalid_hostname,
permit
smtpd_sender_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_non_fqdn_sender,
reject_unknown_sender_domain,
permit
smtpd_recipient_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_non_fqdn_recipient,
reject_unknown_recipient_domain,
reject_unauth_destination,
permit
et le master.cf
## Fichier Configuration - Serveur SMTP Postfix
#
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - - - - smtpd
#submission inet n - - - - smtpd
-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 smtpd_tls_wrappermode=yes
-o smtpd_sasl_auth_enable=yes
-o smtpd_client_restrictions=permit_sasl_authenticated,reject
-o milter_macro_daemon_name=ORIGINATING
pickup fifo n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo 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_fallback_relay=
# -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
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/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 -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}
# Dovecot LDA
dovecot unix - n n - - pipe
flags=DRhu user=vmail:mail argv=/usr/lib/dovecot/deliver -d $recipient
Lorsque je démarre et arrête le daemon postfix, j'ai aucun message d'erreur.
Alors, lorsque j'essaye de me connecter sur mon client Thunderbird, impossible.
Coté Log sur le serveur, rien.... aucun log d'erreur. Niveau firewall de la machine pour être sur j'ai fais les test avec tout ouvert.
Auriez-vous une info / explication ?
Mon fichier main.cf serait-il pas complet ?
Dernière modification par mecanotox (24-08-2012 16:42:42)