Postfix

Fermé
Imagine43 Messages postés 264 Date d'inscription jeudi 5 juin 2014 Statut Membre Dernière intervention 15 novembre 2023 - Modifié par Imagine43 le 26/12/2016 à 19:34
Imagine43 Messages postés 264 Date d'inscription jeudi 5 juin 2014 Statut Membre Dernière intervention 15 novembre 2023 - 29 déc. 2016 à 20:03
Bonjour All,

Je rencontre un problème pour faire communiquer deux serveurs postfix sur le même réseau LAN. (Vlan : 192.168.33.0/24)
Le but étant d'envoyer un mail de root@machine1.fr à root@machine2.fr.

Sur la machine 1, je possède : Un serveur Bind9 avec les zones de la machine1 (imagine43.fr) et de la machine 2 (machine2.fr) configurés. De plus, il y a un serveur postfix configuré sur la zone imagine43.fr. Voici le détail du main.cf :
# 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/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.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_una uth_destination
myhostname = imagine43.fr
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = machine2.fr, mail.machine2.fr
relayhost =
mynetworks = 192.168.33.0/24 127.0.0.1/24 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
compatibility_level = 2
home_mailbox = Maildir/


Sur la machine 2, j'ai donc un second serveur postfix ayant la configuration suivante :
# 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 (machine2)
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/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.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_una uth_destination
myhostname = machine2.fr
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = imagine43.fr, mail.imagine43.fr
relayhost =
mynetworks = 192.168.33.0/24 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_command =
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all


Je précise que pour les deux machines, le fichier /etc/mailname renvoie bien au nom de domaine postfix de la machine concernée.
De plus, les messages s'envoient bien, mais visiblement, il n'y a pas de réception.. Les mails ne sont plus présents dans la file d'attente.
Pourriez-vous me venir en aide ?

Merci d'avance,
Imagine
The Gift Of the Goddess'.

1 réponse

Imagine43 Messages postés 264 Date d'inscription jeudi 5 juin 2014 Statut Membre Dernière intervention 15 novembre 2023 54
29 déc. 2016 à 20:03
Up ?
0