LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Setting up Sendmail??? (https://www.linuxquestions.org/questions/linux-newbie-8/setting-up-sendmail-698237/)

your_shadow03 01-18-2009 11:29 PM

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?

your_shadow03 01-19-2009 12:51 AM

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

your_shadow03 01-19-2009 01:13 AM

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?

your_shadow03 01-19-2009 01:47 AM

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)


your_shadow03 01-19-2009 01:48 AM

Pls Advise.

saagar 02-15-2009 01:09 AM

I dont know why even experts dont answer questions related to sendmail...


All times are GMT -5. The time now is 08:27 PM.