From owner-freebsd-questions Sat Nov 27 16: 9:46 1999 Delivered-To: freebsd-questions@freebsd.org Received: from ns.clientlogic.com (ns.clientlogic.com [207.51.66.75]) by hub.freebsd.org (Postfix) with ESMTP id 9980F14C1E for ; Sat, 27 Nov 1999 16:09:44 -0800 (PST) (envelope-from ChrisMic@clientlogic.com) Received: by site0s1 with Internet Mail Service (5.5.2650.21) id ; Sat, 27 Nov 1999 19:09:49 -0500 Message-ID: <6C37EE640B78D2118D2F00A0C90FCB4401105DC3@site2s1> From: Christopher Michaels To: webmaster@cpudetails.com Cc: questions@freebsd.org Subject: RE: Restricting User Access & Mail Quotas Date: Sat, 27 Nov 1999 19:09:38 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > -----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