Bonjour,
Je ne souhaite pas faire l’arriviste et comme il s’agit de mon premier message sur ce forum, je souhaite me présenter.
Je m’appelle François et je suis développeur web. Depuis quelques semaines je nourrissai l’envie d’avoir un serveur. J’ai donc fait l’acquisition d’un KS3 (Kimsufi) sur lequel j’ai installer un serveur web.
Depuis hier je tente d’installer un serveur mail postfix et dovecot à l’aide de ce tuto : http://justincoutarel.fr/2014/05/installation-dun-serveur-de-mails-avec-postfix-et-dovecot-sur-un-serveur-dedie-kimsufi-sous-ubuntu-server-14-04-lts/
Le serveur envoie bien les mails, mais en revanche, impossible d’en recevoir. Il ne reçoit aucun mail.
Voici les logs dans un premier temps :
service postfix restart :
Mar 22 22:08:15 ns346448 postfix/master[17028]: terminating on signal 15
Mar 22 22:08:15 ns346448 postfix/master[18066]: daemon started -- version 2.11.1, configuration /etc/postfix
Après l’envoie d’un mail :
Mar 22 22:09:02 ns346448 postfix/pickup[18069]: 0D2EB84054: uid=0 from=<root>
Mar 22 22:09:02 ns346448 postfix/cleanup[18130]: 0D2EB84054: message-id=<20150322210902.0D2EB84054@ns346448.ip-91-121-143.eu>
Mar 22 22:09:02 ns346448 postfix/qmgr[18070]: 0D2EB84054: from=<root@jhiki.com>, size=725, nrcpt=1 (queue active)
Mar 22 22:09:02 ns346448 postfix/trivial-rewrite[18131]: warning: do not list domain jhiki.com in BOTH virtual_alias_domains and virtual_mailbox_domains
Mar 22 22:09:02 ns346448 postfix/error[18134]: 0D2EB84054: to=<root@jhiki.com>, relay=none, delay=0.1, delays=0.07/0.01/0/0.03, dsn=5.1.1, status=bounced (User unknown in virtual alias table)
Mar 22 22:09:02 ns346448 postfix/cleanup[18130]: 1E64684CBF: message-id=<20150322210902.1E64684CBF@ns346448.ip-91-121-143.eu>
Mar 22 22:09:02 ns346448 postfix/bounce[18135]: 0D2EB84054: sender non-delivery notification: 1E64684CBF
Mar 22 22:09:02 ns346448 postfix/qmgr[18070]: 1E64684CBF: from=<>, size=2524, nrcpt=1 (queue active)
Mar 22 22:09:02 ns346448 postfix/qmgr[18070]: 0D2EB84054: removed
Mar 22 22:09:02 ns346448 postfix/error[18134]: 1E64684CBF: to=<root@jhiki.com>, relay=none, delay=0.04, delays=0.02/0/0/0.02, dsn=5.1.1, status=bounced (User unknown in virtual alias table)
Mar 22 22:09:02 ns346448 postfix/qmgr[18070]: 1E64684CBF: removed
Mar 22 22:09:52 ns346448 postfix/submission/smtpd[18136]: connect from AGrenoble-653-1-507-114.w92-129.abo.wanadoo.fr[92.129.19.114]
Mar 22 22:09:53 ns346448 postfix/submission/smtpd[18136]: Anonymous TLS connection established from agrenoble-653-1-507-114.w92-129.abo.wanadoo.fr[92.129.19.114]: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
Mar 22 22:09:55 ns346448 postfix/submission/smtpd[18136]: NOQUEUE: reject: RCPT from AGrenoble-653-1-507-114.w92-129.abo.wanadoo.fr[92.129.19.114]: 550 5.1.1 <francois-g@jhiki.com>: Recipient address rejected: User unknown in virtual alias table; from=<francois-g@jhiki.com> to=<francois-g@jhiki.com> proto=ESMTP helo=<[192.168.1.16]>
Mar 22 22:09:57 ns346448 postfix/submission/smtpd[18136]: disconnect from AGrenoble-653-1-507-114.w92-129.abo.wanadoo.fr[92.129.19.114]
mon postfix/main.cf
[code]# See /usr/share/postfix/main.cf.dist for a commented, more complete version
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 (Ubuntu)
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
readme_directory = no
TLS parameters
smtpd_tls_cert_file=/etc/ssl/private/mail.crt
smtpd_tls_key_file=/etc/ssl/private/mail.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
See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
information on enabling SSL in the smtp client.
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_un$
myhostname = ns346448.ip-91-121-143.eu
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = ns346448.ip-91-121-143.eu, localhost.ip-91-121-143.eu, localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
SASL parameters
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain =
smtpd_sasl_authenticated_header = yes
TLS parameters
smtp_tls_security_level = may
smtpd_tls_security_level = may
#smtpd_tls_auth_only = no
smtp_tls_note_starttls_offer = yes
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
SMTPD parameters
unknown_local_recipient_reject_code = 450
maximal_queue_lifetime = 7d
minimal_backoff_time = 1000s
maximal_backoff_time = 8000s
smtp_helo_timeout = 60s
smtpd_recipient_limit = 50
smtpd_soft_error_limit = 3
smtpd_hard_error_limit = 12
smtpd_helo_restrictions = permit_mynetworks, reject_invalid_hostname, permit
smtpd_sender_restrictions = permit_sasl_authenticated, permit_mynetworks, rejec$
smtpd_client_restrictions = reject_rbl_client blackholes.easynet.nl
smtpd_recipient_restrictions = reject_unauth_pipelining, permit_mynetworks, per$
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_discard_ehlo_keyword_address_maps = cidr:/etc/postfix/esmtp_access
smtpd_helo_required = yes
smtpd_delay_reject = yes
disable_vrfy_command = yes
General host and delivery info
mynetworks_style = host
virtual_mailbox_base = /home/mail
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf, mysql:$
virtual_uid_maps = static:8
virtual_gid_maps = static:8
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf, mysql:/etc$
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
Integration with other packages
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
Use amavis for virus and spam scanning
content_filter = amavis:[127.0.0.1]:10024
Header manipulation
header_checks = regexp:/etc/postfix/header_checks
enable_original_recipient = no[/code]
et mon /etc/postfix/mysql_virtual_domains_maps.cf
user = postfixadmin
password = ********
hosts = 127.0.0.1
dbname = postfixadmin
table = domain
select_field = domain
where_field = domain
additional_conditions = and backupmx = '0' and active = '1'
Je pense qu’une partie du problème se trouve dans mon warning :
Mais je ne sais comment le résoudre.
Voilà, j’espère avoir été aussi précis que possible. Je vous remercie pour toute l’aide que vous pourriez m’apporter.