[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Sendmail relaying, smarthost

Posted on 2008-11-13
5
Medium Priority
?
730 Views
Last Modified: 2013-12-18
I have splunk set up to send mail when certain events happen, and the only mailserver (apparently) that it can use is sendmail. All I want to do is have sendmail forward mail on to our exchange server, roi-mail-01.theroi.com (resolves fine with nslookup), however I have been unable to do that and really need some help. I have in my sendmail.mc this line:
             define(`SMART_HOST',`roi-mail-01.theroi.com')
Which shows up in sendmail.cf as
             DSroi-mail-01.theroi.com
I also have theroi.com added to relay-domains. However, when Sendmail tries to send out mail, I get these in /var/log/mail.log:
             Nov 13 11:38:18 roi-compliance-01 sm-mta[23421]: mADGcI6u023421: <julius@theroi.com>... User unknown
             Nov 13 11:38:18 roi-compliance-01 sm-mta[23421]: mADGcI6u023421: from=<splunk@localhost>, size=3073, class=0,
             nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
And I never receive the mail. Any ideas?


sendmailmc
sendmailcf
relay-domains
0
Comment
Question by:domgelato
  • 3
  • 2
5 Comments
 
LVL 29

Expert Comment

by:fosiul01
ID: 22951746
have you create the mailing list in aliases file ??
and have you edited you virtual table for what to do with recived mail ??
0
 
LVL 1

Author Comment

by:domgelato
ID: 22951849
I have not configured either of those files, however I thought that since I'm sending to an email address and not a user that I wouldn't have to. I'm not sure what I would be putting in the aliases file, and I don't even have an /etc/mail/virtualusertable.
0
 
LVL 29

Accepted Solution

by:
fosiul01 earned 1500 total points
ID: 22951909
have a look at this tutorial :

http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch21_:_Configuring_Linux_Mail_Servers#How_To_Configure_Linux_Sendmail_Clients


you can test it, try to send email from root user , you wil see email gone through

and also remember : from exchange serve, you will have to give this linux pc permission to send email other wise exchagne will not relay any emails

0
 
LVL 1

Author Comment

by:domgelato
ID: 22952070
alright, got it, I feel like an idiot. I had put our local domain name in local-host-names. Took it out and it worked, clearly it was just redirecting mail to itself instead of using the smarthost since I told it that itself was our local domain. But I got the description of local-host-names from the guide you linked to, so thanks you very much!
0
 
LVL 1

Author Closing Comment

by:domgelato
ID: 31516442
Alright, got it, I feel like an idiot. I had put our local domain name in local-host-names. Took it out and it worked, clearly it was just redirecting mail to itself instead of using the smarthost since I told it that itself was our local domain. But I got the description of local-host-names from the guide you linked to, so thanks you very much!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have written articles previously comparing SARDU and YUMI.  I also included a couple of lines about Easy2boot (easy2boot.com).  I have now been using, and enjoying easy2boot as my sole multiboot utility for some years and realize that it deserves …
Steps to fix error: “Couldn’t mount the database that you specified. Specified database: HU-DB; Error code: An Active Manager operation fail”
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month18 days, 13 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question