Messaging
cancel
Showing results for 
Search instead for 
Did you mean: 

Can I configure sendmail to run on specific ethernet card ?

SOLVED
Go to solution
Siddhartha S Sinha
Occasional Advisor

Can I configure sendmail to run on specific ethernet card ?

This question might be looking kind of dumb. But I am sorry I couldn't resist myself but asking for some help. I have a sendmail server running and up. It takes messages from our secured network using lan1 and deliver to our lotus notes email using lan0. I don't have any idea about where our lotus notes Server is or what is DNS address etc. I just configured this Server as relay Server and it is doing its job. I setup the firewall (IPFilter) not to allow anything via lan0 except ssh protocol ( It will let everything out though) and lan1 to accept all traffic. So it seems to be working. Now one of my friend said that there is an way to configure sendmail.cf so that it will listen all the traffic only on lan1 and nothing from lan0. Is it true ? If no then I got my answer. If yes can you please let me know how.
4 REPLIES
Steven E. Protter
Exalted Contributor
Solution

Re: Can I configure sendmail to run on specific ethernet card ?

Shalom,

Remember sendmail daemon is only needed to receive mail.

Here is how to configure the daemon to only listen on localhost and a particular IP address. You have to configure the ip address in /etc/rc.config.d/netconf

DAEMON_OPTIONS(`Port=smtp,Addr=192.168.0.43, Name=MTA')dnl

Also have a line for 127.0.0.1 or the system won't be able to pick up mail from itself.

Then:
http://www.hpux.ws/buildmail.hpux.text

That script automates part of the process of generating a new sendmail.cf file from sendmail.mc The file locations are in the script.

This can be done by playing with sendmail.cf but I don't really consider that file to be human readable. It gives me a headache every time I look at it.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Siddhartha S Sinha
Occasional Advisor

Re: Can I configure sendmail to run on specific ethernet card ?

Hi SEP,

Thanks a lot again for your help. When I first configured this Server you helped me. Now I think I can do the way I wanted to do. One more question. This Server I configured as relay server because only this server has connection to our very secured network (no external link at all) to our corporate network. Do I need to run sendmail here as a deamon ? Or can I configure it different way so that I can still get the hardware failure messages from all the other HP & Risc Servers like I get now.
Steven E. Protter
Exalted Contributor

Re: Can I configure sendmail to run on specific ethernet card ?

Shalom,

Yes, sendmail won't relay mail without a daemon to listen and first accept the mail.

In the access file specify those hosts you permit relay.

192.168.0.10 RELAY

http://www.hpux.ws/buildmail.hpux.text

Only hosts you define will be permitted to relay.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Siddhartha S Sinha
Occasional Advisor

Re: Can I configure sendmail to run on specific ethernet card ?

Thanks a lot again. I changed two parameters
O DaemonPortOptions=Address=xxx.xxx.xxx.xx
O DaemonPortOptions=Address=yy.y.yy.yyy

and restarted the sendmail daemon. Looks like it is OK.

Thanks a lot SEP for your help.