LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Configuring Postfix with Exchange 2003 (https://www.linuxquestions.org/questions/linux-server-73/configuring-postfix-with-exchange-2003-a-890296/)

indy1979 07-06-2011 02:20 PM

Configuring Postfix with Exchange 2003
 
I have a Nagios box set up on the corporate LAN. I'm trying to get it to send emails to both internal Exchange addresses as well as doing a direct delivery to internet domains.

I have looked at a few logs and it appears that Postfix is not doing proper DNS lookups on the internal servers. It keeps trying to connect to the domain controllers. I have an MX record specified.

Any ideas?

Thanks.

Sam

angel115 07-07-2011 01:41 AM

Can you please post the postfix logs? That may give us a clue.

indy1979 07-07-2011 04:38 PM

1 Attachment(s)
Here is an excerpt from the maillog:

Code:

Jul  6 17:16:30 nagios postfix/local[22799]: 6B528A16E5: to=<wynenss@kidsheart.com>, relay=local, delay=0.04, delays=0.03/0/0/0.01, dsn=5.1.1, status=bounced (unknown user: "wynenss")
Jul  6 17:16:30 nagios postfix/cleanup[22792]: 7212FA170E: message-id=<20110706211630.7212FA170E@nagios.kidsheart.com>
Jul  6 17:16:30 nagios postfix/bounce[22805]: 6B528A16E5: sender non-delivery notification: 7212FA170E
Jul  6 17:16:30 nagios postfix/qmgr[4968]: 6B528A16E5: removed
Jul  6 17:16:30 nagios postfix/qmgr[4968]: 7212FA170E: from=<>, size=2488, nrcpt=1 (queue active)
Jul  6 17:16:30 nagios postfix/local[22804]: 7212FA170E: to=<nagios@kidsheart.com>, relay=local, delay=0.02, delays=0.01/0/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
Jul  6 17:16:30 nagios postfix/qmgr[4968]: 7212FA170E: removed

and I have attached the postfix config.

Near as I can tell, the smtp service is trying to find the user on the local machine and not querying DNS to find the MX record.

resolv.conf
Code:

[root@nagios ~]# cat /etc/resolv.conf
# Generated by NetworkManager
search kidsheart.com choa.org
nameserver 10.200.94.27
nameserver 10.200.94.12

and hosts

Code:

[root@nagios ~]# cat /etc/hosts
10.200.94.52    nagios.kidsheart.com    nagios  # Added by NetworkManager
127.0.0.1      localhost.localdomain  localhost      localhost4
::1    nagios.kidsheart.com    nagios  localhost6.localdomain6 localhost6


angel115 07-11-2011 03:15 AM

Hi Indy1979

From your Nagios box, does the "mail.kidsheart.com" is resolved and point to your mail server address?

Uncomment the "mydomain = kidsheart.com" line and restart post fix (/etc/init.d/postfix restart)

Send a notification.
Check your log and tell me how it goes.

Best regards,
Angel.

saiju@wavecrest.gi 07-11-2011 12:59 PM

HI ,

i ve checked your main.cf file......


"relayhost = mail.kidsheart.com"

This may be creating the issue ...
If you use relayhost then your mails will relay through this server ie "mail.kidsheart.com"
and not thorough

nameserver 10.200.94.27
nameserver 10.200.94.12

Resolution:

uncoment this line "#relayhost....."
restart postfix

generate logs while sending mails.

THanx & regds
Saiju


All times are GMT -5. The time now is 07:06 PM.