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.
newbie and first time poster tho am a HPUX guy - sorry, but at least trying to branch out...
Have read a whole bunch of threads from how and troubleshooting but still having problems.
Was thrown a box configured by someone who resigned today. Need to get mail from the box outbound via SMTP relay off our exchange server.
Had edited the existing sendmail.mc file's SMART_HOST definition to our smtp gateway (I can telnet to port 25 and talk to it) be:
/define(`SMART_HOST', `10.1.106.87')dnl
The resulting sendmail.cf failing the parse upon startup (there's a unknown configuration line "dn1 dn1" at line 63 which i have to manually delete and then sendmail starts up fine.
Well despite you saying you can telnet to that relay, it's saying otherwise. What I don't really understand is "relay=10.1.106.87. [67.215.65.132]" as, AFAIK, that says that's it's resolving the 10 IP address as a domain name to the 67 address. You might want to do something like run tcpdump to see what network traffic is actually occurring between these IP addresses.
You said you could telnet to your relay and talk to it.
So does this:
Code:
telnet 10.1.106.87 25
.... answer from mail relay .....
helo dmzweb01.mathesondirect.com
mail from: root@dmzweb01.mathesondirect.com
rcpt to: <email test>@<something out>
data
mail test
.<hit return>
give you something like 'mail sent'?
Does your Exchangeserver also stand in the DMZ? You might want to tell the Exchangeserver to accept mails from dmzweb01 or the corresponding address for relaying. If the Exchangeserver is set up reasonably secure it want accept mails from just any host out of the box. I am just guessing here but I assume Exchange and dmzweb01 are NOT in the same subnet.
Otherwise, if your Exchangeserver is using a smarthost as well (which is a good idea), you might just use that same smarthost directly from dmzweb01.
I'm actually perplexed by some other behavior that might be related. Despite having the mail relay, 10.1.106.87 in the hosts file as smtp.matheson-trigas.com, the hosts line in nsswitch.conf to be "files dns", nslookup can't succesfully find smtp.matheson-trigas.com as it is in the hosts files but resolves out to the public DNS server which has the public facing address of smtp.matheson-trigas.com.
I actually saved off the current sendmail.cf and sendmail.mc, copied in new ones from the .rpmnew templates, made a simple change in the mc file for smart_host to point to 10.1.106.87, generated a new sendmail.cf - tios time w/o the error of a bad line and see this is the maillog now (there's no longer callout to the 67 address:
Here's the log of doing the email by hand. The smtp gateway is not in the DMZ along with this server and I have been assured by the Exchange people that they are set up to accept inbound requests from this box:
root@dmzweb01 ~]# telnet 10.1.106.87 25
Trying 10.1.106.87...
Connected to smtp.matheson-trigas.com (10.1.106.87).
Escape character is '^]'.
220 smtp.matheson-trigas.com Microsoft ESMTP MAIL Service, Version: 6.0.3790.3959 ready at Fri, 29 Oct 2010 10:22:17 -0400
HELO
250 smtp.matheson-trigas.com Hello [206.18.165.79]
mail from: root@dmzweb01.mathesondirect.com
250 2.1.0 root@dmzweb01.mathesondirect.com....Sender OK
rcpt to: rwu@matheson-trigas.com
250 2.1.5 rwu@matheson-trigas.com
data
354 Start mail input; end with <CRLF>.<CRLF>
Test message from telnet
.
250 2.6.0 <EXCHANGE1NV10Bjpvrq00010b6e@smtp.matheson-trigas.com> Queued mail for delivery
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.