Date: Sat, 27 Nov 1999 19:09:38 -0500 From: Christopher Michaels <ChrisMic@clientlogic.com> To: webmaster@cpudetails.com Cc: questions@freebsd.org Subject: RE: Restricting User Access & Mail Quotas Message-ID: <6C37EE640B78D2118D2F00A0C90FCB4401105DC3@site2s1>
next in thread | raw e-mail | index | archive | help
> -----Original Message----- > From: mike@sentex.net [SMTP:mike@sentex.net] > Sent: Saturday, November 27, 1999 1:37 PM > To: webmaster@cpudetails.com > Cc: questions@freebsd.org > Subject: Re: Restricting User Access & Mail Quotas > > On 26 Nov 1999 21:58:10 -0500, in sentex.lists.freebsd.questions you > wrote: > > > > >Hello, > > > >I am new to FreeBSD, but nevertheless, I have been given the assignment > of > >creating a FreeBSD based mail server for the ISP I work for. I have > >installed popper and sendmail. I am able to send mail between local users > >(root@localhost & dave@localhost) via Pine. I can telnet to smtp, pop3 > and > >ftp and interact with each. Now that is issue has been tackled, I am in > need > >of some help in regards to how to establish my users. > > Have a look through www.dejanews.com where archives of these mailing lists > are kept. You will find answers to pretty well every question. > Uhm.. don't you mean http://www.freebsd.org/search/#mailinglists ? (Yes I know deja can be searched too.) As always, the best source of information is at http://www.FreeBSD.org/ alot of your questions are answered in the handbook and FAQ. > >1. I do not want to grant ordinary mail users shell accouts or telnet > access > >into the server. Only POP3 and FTP access into *their* homepage space. > How > >do I do this? I assume it goes into which group your user belongs to, and > >despite scouring Greg Lehey's Complete FreeBSD, I can't determine which. > > See /etc/ftpchroot, and /etc/ftp/shells. You can create a shell called > /usr/local/sbin/ftponly which has as its contents > #!/bin/sh -p > echo 'This account is ftp only.' > exit 1 > Or use /sbin/nologin. Doesn't said "shell" need to be added to /etc/shells as well so that ftp/pop access isn't restriced? > >2. I do not want users eating up more than 5MB of mail, per box. How do I > >establish quotas? > > You need to use a local mail agent like procmail. See > http://www.procmail.org, or again, search through dejanews.com. There are > a > couple of step by step posts on how to use procmail as your local delivery > agent. > Also see http://www.freebsd.org/handbook/quotas.html on setting up the actual quotas. The reason you'll need to setup procmail or some other delivery agent, is that sendmail runs as root and tends to disregard the quota limitation. If you are going to setup quotas just for mail. You'll want to make sure that your mail and home dirs are on different partitions. > >And finally, while of minor importance, I am coming up with a strange > issue > >when sending mail with PINE. It can take up to 60 seconds or so before > the > > SENDING 0% ] indicator changes over to confirmation that the message has > >been sent. I think it's trying to do some kind of name resolution, but it > >doesn't matter if I send mail to @localhost, @machine or to > @machine.domain. > >Just strange.. > > Sounds like DNS issue. > I agree, I see the exact same thing when I try to send mail with my ppp connection down. I'll hang at 0% until the connection is up and the address it's going to has been resolved. Do you have bind running on this machine, or do you have an /etc/hosts file? Also, check that /etc/resolv.conf is setup properly. > ---Mike > Mike Tancsa (mdtancsa@sentex.net) > Sentex Communications Corp, > Waterloo, Ontario, Canada > "Given enough time, 100 monkeys on 100 routers > could setup a national IP network." (KDW2) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6C37EE640B78D2118D2F00A0C90FCB4401105DC3>