diegodcr
(usa Debian)
Enviado em 17/10/2012 - 15:10h
Senhores, estou com meu nagios enviando e-mail para destinatário errado.
O postfix está como relay e o mesmo envia corretamente mensagem pelo comando:
/usr/bin/printf "TEST" |/bin/mail -s "TEST" xxxxx@gmail.com com log:
Oct 17 14:54:47 ubuntu postfix/pickup[2090]: 29E7732226A: uid=1000 from=<ubuntu>
Oct 17 14:54:47 ubuntu postfix/cleanup[2852]: 29E7732226A: message-id=<20121017175447.29E7732226A@ubuntu.labteste.local>
Oct 17 14:54:47 ubuntu postfix/qmgr[2091]: 29E7732226A: from=<ubuntu@ubuntu.labteste.local>, size=472, nrcpt=1 (queue active)
Oct 17 14:54:47 ubuntu postfix/smtp[2854]: warning: database /etc/postfix/sasl_passwd.db is older than source file /etc/postfix/sasl_passwd
Oct 17 14:54:51 ubuntu postfix/smtp[2854]: 29E7732226A: to=<xxxx@gmail.com>, relay=smtp.gmail.com[74.125.137.108]:587, delay=4, delays=0.02/0.01/2.1/1.8, dsn=2.0.0, status=sent (250 2.0.0 OK 1350496491 j8sm17957833ann.3)
Oct 17 14:54:51 ubuntu postfix/qmgr[2091]: 29E7732226A: removed
Porém quando é o nagios que vai enviar acontece o seguinte log:
Oct 17 15:02:17 ubuntu postfix/pickup[2090]: 0ACEF32226B: uid=107 from=<nagios>
Oct 17 15:02:17 ubuntu postfix/cleanup[2950]: 0ACEF32226B: message-id=<20121017180217.0ACEF32226B@ubuntu.labteste.local>
Oct 17 15:02:17 ubuntu postfix/qmgr[2091]: 0ACEF32226B: from=<nagios@ubuntu.labteste.local>, size=684, nrcpt=1 (queue active)
Oct 17 15:02:17 ubuntu postfix/local[2952]: 0ACEF32226B: to=<$@ubuntu.labteste.local>, orig_to=<$>, relay=local, delay=0.03, delays=0.02/0/0/0.01, dsn=5.1.1, status=bounced (unknown user: "$")
Oct 17 15:02:17 ubuntu postfix/cleanup[2950]: 12C6332226A: message-id=<20121017180217.12C6332226A@ubuntu.labteste.local>
Oct 17 15:02:17 ubuntu postfix/bounce[2953]: 0ACEF32226B: sender non-delivery notification: 12C6332226A
Oct 17 15:02:17 ubuntu postfix/qmgr[2091]: 12C6332226A: from=<>, size=2542, nrcpt=1 (queue active)
Oct 17 15:02:17 ubuntu postfix/local[2952]: 12C6332226A: to=<nagios@ubuntu.labteste.local>, relay=local, delay=0.01, delays=0.01/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Oct 17 15:02:17 ubuntu postfix/qmgr[2091]: 0ACEF32226B: removed
Oct 17 15:02:17 ubuntu postfix/qmgr[2091]: 12C6332226A: removed