Re: sendmail_enable=NO /YES/MAYBE ?

2003-08-14 Thread Jonathan Chen
On Tue, Aug 12, 2003 at 10:42:06AM +1200, Richard Shea wrote:

 Well I discovered I think that if I don't use /etc/mail/access in fact I
 cannot send mail through the FBSD box. (I get 550 5.7.1 ... Relaying
 denied). So I went an looked at /etc/mail and there is a access.sample
 but not a plain access file so I copied and edited access.sample to
 include a line ...
 
 192.168.10.4 OK
 
 ... and rebooted but still I get the same error.

What you should have done was:

# cd /etc/mail
# cp access.sample access
# vi access (edit to your heart's content)
# make  (rebuild's the access database)

and sendmail will pick up your changes. You don't need to reboot.
-- 
Jonathan Chen [EMAIL PROTECTED]
--
 Nyuck, nyuck, nyuck - Curly
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sendmail_enable=NO /YES/MAYBE ?

2003-08-14 Thread Roger 'Rocky' Vetterberg
Richard Shea wrote:

Thanks to both of you for your replies however this has raised another
question ! ... (see below)
On Mon, 11 Aug 2003 13:16:54 +0200, Roger 'Rocky' Vetterberg
[EMAIL PROTECTED] said:
 

Konrad Heuer wrote:

   

On Mon, 11 Aug 2003, Richard Shea wrote:
 

[Original Question snipped]
 

Yes, sendmail_enable=YES will do the job.

FreeBSD sendmail respects the TCP wrapper config file /etc/hosts.allow;
you can limit access to sendmail there (look at man 5 hosts_options).
 

Checkout /etc/mail/access, it allows you to control who is permitted to 
relay trough your server.

   

Well I discovered I think that if I don't use /etc/mail/access in fact I
cannot send mail through the FBSD box. (I get 550 5.7.1 ... Relaying
denied). So I went an looked at /etc/mail and there is a access.sample
but not a plain access file so I copied and edited access.sample to
include a line ...
192.168.10.4 OK

... and rebooted but still I get the same error. On the system console I
get a more verbose form of the same message but also lost input channel
from SS11232 [192.168.10.4] to MTA after rcpt which doesn't sound too
good to me.
Am I using the access file correctly here ? Am I right in thinking that I
MUST use the access file or could I just ignore it ? Should I have
renamed access.sample to access ?
Thanks again for your help so far and any other help would be welcome.

regards

richard.
 

After editing /etc/mail/access, run 'makemap hash /etc/mail/access  
/etc/mail/access' to rebuild the access db and then restart sendmail.

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


Re: sendmail_enable=NO /YES/MAYBE ?

2003-08-14 Thread Roger 'Rocky' Vetterberg
Konrad Heuer wrote:

On Mon, 11 Aug 2003, Richard Shea wrote:

 

Hi - I currently have sendmail_enable=NO in my rc.conf file. This
allows emails to be sent from the FBSD machine however I would like one
other machine on the LAN to use the FBSD machine as a SMTP machine.
I think sendmail_enable=YES would do this but would then allow every
other machine on the LAN to use sendmail ? Is there some way I could
limit sendmail users by IP address ?
   

Yes, sendmail_enable=YES will do the job.

FreeBSD sendmail respects the TCP wrapper config file /etc/hosts.allow;
you can limit access to sendmail there (look at man 5 hosts_options).
Regards
Konrad
 

Checkout /etc/mail/access, it allows you to control who is permitted to 
relay trough your server.

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


RE: sendmail_enable=NO /YES/MAYBE ?

2003-08-14 Thread Richard Shea
On Wed, 13 Aug 2003 09:57:43 -0700, Brent Wiese [EMAIL PROTECTED]
said:
  Hi - I currently have sendmail_enable=NO in my rc.conf 
  file. This allows emails to be sent from the FBSD machine 
  however I would like one other machine on the LAN to use the 
  FBSD machine as a SMTP machine. 
  
  I think sendmail_enable=YES would do this but would then 
  allow every other machine on the LAN to use sendmail ? Is 
  there some way I could limit sendmail users by IP address ?
 
 For such a simple config, you should really consider using Postfix. Its
 in
 the ports. Its very easy to set up and do exactly what you want. 
 
I did consider it (and also QMail which I get the impression is easier to
configure than Postfix) but in this particular case it was a question of
if we can do it on our server by changing some config files then do it -
otherwise find some other offsite server to do it. In general however I
take your point although my experience of any mail server is limited I do
get the impression that SendMail is not the best choice unless there's
some aspect of it you need badly.

regards

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


Re: sendmail_enable=NO /YES/MAYBE ?

2003-08-12 Thread Richard Shea
Thanks to both of you for your replies however this has raised another
question ! ... (see below)

On Mon, 11 Aug 2003 13:16:54 +0200, Roger 'Rocky' Vetterberg
[EMAIL PROTECTED] said:
 Konrad Heuer wrote:
 
 On Mon, 11 Aug 2003, Richard Shea wrote:
[Original Question snipped]
 
 Yes, sendmail_enable=YES will do the job.
 
 FreeBSD sendmail respects the TCP wrapper config file /etc/hosts.allow;
 you can limit access to sendmail there (look at man 5 hosts_options).
 
 Checkout /etc/mail/access, it allows you to control who is permitted to 
 relay trough your server.
 
Well I discovered I think that if I don't use /etc/mail/access in fact I
cannot send mail through the FBSD box. (I get 550 5.7.1 ... Relaying
denied). So I went an looked at /etc/mail and there is a access.sample
but not a plain access file so I copied and edited access.sample to
include a line ...

192.168.10.4 OK

... and rebooted but still I get the same error. On the system console I
get a more verbose form of the same message but also lost input channel
from SS11232 [192.168.10.4] to MTA after rcpt which doesn't sound too
good to me.

Am I using the access file correctly here ? Am I right in thinking that I
MUST use the access file or could I just ignore it ? Should I have
renamed access.sample to access ?

Thanks again for your help so far and any other help would be welcome.

regards

richard.



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


Re: sendmail_enable=NO /YES/MAYBE ?

2003-08-12 Thread Rob
Richard Shea wrote:
Thanks to both of you for your replies however this has raised another
question ! ... (see below)
On Mon, 11 Aug 2003 13:16:54 +0200, Roger 'Rocky' Vetterberg
[EMAIL PROTECTED] said:
Konrad Heuer wrote:


On Mon, 11 Aug 2003, Richard Shea wrote:
[Original Question snipped]

Yes, sendmail_enable=YES will do the job.

FreeBSD sendmail respects the TCP wrapper config file /etc/hosts.allow;
you can limit access to sendmail there (look at man 5 hosts_options).
Checkout /etc/mail/access, it allows you to control who is permitted to 
relay trough your server.

Well I discovered I think that if I don't use /etc/mail/access in fact I
cannot send mail through the FBSD box. (I get 550 5.7.1 ... Relaying
denied). So I went an looked at /etc/mail and there is a access.sample
but not a plain access file so I copied and edited access.sample to
include a line ...
192.168.10.4 OK

... and rebooted but still I get the same error. On the system console I
get a more verbose form of the same message but also lost input channel
from SS11232 [192.168.10.4] to MTA after rcpt which doesn't sound too
good to me.
Am I using the access file correctly here ? Am I right in thinking that I
MUST use the access file or could I just ignore it ? Should I have
renamed access.sample to access ?
Thanks again for your help so far and any other help would be welcome.

regards

richard.

Hi Richard,

You're almost there, change it to: 192.168.10.4 RELAY

this link to the handbook should be very usefull for you too.
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/sendmail.html
good luck

Rob Evers

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