Re: How to make sendmail listen on an address other than the loopback

2007-12-29 Thread Giorgos Keramidas
On 2007-12-28 10:33, Andrew Falanga [EMAIL PROTECTED] wrote:
 Hi,
 I'm trying to get an e-mail system working for my church
 (whitneybaptist.org).  I've added a file called local-host-names in
 /etc/mail as described in the Handbook, then did /etc/rc.d/sendmail
 restart and then did sockstat | grep sendmail and got the following
 results:
 
 root sendmail   32889 3  tcp4   127.0.0.1:25  *:*
 root sendmail   32889 4  dgram  - /var/run/logpriv
 smmspsendmail   696   3  dgram  - /var/run/log
 
 Now, with the exception of the additional file, nothing has been done
 to this stock sendmail configuration (system is 6.2-RELEASE-p7).  How
 would I make sendmail listen on the ip of 192.168.2.23?  I do have
 some experience with sendmail, however, it was several years ago and
 I've forgotten quite a bit.  Why isn't it listening on that address
 now?

What you see is `normal' for a host which supports local email delivery
and forwards everything else to another `smart host'.  If you want to
start a listener which also accepts email from the network (instead of a
listener only for 127.0.0.1 like the one you have now), you will have to
tweak the `sendmail_xxx_enable' options in your `/etc/rc.conf' file.

Right now, you probably have something like:

  sendmail_enable=NO
  sendmail_submit_enable=YES
  sendmail_msp_queue_enable=YES

To run the sendmail daemon for inbound email connections on all network
interfaces, you need sendmail_enable=YES, and then you can drop the
line for the `submit' daemon:

  sendmail_enable=YES
  sendmail_msp_queue_enable=YES

Note: For more details about these `rc.conf' variables, it may be useful
to read the rc.sendmail(5) manpage.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to make sendmail listen on an address other than the loopback

2007-12-28 Thread Derek Ragona

At 11:33 AM 12/28/2007, Andrew Falanga wrote:

Hi,

I'm trying to get an e-mail system working for my church 
(whitneybaptist.org).

I've added a file called local-host-names in /etc/mail as described in the
Handbook, then did /etc/rc.d/sendmail restart and then did sockstat | grep
sendmail and got the following results:

root sendmail   32889 3  tcp4   127.0.0.1:25  *:*
root sendmail   32889 4  dgram  - /var/run/logpriv
smmspsendmail   696   3  dgram  - /var/run/log


Now, with the exception of the additional file, nothing has been done to this
stock sendmail configuration (system is 6.2-RELEASE-p7).  How would I make
sendmail listen on the ip of 192.168.2.23?  I do have some experience with
sendmail, however, it was several years ago and I've forgotten quite a bit.
Why isn't it listening on that address now?

Andy


Take a look at your settings for sendmail in /etc/rc.conf vs 
/etc/default/rc.conf


You need two instances of sendmail running, one for local delivery, another 
for external mail send receive.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to make sendmail listen on an address other than the loopback

2007-12-28 Thread Andrew Falanga
On Friday 28 December 2007 11:24:50 Derek Ragona wrote:
 At 11:33 AM 12/28/2007, Andrew Falanga wrote:
 Hi,
 
 I'm trying to get an e-mail system working for my church
 (whitneybaptist.org).
 I've added a file called local-host-names in /etc/mail as described in the
 Handbook, then did /etc/rc.d/sendmail restart and then did sockstat |
  grep sendmail and got the following results:
 
 root sendmail   32889 3  tcp4   127.0.0.1:25  *:*
 root sendmail   32889 4  dgram  - /var/run/logpriv
 smmspsendmail   696   3  dgram  - /var/run/log
 
 
 Now, with the exception of the additional file, nothing has been done to
  this stock sendmail configuration (system is 6.2-RELEASE-p7).  How would
  I make sendmail listen on the ip of 192.168.2.23?  I do have some
  experience with sendmail, however, it was several years ago and I've
  forgotten quite a bit. Why isn't it listening on that address now?
 
 Andy

 Take a look at your settings for sendmail in /etc/rc.conf vs
 /etc/default/rc.conf

 You need two instances of sendmail running, one for local delivery, another
 for external mail send receive.

  -Derek

Derek,

Thank you.  Interesting that the Handbook didn't mention it.  At least, this 
section didn't mention it and this is what I was looking to:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/sendmail.html

Thanks again.  I set sendmail_enable='YES' in /etc/rc.conf (per instructions 
to leave alone /etc/defaults/rc.conf) and then did /etc/rc.d/sendmail restart 
and it worked.

Andy
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]