SYSTEM INFORMATION | |
---|---|
OS type and version | Debian Linux 9 |
Webmin version | 2.001 |
Virtualmin version | 7.2-1 |
Related packages | Postfix, Dovecot, … |
Hello,
many emails seem not to be received by my server, mainly on the addresses of the main domain name.
I have however read, re-read and tried the advice given in Email – Virtualmin and /troubleshooting/ but cannot solve the problem.
For example, I send an email from a google or other account to email addresses hosted by virtual servers on my server and it is delivered, but if I send to an email address from the main domain, it does not does not arrive and is not visible in the “user mail” page of this address.
After going through many topics, I suspect a problem between myorigin, myhostname and mydomain but can’t see which one.
Here is my postfix main.cf file.
# 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
myhostname = ns1.ekosysteme.fr
mydomain = ekosysteme.fr
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
readme_directory = no
# See http://www.postfix.org/COMPATIBILITY_README.html -- default to 2 on
# fresh installs.
compatibility_level = 2
# TLS parameters
smtpd_tls_cert_file = /etc/postfix/postfix.cert.pem
smtpd_tls_key_file = /etc/postfix/postfix.key.pem
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_unauth_destination
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, mail.$mydomain, www.$mydomain, ftp.$mydomain
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
home_mailbox = Maildir/
recipient_delimiter = +
inet_protocols = all
mynetworks_style = subnet
virtual_alias_maps = hash:/etc/postfix/virtual
mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME
milter_default_action = accept
milter_protocol = 2
smtpd_milters = inet:localhost:8891
non_smtpd_milters = inet:localhost:8891
smtpd_tls_security_level = may
smtp_tls_security_level = dane
smtpd_tls_CAfile = /etc/postfix/postfix.ca.pem
sender_dependent_default_transport_maps = hash:/etc/postfix/dependent
smtpd_recipient_restrictions = permit_inet_interfaces
smtputf8_autodetect_classes = verify
#mydomain = localdomain
#relay_domains = ${{$compatibility_level}, <, {2}, ?, {$mydestination}, :, {}},
smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3, !TLSv1, !TLSv1.1
#relay_domains = ${{$compatibility_level}, <, {2}, ?, {$mydestination}, :, {}}, collectifcreatifcastellas.org
#meta_directory = /etc/postfix
#setgid_group = postdrop
#command_directory = /usr/sbin
#sample_directory = /etc/postfix
#newaliases_path = /usr/bin/newaliases
#mailq_path = /usr/bin/mailq
#sendmail_path = /usr/sbin/sendmail
#daemon_directory = /usr/lib/postfix/sbin
#manpage_directory = /usr/share/man
#html_directory = /usr/share/doc/postfix/html
#data_directory = /var/lib/postfix
#shlib_directory = /usr/lib/postfix
#relay_domains = ${{$compatibility_level}, <, {2}, ?, {$mydestination}, :, {}}, ekoprojet.org, ekomundi.org, collectifcreatifcastellas.org
smtpd_recipient_limit = 3000
smtp_tls_security_level = dane
smtpd_sasl_auth_enable = yes
smtp_dns_support_level = dnssec
smtp_host_lookup = dns
Thanks for your help