LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-08-2012, 06:38 AM   #1
chrisgti
Member
 
Registered: Mar 2009
Posts: 58

Rep: Reputation: 15
Odd Postfix Relay Issue


Hi There,

I have 2 servers running Nagios with the Check_MK plugin. Both servers on the same site, on same subnet etc. One running Ubuntu, one running CentOS 6.2

I have an odd issue with the CentOS box when trying to send mail notifications from the Check_MK plugin.

Both servers relay via an Exchange 2010 server. A connector has been set up and mail relay is allowed.

If i send a test notification from nagios itself via a test notification from a native check, it works fine. I can telnet to the Exchange server on port 25 and manually send a message from the nagios address to my email address, and this arrives. However, when trying to send a notification via a check_mk check, it fails. However, all mail is sent from the ubuntu box.

I have tried copying the main.cf and transport config files from the working server to the non-working server but no matter what I try I always get "550 5.7.1 Unable to relay (in reply to RCPT TO command)"

I am struggling to see how it could be an exchange issue since the other server works fine and they both use the same connector.

I've tried changing a few of the postfix config settigs but not having much luck. Usually this just works.

Can anybody offer any insight as to why I can send mail from nagios and manually via telnet but a separate application doesn't work on the same box? When i tail /var/log/maillog i dont see any particular difference in the logs when sending via the different mean. What's odd is it all sits on top of nagios and uses the nagiosadmin account...

Even more oddly, there have been a few times when it was worked, for reasons that I have absolutely no idea!

Many Thanks

Last edited by chrisgti; 06-08-2012 at 06:49 AM.
 
Old 06-09-2012, 04:57 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,345

Rep: Reputation: Disabled
Have you tried capturing the SMTP traffic with tcpdump/Wireshark?
 
  


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
Postfix relay issue L0cayta Linux - Software 2 05-28-2012 10:05 AM
Postfix with Centos 5.7 Gmail relay Must issue a STARTTLS command first j.smith1981 Linux - Server 2 11-26-2011 03:02 AM
Postfix Maillog relay issue mosharaf_linux Linux - Server 4 07-28-2011 01:46 AM
Odd Postfix Issue XLA187 Linux - Software 8 05-25-2009 09:59 PM
Postfix smtp relay issue aaf Linux - Software 3 11-22-2006 01:34 PM

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

All times are GMT -5. The time now is 03: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