mail delivery on LAN - with Linux

Ben Russo ben at muppethouse.com
Wed Jan 12 17:20:03 UTC 2005


Shiraz Baig wrote:
> Sir,
>   This is in continuation of previous discussion on
> the subject.
>   As mentioned earlier, I am trying to configure mail
> on Linux LAN.  I shall use the names of two machines
> "dtlaptop" and "unix11". The domain name is
> "awt.com.pk".
> First I installed sendmail on two machines, "dtlaptop"
> and "unix11". 
> 
> I tried to send the mail from one to the other. It did
> not go anywhere. It kept sitting on the sender's
> machine. Giving a message after expiry time that mail
> could not be delivered because of "relaying denied". I
> tried a method of enclosing the address in square
> brackets. But it still did not work.


On both systems

edit the file /etc/mail/sendmail.cf
find the lines:

dnl This changes sendmail to only listen on the loopback device 127.0.0.1
dnl and not on any other network devices. Comment this out if you want
dnl to accept email over the network.
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')


Add the characters "dnl" to the BEGINNING of the line about
DAEMON_OPTIONS

Then run "m4 /etc/mail/sendmail.mc > /etc/sendmail.cf"
and then run "service sendmail restart"

Then try your test again.

-Ben.




More information about the redhat-list mailing list