LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-19-2009, 12:29 AM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Rep: Reputation: 51
Setting up Sendmail???


I have three RHEL Machine:
sender.example.com
relay.example.com
receiver.example.com

I have no DNS. So First thing I did is made each and every entry to each /etc/hosts file.
I am in need to setup a simple sendmail with a relay.
my Plan is to send the mail from sender.example.com to reciever.example.com through relay.example. relay.example.com is the relay machine.
What Should I start with?
 
Old 01-19-2009, 01:51 AM   #2
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
Do I really need resolv.conf if DNS is not there?
I have just added the machine name with *.example.com
Will it do?

Last edited by your_shadow03; 01-19-2009 at 02:15 AM.
 
Old 01-19-2009, 02:13 AM   #3
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
What I tried is :

Edited the sendmail.mc entry for sender.example.com and modified the line:
Code:
DAEMON_OPTIONS(`Port=smtp,Addr=0.0.0.0, Name=MTA')dnl
Code:
Add The entry to /etc/mail/access

<IP of relay> RELAY
Code:
root@bl mail]# vi sendmail.mc
[root@bl mail]# m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
[root@bl mail]# service sendmail restart
Shutting down sm-client:                                   [  OK  ]
Shutting down sendmail:                                    [  OK  ]
Starting sendmail:                                         [  OK  ]
Starting sm-client:                                        [  OK  ]
For Relay.example.com machine:
I only edited :
Code:
DAEMON_OPTIONS(`Port=smtp,Addr=0.0.0.0, Name=MTA')dnl
And on Receiver.example.com
Code:
]DAEMON_OPTIONS(`Port=smtp,Addr=0.0.0.0, Name=MTA')dnl
All When I run this command on sender.example.com
it says:
Code:
[root@bl06dl380g5 ~]# sendmail -bv rec@receiver.groupultra.com
rec@receiver.groupultra.com... deliverable: mailer esmtp, host receiver.groupultra.com., user rec@receiver.groupultra.com
I think its not relaying properly.
Isnt it?

Last edited by your_shadow03; 01-19-2009 at 07:09 AM.
 
Old 01-19-2009, 02:47 AM   #4
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
My Logs on the server:
Code:
Oct 27 17:02:59 BL sendmail[313]: starting daemon (8.13.1): SMTP+queuei                                             ng@01:00:00
Oct 27 17:02:59 BLsm-msp-queue[322]: starting daemon (8.13.1): queuein                                             g@01:00:00
Oct 27 17:37:31 BL sendmail[397]: alias database /etc/aliases rebuilt b                                             y root
Oct 27 17:37:31 BL sendmail[397]: /etc/aliases: 78 aliases, longest 10                                              bytes, 802 bytes total
Oct 27 17:37:31 BLsendmail[402]: starting daemon (8.13.1): SMTP+queuei                                             ng@01:00:00
Oct 27 17:37:31 BL sm-msp-queue[411]: starting daemon (8.13.1): queuein                                             g@01:00:00
Oct 27 17:38:44 BL sendmail[418]: m9RC8iEv000418: from=root, size=39, c                                             lass=0, nrcpts=1, msgid=<200810271208.m9RC8iEv000418@bl06dl380g5>, relay=root@lo                                             calhost
Oct 27 17:38:44 BL sendmail[419]: m9RC8iZA000419: from=<root@bl06dl380g                                             5>, size=316, class=0, nrcpts=1, msgid=<200810271208.m9RC8iEv000418@bl06dl380g5>                                             , proto=ESMTP, daemon=MTA, relay=sender.groupultra.com [127.0.0.1]
Oct 27 17:38:44 BL sendmail[421]: m9RC8iZA000419: to=<rec@receiver.grou                                             pultra.com>, ctladdr=<root@bl06dl380g5> (0/0), delay=00:00:00, xdelay=00:00:00,                                              mailer=esmtp, pri=120316, relay=receiver.groupultra.com., dsn=4.0.0, stat=Deferr                                             ed: Name server: receiver.groupultra.com.: host name lookup failure
Oct 27 17:38:44 BL sendmail[418]: m9RC8iEv000418: to=rec@receiver.group                                             ultra.com, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pr                                             i=30039, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m9RC8iZA000419 Mes                                             sage accepted for delivery)
 
Old 01-19-2009, 02:48 AM   #5
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
Pls Advise.

Last edited by your_shadow03; 01-19-2009 at 05:14 AM.
 
Old 02-15-2009, 02:09 AM   #6
saagar
Member
 
Registered: Jul 2008
Location: Chennai, India
Distribution: RHEL5, Ubuntu
Posts: 191

Rep: Reputation: 37
I dont know why even experts dont answer questions related to sendmail...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
setting up sendmail dranobob Linux - Newbie 2 09-06-2005 10:34 AM
Setting up Sendmail ngwasuma Linux - Software 0 01-16-2005 06:35 AM
Setting up Sendmail AndrewMac Linux - Newbie 4 06-20-2004 02:32 AM
Setting up Sendmail shilo Slackware 3 04-26-2004 11:53 PM
Setting up sendmail maddskillz Linux - Newbie 6 10-31-2003 09:46 AM


All times are GMT -5. The time now is 07:07 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration