LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-06-2011, 02:20 PM   #1
indy1979
LQ Newbie
 
Registered: Nov 2004
Location: Conyers
Distribution: Fedora Core 3
Posts: 17

Rep: Reputation: 0
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
 
Old 07-07-2011, 01:41 AM   #2
angel115
Member
 
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 542

Rep: Reputation: 79
Can you please post the postfix logs? That may give us a clue.
 
Old 07-07-2011, 04:38 PM   #3
indy1979
LQ Newbie
 
Registered: Nov 2004
Location: Conyers
Distribution: Fedora Core 3
Posts: 17

Original Poster
Rep: Reputation: 0
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
Attached Files
File Type: txt main.txt (27.2 KB, 21 views)
 
Old 07-11-2011, 03:15 AM   #4
angel115
Member
 
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 542

Rep: Reputation: 79
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.

Last edited by angel115; 07-11-2011 at 03:16 AM.
 
Old 07-11-2011, 12:59 PM   #5
saiju@wavecrest.gi
LQ Newbie
 
Registered: Jul 2011
Location: India
Distribution: Rhel,CentOS,Ubuntu
Posts: 11

Rep: Reputation: Disabled
Wink

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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail or Exchange 2003 mid_nightslover Linux - Security 4 08-14-2010 07:33 PM
Integration of Postfix with Microsoft Exchange Server 2003 blindmancries Linux - Newbie 3 08-24-2009 08:51 AM
Domainprep in Exchange 2003?? OneManOfBits General 1 04-17-2007 01:10 PM
Postfix integration with Exchange 2003 bitpail Linux - Server 6 10-17-2006 05:02 PM
LXer: Mandriva Postfix Anti-Spam, Anti-Virus Relay Server for Exchange Server 2000/2003 LXer Syndicated Linux News 0 06-29-2006 10:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration