n2ize
02-22-2010, 04:58 PM
Hello,
I want to configure sendmail to accept mail from across my local network. Out of the box it is configured such that the daemon will only follow the loopback address 127.0.0.1. i.e the sendmail.mc file has the statement
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
which tells the daemon to listen on the loopback address.
If I "dnl" out this statement will sendmail by default listen on all available network addresses ? Or, do I need to specify the specific addy's I want it to listen on ? In the latter case can I add the statement
DAEMON_OPTIONS(`Port=smtp,Addr=192.168.2.X, Name=MTA')dnl
to tell it to listen on the ethernet address ? Or can I add the local ethernet address to the existing statement ? (Bear with me, I'm a bit fuzzy on syntax since I don;t do this everyday).
Of course I understand that once I change sendmail.mc I need to run the macro processor...
$ m4 sendmail.mc > sendmail.cf
to generate the new cf file and I have to restart sendmail
$ service sendmail restart
Any help appreciated. I've done this before but it was so long ago that I forgot. :oops: :lol:
I want to configure sendmail to accept mail from across my local network. Out of the box it is configured such that the daemon will only follow the loopback address 127.0.0.1. i.e the sendmail.mc file has the statement
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
which tells the daemon to listen on the loopback address.
If I "dnl" out this statement will sendmail by default listen on all available network addresses ? Or, do I need to specify the specific addy's I want it to listen on ? In the latter case can I add the statement
DAEMON_OPTIONS(`Port=smtp,Addr=192.168.2.X, Name=MTA')dnl
to tell it to listen on the ethernet address ? Or can I add the local ethernet address to the existing statement ? (Bear with me, I'm a bit fuzzy on syntax since I don;t do this everyday).
Of course I understand that once I change sendmail.mc I need to run the macro processor...
$ m4 sendmail.mc > sendmail.cf
to generate the new cf file and I have to restart sendmail
$ service sendmail restart
Any help appreciated. I've done this before but it was so long ago that I forgot. :oops: :lol: