Bonjour suite à ce
Tutoriel (Serveur Mail) et à l'utilisation du
script d'installation (vachement pratique merci beaucoup, je ne suis jamais allé aussi loin dans l'installation du serveur mail) j'ai un petit soucis.
En gros tout à l'air OK, sauf 1 truc : le SMTP en SSL
Voici un screenshot de l'ecran test dans RainLoop (je ne connaissais pas, il à l'air super) :
Et ici, le rapport généré par le
script de dépannage
### Rapport pour Mail généré le 17-11-2015 à 10:30
Kernel : 3.16.0-4-amd64
...................................
## Check Ports ##
...................................
25 :
0.0.0.0:25 13530/master
110 :
143 :
0.0.0.0:143 13538/dovecot
587 :
0.0.0.0:587 13530/master
993 :
0.0.0.0:993 13538/dovecot
995 :
4190 :
0.0.0.0:4190 13538/dovecot
...................................
## Check Softs ##
...................................
Le programme postfix est installé
Le programme postfix-mysql est installé
Le programme dovecot-core est installé
Le programme dovecot-imapd est installé
Le programme dovecot-lmtpd est installé
Le programme dovecot-mysql est installé
Le programme dovecot-sieve est installé
Le programme dovecot-managesieved est installé
Le programme opendkim est installé
Le programme opendkim-tools est installé
Le programme opendmarc est installé
Le programme spamassassin est installé
Le programme spamc est installé
...................................
## OpenDKIM Confs ##
...................................
##### ----------- File : /etc/opendkim.conf -----------------------------------------------------------------------------------------------------------------------------
AutoRestart Yes
AutoRestartRate 10/1h
UMask 002
Syslog Yes
SyslogSuccess Yes
LogWhy Yes
OversignHeaders From
AlwaysAddARHeader Yes
Canonicalization relaxed/simple
ExternalIgnoreList refile:/etc/opendkim/TrustedHosts
InternalHosts refile:/etc/opendkim/TrustedHosts
KeyTable refile:/etc/opendkim/KeyTable
SigningTable refile:/etc/opendkim/SigningTable
Mode sv
PidFile /var/run/opendkim/opendkim.pid
SignatureAlgorithm rsa-sha256
UserID opendkim:opendkim
Socket local:/var/spool/postfix/opendkim/opendkim.sock
##### ----------- File : /etc/opendkim/TrustedHosts -----------------------------------------------------------------------------------------------------------------------------
127.0.0.1
localhost
::1
*.antarka.com
##### ----------- File : /etc/opendkim/KeyTable -----------------------------------------------------------------------------------------------------------------------------
mail._domainkey.antarka.com antarka.com:mail:/etc/opendkim/keys/antarka.com/mail.private
##### ----------- File : /etc/opendkim/SigningTable -----------------------------------------------------------------------------------------------------------------------------
*@antarka.com mail._domainkey.antarka.com
##### ----------- File : /etc/opendmarc.conf -----------------------------------------------------------------------------------------------------------------------------
AutoRestart Yes
AutoRestartRate 10/1h
UMask 0002
Syslog true
AuthservID "sd-79585.antarka.com"
TrustedAuthservIDs "sd-79585.antarka.com"
IgnoreHosts /etc/opendkim/TrustedHosts
RejectFailures false
UserID opendmarc:opendmarc
PidFile /var/run/opendmarc.pid
Socket local:/var/spool/postfix/opendmarc/opendmarc.sock
...................................
## DoveCot Confs ##
...................................
##### ----------- File : /etc/dovecot/dovecot.conf -----------------------------------------------------------------------------------------------------------------------------
!include_try /usr/share/dovecot/protocols.d/*.protocol
protocols = imap lmtp sieve
listen = *
!include conf.d/*.conf
##### ----------- File : /etc/dovecot/dovecot-sql.conf.ext -----------------------------------------------------------------------------------------------------------------------------
# Paramètres de connexion
driver = mysql
connect = host=127.0.0.1 dbname=postfix user=postfix password=monpass
# Permet de définir l'algorithme de hachage.
# Pour plus d'information: http://wiki2.dovecot.org/Authentication/PasswordSchemes
# /!\ ATTENTION : ne pas oublier de modifier le paramètre $CONF['encrypt'] de PostfixAdmin
default_pass_scheme = MD5-CRYPT
# Requête de récupération du mot de passe du compte utilisateur
password_query = SELECT password FROM mailbox WHERE username = '%u'
##### ----------- File : /etc/dovecot/conf.d/auth-sql.conf.ext -----------------------------------------------------------------------------------------------------------------------------
passdb {
driver = sql
args = /etc/dovecot/dovecot-sql.conf.ext
}
userdb {
driver = static
args = uid=vmail gid=vmail home=/var/mail/vhosts/%d/%n
}
##### ----------- File : /etc/dovecot/conf.d/10-auth.conf -----------------------------------------------------------------------------------------------------------------------------
disable_plaintext_auth = yes
auth_mechanisms = plain login
!include auth-sql.conf.ext
##### ----------- File : /etc/dovecot/conf.d/10-mail.conf -----------------------------------------------------------------------------------------------------------------------------
mail_location = maildir:/var/mail/vhosts/%d/%n/mail
maildir_stat_dirs=yes
namespace inbox {
inbox = yes
}
mail_uid = 5000
mail_gid = 5000
first_valid_uid = 5000
last_valid_uid = 5000
mail_privileged_group = vmail
##### ----------- File : /etc/dovecot/conf.d/10-master.conf -----------------------------------------------------------------------------------------------------------------------------
service imap-login {
inet_listener imap {
port = 143
}
inet_listener imaps {
port = 993
ssl = yes
}
service_count = 0
}
service imap {
}
service lmtp {
unix_listener /var/spool/postfix/private/dovecot-lmtp {
mode = 0600
user = postfix
group = postfix
}
}
service auth {
unix_listener /var/spool/postfix/private/auth {
mode = 0666
user = postfix
group = postfix
}
unix_listener auth-userdb {
mode = 0600
user = vmail
group = vmail
}
user = dovecot
}
service auth-worker {
user = vmail
}
##### ----------- File : /etc/dovecot/conf.d/10-ssl.conf -----------------------------------------------------------------------------------------------------------------------------
ssl = required
ssl_cert = </etc/ssl/certs/mailserver_dovecot.crt
ssl_key = </etc/ssl/private/mailserver_dovecot.key
ssl_protocols = !SSLv2 !SSLv3
ssl_cipher_list = ALL:!aNULL:!eNULL:!LOW:!MEDIUM:!EXP:!RC2:!RC4:!DES:!3DES:!MD5:!PSK:!SRP:!DSS:!AECDH:!ADH:@STRENGTH
ssl_prefer_server_ciphers = yes
ssl_dh_parameters_length = 2048
##### ----------- File : /etc/dovecot/conf.d/20-lmtp.conf -----------------------------------------------------------------------------------------------------------------------------
protocol lmtp {
postmaster_address = postmaster@antarka.com
mail_plugins = sieve
}
##### ----------- File : /etc/dovecot/conf.d/90-sieve.conf -----------------------------------------------------------------------------------------------------------------------------
plugin {
sieve = /var/mail/vhosts/%d/%n/.dovecot.sieve
sieve_default = /var/mail/sieve/default.sieve
sieve_dir = /var/mail/vhosts/%d/%n/sieve
sieve_global_dir = /var/mail/sieve
}
...................................
## PostFix Confs ##
...................................
##### ----------- File : /etc/postfix/main.cf -----------------------------------------------------------------------------------------------------------------------------
#######################
## GENERALS SETTINGS ##
#######################
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
append_dot_mydomain = no
readme_directory = no
delay_warning_time = 4h
mailbox_command = procmail -a "$EXTENSION"
recipient_delimiter = +
disable_vrfy_command = yes
message_size_limit = 502400000
mailbox_size_limit = 1024000000
inet_interfaces = all
inet_protocols = ipv4
myhostname = sd-79585.antarka.com
myorigin = sd-79585.antarka.com
mydestination = localhost localhost.$mydomain
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
relayhost =
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
####################
## TLS PARAMETERS ##
####################
# SMTP ( OUTGOING / Client )
# ----------------------------------------------------------------------
smtp_tls_loglevel = 1
smtp_tls_security_level = may
smtp_tls_CAfile = /etc/ssl/certs/mailserver_ca.crt
smtp_tls_protocols = !SSLv2, !SSLv3
smtp_tls_mandatory_protocols = !SSLv2, !SSLv3
smtp_tls_mandatory_ciphers = high
smtp_tls_exclude_ciphers = aNULL, eNULL, EXPORT, DES, 3DES, RC2, RC4, MD5, PSK, SRP, DSS, AECDH, ADH
smtp_tls_note_starttls_offer = yes
# SMTPD ( INCOMING / Server )
# ----------------------------------------------------------------------
smtpd_tls_loglevel = 1
smtpd_tls_auth_only = yes
smtpd_tls_security_level = may
smtpd_tls_received_header = yes
smtpd_tls_protocols = !SSLv2, !SSLv3
smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3
smtpd_tls_mandatory_ciphers = medium
# Infos (voir : postconf -d)
# Medium cipherlist = aNULL:-aNULL:ALL:!EXPORT:!LOW:+RC4:@STRENGTH
# High cipherlist = aNULL:-aNULL:ALL:!EXPORT:!LOW:!MEDIUM:+RC4:@STRENGTH
# smtpd_tls_exclude_ciphers = NE PAS modifier cette directive pour des raisons de compatibilité
# avec les autres serveurs de mail afin d'éviter une erreur du type
# "no shared cipher" ou "no cipher overlap" puis un fallback en
# plain/text...
# smtpd_tls_cipherlist = Ne pas modifier non plus !
smtpd_tls_CAfile = $smtp_tls_CAfile
smtpd_tls_cert_file = /etc/ssl/certs/mailserver_postfix.crt
smtpd_tls_key_file = /etc/ssl/private/mailserver_postfix.key
smtpd_tls_dh1024_param_file = $config_directory/dh2048.pem
smtpd_tls_dh512_param_file = $config_directory/dh512.pem
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
lmtp_tls_session_cache_database = btree:${data_directory}/lmtp_scache
tls_preempt_cipherlist = yes
tls_random_source = dev:/dev/urandom
# ----------------------------------------------------------------------
#####################
## SASL PARAMETERS ##
#####################
smtpd_sasl_auth_enable = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_tls_security_options = $smtpd_sasl_security_options
smtpd_sasl_local_domain = $mydomain
smtpd_sasl_authenticated_header = yes
broken_sasl_auth_clients = yes
##############################
## VIRTUALS MAPS PARAMETERS ##
##############################
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
virtual_minimum_uid = 5000
virtual_mailbox_base = /var/mail
virtual_transport = lmtp:unix:private/dovecot-lmtp
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf
relay_domains = mysql:/etc/postfix/mysql-relay-domains.cf
######################
## ERRORS REPORTING ##
######################
# notify_classes = bounce, delay, resource, software
notify_classes = resource, software
error_notice_recipient = admin@domain.tld
# delay_notice_recipient = admin@domain.tld
# bounce_notice_recipient = admin@domain.tld
# 2bounce_notice_recipient = admin@domain.tld
##################
## RESTRICTIONS ##
##################
smtpd_recipient_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_non_fqdn_recipient,
reject_unauth_destination,
reject_unknown_recipient_domain,
reject_rbl_client zen.spamhaus.org
smtpd_helo_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_invalid_helo_hostname,
reject_non_fqdn_helo_hostname
# reject_unknown_helo_hostname
smtpd_client_restrictions =
permit_mynetworks,
permit_inet_interfaces,
permit_sasl_authenticated
# reject_plaintext_session,
# reject_unauth_pipelining
smtpd_sender_restrictions =
reject_non_fqdn_sender,
reject_unknown_sender_domain
smtpd_relay_restrictions =
permit_mynetworks,
reject_unknown_sender_domain,
permit_sasl_authenticated,
reject_unauth_destination
#############
## MILTERS ##
#############
milter_protocol = 6
milter_default_action = accept
smtpd_milters = unix:/opendkim/opendkim.sock, unix:/opendmarc/opendmarc.sock
non_smtpd_milters = unix:/opendkim/opendkim.sock
##### ----------- File : /etc/postfix/master.cf -----------------------------------------------------------------------------------------------------------------------------
#
# Postfix master process configuration file. For details on the format
# of the file, see the master(5) manual page (command: "man 5 master" or
# on-line: http://www.postfix.org/master.5.html).
#
# Do not forget to execute "postfix reload" after editing this file.
#
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - - - - smtpd
-o content_filter=spamassassin
#smtp inet n - - - 1 postscreen
#smtpd pass - - - - - smtpd
#dnsblog unix - - - - 0 dnsblog
#tlsproxy unix - - - - 0 tlsproxy
submission inet n - - - - smtpd
-o content_filter=spamassassin
-o syslog_name=postfix/submission
-o smtpd_tls_dh1024_param_file=${config_directory}/dh2048.pem
-o smtpd_tls_security_level=encrypt
-o smtpd_sasl_auth_enable=yes
# -o smtpd_reject_unlisted_recipient=no
# -o smtpd_client_restrictions=$mua_client_restrictions
# -o smtpd_helo_restrictions=$mua_helo_restrictions
# -o smtpd_sender_restrictions=$mua_sender_restrictions
# -o smtpd_recipient_restrictions=
# -o smtpd_relay_restrictions=permit_sasl_authenticated,reject
# -o milter_macro_daemon_name=ORIGINATING
#smtps inet n - - - - smtpd
# -o syslog_name=postfix/smtps
# -o smtpd_tls_wrappermode=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_reject_unlisted_recipient=no
# -o smtpd_client_restrictions=$mua_client_restrictions
# -o smtpd_helo_restrictions=$mua_helo_restrictions
# -o smtpd_sender_restrictions=$mua_sender_restrictions
# -o smtpd_recipient_restrictions=
# -o smtpd_relay_restrictions=permit_sasl_authenticated,reject
# -o milter_macro_daemon_name=ORIGINATING
#628 inet n - - - - qmqpd
pickup unix n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr unix n - n 300 1 qmgr
#qmgr unix n - 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_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
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent. See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
#
# ====================================================================
#
# Recent Cyrus versions can use the existing "lmtp" master.cf entry.
#
# Specify in cyrus.conf:
# lmtp cmd="lmtpd -a" listen="localhost:lmtp" proto=tcp4
#
# Specify in main.cf one or more of the following:
# mailbox_transport = lmtp:inet:localhost
# virtual_transport = lmtp:inet:localhost
#
# ====================================================================
#
# Cyrus 2.1.5 (Amos Gouaux)
# Also specify in main.cf: cyrus_destination_recipient_limit=1
#
#cyrus unix - n n - - pipe
# user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
#
# ====================================================================
# Old example of delivery via Cyrus.
#
#old-cyrus unix - n n - - pipe
# flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
#
# ====================================================================
#
# See the Postfix UUCP_README file for configuration details.
#
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
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}
spamassassin unix - n n - - pipe
user=debian-spamd argv=/usr/bin/spamc -f -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}
##### ----------- File : /etc/postfix/mysql-virtual-mailbox-domains.cf -----------------------------------------------------------------------------------------------------------------------------
hosts = 127.0.0.1
user = postfix
password = monpass
dbname = postfix
query = SELECT domain FROM domain WHERE domain='%s' and backupmx = 0 and active = 1
##### ----------- File : /etc/postfix/mysql-virtual-mailbox-maps.cf -----------------------------------------------------------------------------------------------------------------------------
hosts = 127.0.0.1
user = postfix
password = monpass
dbname = postfix
query = SELECT maildir FROM mailbox WHERE username='%s' AND active = 1
##### ----------- File : /etc/postfix/mysql-virtual-alias-maps.cf -----------------------------------------------------------------------------------------------------------------------------
hosts = 127.0.0.1
user = postfix
password = monpass
dbname = postfix
query = SELECT goto FROM alias WHERE address='%s' AND active = 1
...................................
## ClamAV Confs ##
...................................
##### ----------- File : /etc/clamav/freshclam.conf -----------------------------------------------------------------------------------------------------------------------------
--> Fichier Invalide
##### ----------- File : /etc/clamav/clamd.conf -----------------------------------------------------------------------------------------------------------------------------
--> Fichier Invalide
...................................
## Spamassassin Confs ##
...................................
##### ----------- File : /etc/spamassassin/local.cf -----------------------------------------------------------------------------------------------------------------------------
rewrite_header Subject *****SPAM*****
report_safe 0
whitelist_from *@antarka.com
add_header all Report _REPORT_
add_header spam Flag _YESNOCAPS_
add_header all Status _YESNO_, score=_SCORE_ required=_REQD_ tests=_TESTS_ autolearn=_AUTOLEARN_ version=_VERSION_
add_header all Level _STARS(*)_
add_header all Checker-Version SpamAssassin _VERSION_ (_SUBVERSION_) on _HOSTNAME_
##### ----------- File : /etc/default/spamassassin -----------------------------------------------------------------------------------------------------------------------------
# /etc/default/spamassassin
# Duncan Findlay
# WARNING: please read README.spamd before using.
# There may be security risks.
# If you're using systemd (default for jessie), the ENABLED setting is
# not used. Instead, enable spamd by issuing:
# systemctl enable spamassassin.service
# Change to "1" to enable spamd on systems using sysvinit:
ENABLED=0
# Options
# See man spamd for possible options. The -d option is automatically added.
# SpamAssassin uses a preforking model, so be careful! You need to
# make sure --max-children is not set to anything higher than 5,
# unless you know what you're doing.
OPTIONS="--create-prefs --max-children 5 --helper-home-dir"
# Pid file
# Where should spamd write its PID to file? If you use the -u or
# --username option above, this needs to be writable by that user.
# Otherwise, the init script will not be able to shut spamd down.
PIDFILE="/var/run/spamd.pid"
# Set nice level of spamd
#NICE="--nicelevel 15"
# Cronjob
# Set to anything but 0 to enable the cron job to automatically update
# spamassassin's rules on a nightly basis
CRON=1
...................................
## Logs ##
...................................
##### ----------- File : /var/log/mail.warn -----------------------------------------------------------------------------------------------------------------------------
Nov 17 09:34:27 sd-79585 dovecot: master: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Nov 17 09:34:27 sd-79585 dovecot: log: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Nov 17 09:38:06 sd-79585 dovecot: master: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Nov 17 09:38:06 sd-79585 dovecot: log: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Nov 17 09:38:06 sd-79585 dovecot: ssl-params: Warning: Regenerating /var/lib/dovecot/ssl-parameters.dat for ssl_dh_parameters_length=2048
Nov 17 09:38:10 sd-79585 dovecot: master: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Nov 17 09:38:10 sd-79585 dovecot: log: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Nov 17 09:38:10 sd-79585 dovecot: ssl-params: Warning: Regenerating /var/lib/dovecot/ssl-parameters.dat for ssl_dh_parameters_length=2048
Nov 17 09:38:12 sd-79585 dovecot: master: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Nov 17 09:38:12 sd-79585 dovecot: log: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Nov 17 09:38:12 sd-79585 dovecot: ssl-params: Warning: Regenerating /var/lib/dovecot/ssl-parameters.dat for ssl_dh_parameters_length=2048
Nov 17 09:42:11 sd-79585 dovecot: master: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Nov 17 09:42:11 sd-79585 dovecot: ssl-params: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Nov 17 09:42:11 sd-79585 dovecot: ssl-params: Error: child process failed with status 15
Nov 17 09:42:11 sd-79585 dovecot: anvil: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Nov 17 09:42:11 sd-79585 dovecot: log: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Nov 17 09:42:11 sd-79585 dovecot: ssl-params: Warning: Regenerating /var/lib/dovecot/ssl-parameters.dat for ssl_dh_parameters_length=2048
##### ----------- File : /var/log/mail.err -----------------------------------------------------------------------------------------------------------------------------
Nov 17 09:42:11 sd-79585 dovecot: ssl-params: Error: child process failed with status 15
...................................
## Vhost Confs ##
...................................
##### ----------- File : /etc/nginx/sites-enabled/rainloop.conf -----------------------------------------------------------------------------------------------------------------------------
server {
listen 80;
server_name webmail.antarka.com;
root /var/www/rainloop;
index index.php;
charset utf-8;
add_header Strict-Transport-Security max-age=31536000;
# auth_basic "Webmail - Connexion";
# auth_basic_user_file /etc/nginx/passwdfile;
location ^~ /data {
deny all;
}
location / {
try_files $uri $uri/ index.php;
}
location ~* \.php$ {
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
##### ----------- File : /etc/nginx/sites-enabled/postfixadmin.conf -----------------------------------------------------------------------------------------------------------------------------
server {
listen 80;
server_name postfixadmin.antarka.com;
root /var/www/postfixadmin;
index index.php;
charset utf-8;
auth_basic "PostfixAdmin - Connexion";
auth_basic_user_file /etc/nginx/passwdfile;
location / {
try_files $uri $uri/ index.php;
}
location ~* \.php$ {
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
...................................
## DNS ##
...................................
- MX : antarka.com. 3600 IN MX 1 mx.antarka.com.
- SPF : antarka.com. 3600 IN TXT "v=spf1 a mx ip4:62.210.105.59 ~all"
- DKIM : mail._domainkey.antarka.com. 3600 IN TXT "v=DKIM1\; k=rsa\; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCyexDyJQVMRIzCl2JiagW8hapkDHXANhlqdzE4ql8iLeocYtruyRSWKTZ+PxIKuTwlvQoqrEovvq/d4Ukw2uQFH28rXyBCdc78M6Kbs0jew0L3AY6wGQoqkvKvoaMRUGkmlocXrxKT4F7pnISrBrdCIEK4phfvMLQ1V2KsPvrGlwIDAQAB"
- DMARC : _dmarc.antarka.com. 3600 IN TXT "v=DMARC1\; p=reject\; rua=mailto:postmaster@antarka.com\; ruf=mailto:admin@antarka.com\; fo=0\; adkim=s\; aspf=s\; pct=100\; rf=afrf\; sp=reject"
- PFA : postfixadmin.antarka.com. 3600 IN CNAME sd-79585.antarka.com.
- RAINLOOP : rainloop.antarka.com. 3600 IN CNAME sd-79585.antarka.com.
- REVERSE : 62-210-105-59.rev.poneytelecom.eu.
...................................
## DOVEADM ##
...................................
- User Info --------------------
field value
uid 5000
gid 5000
home /var/mail/vhosts/antarka.com/admin
mail maildir:/var/mail/vhosts/antarka.com/admin/mail
--------------------------------
- Dovecot errors ---------------
Nov 17 09:42:11 ssl-params: Warning: Regenerating /var/lib/dovecot/ssl-parameters.dat for ssl_dh_parameters_length=2048
--------------------------------
Du coup si quelqu'un sait d'ou viens cette erreur, et comment la réparé, je suis preneur. ^^
Cordialement, Purexo
EDIT :
En Debug random, je me suis dit : 'tiens si je mettais le SECURE en STARTTLS au lieu de SSL' et ben visiblement ça marche.
Je me suis envoyé un mail de mon compte OVH
contact@purexo.eu vers le serveur créé
contact@antarka.com : OK (ça c'est le test IMAP du coup)
J'ai testé le sens inverse :
contact@antarka.com ->
contact@purexo.eu . Le message mets un peu de temps à passer.
Nov 17 11:59:55 sd-79585 postfix/smtp[16159]: connect to mx1.ovh.net[213.186.33.29]:25: Connection refused
Je crois que OVH fait par moment la gueule.
Donc SSL : BAD. STARTTLS : OK
Si il y moyen de faire plus propre je prens, mais au pire ça à l'air de fonctionner ^^