Bonjour.
Je rencontre un petit problème avec mon serveur hébergent une instance de postfix.
Je ne peux ni envoyer ni recevoir d'e-mail ni en envoyer car quelque soit l'adresse de reception (lors de l'envoie) ou l'adresse de l'envoyeur (lors de la réception) postfix me dit que son domaine est inconnu. Pourtant sur la même machine, avec dig j'arrive à avoir les informations qu'il faut pour résoudre le domaine.
Voici un log en exemple:
- connect from unknown[xxx.XXX.xxx.XXX]
- NOQUEUE: reject: RCPT from unknown[xxx.XXX.xxx.XXX]: 450 4.1.8 <lui@son-serveur-a-lui.com>: Sender address rejected: Domain not found; from=<lui@son-serveur-a-lui.com> to=<moi@mon-serveur.com> proto=ESMTP helo=<machin.com>
- disconnect from unknown[xxx.XXX.xxx.XXX]
Voici ma config de postfix:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5
html_directory = no
inet_interfaces = xxx.XXX.xxx.XXX
inet_protocols = ipv4
local_recipient_maps = proxy:unix:passwd.byname $alias_maps
mail_owner = postfix
mail_spool_directory = /var/mail
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 2000000000
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
message_size_limit = 52428800
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydomain = mon-serveur.com
myhostname = mail.mon-serveur.com
mynetworks = 127.0.0.0/8
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.9.4/README_FILES
recipient_delimiter = +
sample_directory = /usr/share/doc/postfix-2.9.4/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_use_tls = yes
smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated, sleep 1, reject_unauth_pipelining
smtpd_helo_restrictions = reject_invalid_helo_hostname
smtpd_recipient_restrictions = reject_unlisted_recipient, reject_unknown_recipient_domain, permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_recipient, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_path = private/auth
smtpd_sasl_type = dovecot
smtpd_sender_restrictions = reject_unlisted_sender, reject_unknown_sender_domain, permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_sender
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/some/where/mon-serveur.com.pem
smtpd_tls_key_file = /etc/some/where/mon-serveur.com.key
smtpd_use_tls = yes
unknown_local_recipient_reject_code = 550
Un petit coup de main ne serait pas de refus. :-D
Update: Solution au message #7.