PDA

View Full Version : I Want Sendmail to receive from 192.168.1.xxx


GrayFox
7th August 2007, 03:58 AM
Hi,

The default sendmail conf only listens to localhost.

I want to be able to send mail from other machines on the
net 192.168.1.10. ( I am running a "local' nameserver on
another machine),

How can I configure sendmail to:
1) listen on 192,168.1.xxx port 25
2) accept mail from other machines on the same net [192.168.1.xxx] ( but
reject all others)

Thanks

Jerry

GrayFox
8th August 2007, 04:35 AM
Here are some changes that seem to work:

Note: my local domain is called "skynet".

Added the sendmail-cf rpm so sendmail.cf could be rebuilt.

In sendmail.mc I commented out the DAEMON_OPTIONS line so
sendmail would listen on all interfaces.

In /etc/access added the line
connect:192.168.1 RELAY

to allow connections from my local network
In /etc/local-names-host added a line:
linuxbox.skynet local:

This killed the mail loops back to self problem.

Remember to execute the make command in /etc/mail after any changes and then restart the sendmail daemon.

Jerry