[SOLVED] RHEL5 sendmail issues relaying to Exchange
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to reconfigure sendmail to avoid external mail being blocked by reverse DNS lookups - the machine 'domain; is internal only.
The machine is not connected to the Internet, but links to a smart-host.
e-mail gets delivered fine internally, but any external destination is returned 550 5.7.1 Unable to relay, then flagging the destination e-mail as User unknown. Strangely there is nothing in the smart host or Exchange logs.
Post what's in your access and mailertable files, and try to provide a better idea of how mail is expected to be flowing. It sounds like you have a sendmail and Exchange server on site, and your sending mail through sendmail, then it's relaying it to exchange due to a smarthost setting, then Exchange will relay it out to public mail servers, is that right?
You have to make sure that your smart host is allowing mycompany.europe emails to be relayed by it. By default smtp servers are not open relay and the simple reason being if they are open relay anyone can user your domain / host to relay their emails. Two things that you have to check:
1. Your sendmail config points to smart host for email relay.
2. Your smart host should accept connection from your sendmail servers for email relay.
The SMTP server is well established, and until recently has been working fine from this and many other nodes - VMS, OS/400, HP Unix as well as RHEL. The change is only required as we are seeing more e-mails blocked due to reverse DNS lookups - ie at the other end.
I have been testing through to my personal demon account, which duly rejects. We have a short term workaround by remapping the from domain in our mail filters on the exchange side, but this will be going as we are migrating from exchange to gmail
Prior to my changes, we were getting the external rejection back fine, but I am now at a loss to see where the block is.
Just resent a test and have the following in syslog:
You have shared the output from RHEL syslog, what do you see on your smart host at the same time. Do you see the message coming in from RHEL's sendmail. If you don't see the email coming in from RHEL's sendmail then your RHEL machine is not relaying properly to the relay host.
Yes, you have to coordinate with him to get this issue fixed. You have to do testing wherein you will send email and you have to ask him to check if he can see the email coming in from you machine. If he says yes and the email not going further then he has to diagnose from his end. If he says no he can't see email coming in from your machine then you have to check on why email is not getting relayed correctly to smart host.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.