Problème d'envoi de mail postfix

Salut à tous ,

JE suis nouveau sur ce forum , je suis utilisateur de Debian LEnny actuellement j’ai mis en place un serveur de supervision avec Nagios et PNP4nagios tout fonctionne correctement mais le soucis c’est que je ne reçois pas les mails d’alerte.
Nous avons un serveur exchange qui se charge déjà de transmettre les mails, je souhaite configurer postfix juste pour envoyer les mails vers le serveur Exchange.
Acutellement j’ai mis la conf 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 (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = yes

# 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.

mydomain = xxx.pro
myhostname = supervision
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = xxx.pro, localhost.$mydomain, localhost, localhost.$mydomain.local, $mydomain.local, $mydomain
relayhost = [192.168.xxx.xxx]
mynetworks = 192.168.xxx.0/24, 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 100000000000000000
recipient_delimiter = +
local_recipient_maps =

J’effectue des tests de mails en telnet j’obtiens ceci :

Jun  5 11:48:45 debian-nagios postfix/master[1881]: warning: process /usr/lib/postfix/smtpd pid 1929 exit status 1
Jun  5 11:48:45 debian-nagios postfix/master[1881]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
Jun  5 11:49:45 debian-nagios postfix/smtpd[2046]: fatal: open dictionary: expecting "type:name" form instead of "xxx.pro"
Jun  5 11:49:46 debian-nagios postfix/master[1881]: warning: process /usr/lib/postfix/smtpd pid 2046 exit status 1
Jun  5 11:49:46 debian-nagios postfix/master[1881]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
Jun  5 11:50:19 debian-nagios postfix/master[1881]: terminating on signal 15
Jun  5 11:50:21 debian-nagios postfix/master[2184]: daemon started -- version 2.5.5, configuration /etc/postfix
Jun  5 11:50:25 debian-nagios postfix/smtpd[2208]: fatal: open dictionary: expecting "type:name" form instead of "xxx.pro"
Jun  5 11:50:26 debian-nagios postfix/master[2184]: warning: process /usr/lib/postfix/smtpd pid 2208 exit status 1
Jun  5 11:50:26 debian-nagios postfix/master[2184]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
Jun  5 11:50:56 debian-nagios postfix/master[2184]: terminating on signal 15
Jun  5 11:50:58 debian-nagios postfix/master[2361]: daemon started -- version 2.5.5, configuration /etc/postfix
Jun  5 11:51:00 debian-nagios postfix/smtpd[2371]: fatal: open dictionary: expecting "type:name" form instead of "xxx.pro"
Jun  5 11:51:01 debian-nagios postfix/master[2361]: warning: process /usr/lib/postfix/smtpd pid 2371 exit status 1
Jun  5 11:51:01 debian-nagios postfix/master[2361]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
Jun  5 11:51:34 debian-nagios postfix/master[2361]: terminating on signal 15
Jun  5 11:51:36 debian-nagios postfix/master[2517]: daemon started -- version 2.5.5, configuration /etc/postfix
Jun  5 11:51:43 debian-nagios postfix/smtpd[2540]: connect from localhost[127.0.0.1]
Jun  5 11:52:29 debian-nagios postfix/smtpd[2540]: 4D3F9176114: client=localhost[127.0.0.1]
Jun  5 11:52:44 debian-nagios postfix/cleanup[2594]: 4D3F9176114: message-id=<20090605095229.4D3F9176114@supervision>
Jun  5 11:52:44 debian-nagios postfix/qmgr[2522]: 4D3F9176114: from=<adresse@xxx.pro>, size=332, nrcpt=1 (queue active)
Jun  5 11:52:44 debian-nagios postfix/local[2610]: 4D3F9176114: to=<adresse@xxx.pro>, relay=local, delay=29, delays=29/0.04/0/0.04, dsn=5.1.1, status=bounced (unknown user: "adresse")
Jun  5 11:52:44 debian-nagios postfix/cleanup[2594]: 7B872176116: message-id=<20090605095244.7B872176116@supervision>
Jun  5 11:52:44 debian-nagios postfix/qmgr[2522]: 7B872176116: from=<>, size=2022, nrcpt=1 (queue active)
Jun  5 11:52:44 debian-nagios postfix/bounce[2611]: 4D3F9176114: sender non-delivery notification: 7B872176116
Jun  5 11:52:44 debian-nagios postfix/qmgr[2522]: 4D3F9176114: removed
Jun  5 11:52:44 debian-nagios postfix/local[2610]: 7B872176116: to=<adresse1@xxx.pro>, relay=local, delay=0.04, delays=0.02/0/0/0.02, dsn=5.1.1, status=bounced (unknown user: "adresse1")
Jun  5 11:52:44 debian-nagios postfix/qmgr[2522]: 7B872176116: removed
Jun  5 11:52:47 debian-nagios postfix/smtpd[2540]: disconnect from localhost[127.0.0.1]
Jun  5 11:55:03 debian-nagios postfix/smtpd[2855]: connect from localhost[127.0.0.1]
Jun  5 11:56:02 debian-nagios postfix/smtpd[2855]: CA683176114: client=localhost[127.0.0.1]
Jun  5 11:56:08 debian-nagios postfix/cleanup[2951]: CA683176114: message-id=<20090605095602.CA683176114@supervision>
Jun  5 11:56:08 debian-nagios postfix/qmgr[2522]: CA683176114: from=<adresse1@xxx.pro>, size=328, nrcpt=1 (queue active)
Jun  5 11:56:08 debian-nagios postfix/local[2958]: CA683176114: to=<adresse1@cube.pro>, relay=local, delay=21, delays=21/0.05/0/0.04, dsn=5.1.1, status=bounced (unknown user: "adresse1")
Jun  5 11:56:09 debian-nagios postfix/cleanup[2951]: 048B9176116: message-id=<20090605095609.048B9176116@supervision>
Jun  5 11:56:09 debian-nagios postfix/qmgr[2522]: 048B9176116: from=<>, size=2012, nrcpt=1 (queue active)
Jun  5 11:56:09 debian-nagios postfix/bounce[2960]: CA683176114: sender non-delivery notification: 048B9176116
Jun  5 11:56:09 debian-nagios postfix/qmgr[2522]: CA683176114: removed
Jun  5 11:56:09 debian-nagios postfix/local[2958]: 048B9176116: to=<adresse1@xxx.pro>, relay=local, delay=0.04, delays=0.02/0/0/0.02, dsn=5.1.1, status=bounced (unknown user: "adresse1")
Jun  5 11:56:09 debian-nagios postfix/qmgr[2522]: 048B9176116: removed
Jun  5 11:59:10 debian-nagios postfix/smtpd[2855]: disconnect from localhost[127.0.0.1]

Si vous avez une idée d’ou vient le problème se serais pas mal

Merci

Salut,

Le problème que tu as réside dans la directive mydestination de ton fichier de conf :

Par cette directive, tu indiques à Postfix qu’il doit délivrer localement les mails pour les domaines indiqués, et notamment les mails à destination du domaine xxx.pro.

Si tu souhaites transférer tous les mails vers ton serveur Exchange :

Dans ce cas, tous les mails seront transférés vers ton relayhost.

@+

ou tu peux ajouter dans le fichier /etc/aliases:

postmaster root
root ton@mail

et faire un postmap

Merci pour votre aide cela m’a aidé.
Le problème était également dans la configuration de nagios.