From owner-freebsd-questions@FreeBSD.ORG Fri Aug 8 17:09:57 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3931537B401 for ; Fri, 8 Aug 2003 17:09:57 -0700 (PDT) Received: from firewire.nightrealmstudios.com (puddle31.drizzle.com [216.162.217.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4601343F75 for ; Fri, 8 Aug 2003 17:09:56 -0700 (PDT) (envelope-from katrina@nightrealmstudios.com) Received: from chimera ([10.0.0.2])h7906Han000435 for ; Fri, 8 Aug 2003 17:06:17 -0700 (PDT) (envelope-from katrina@nightrealmstudios.com) Message-ID: <004101c35e0a$5aec10d0$0200000a@chimera> From: "FreeBSD" To: "FreeBSD-Questions" References: <001701c35de0$d9f845d0$0200000a@chimera> <200308082301.H78N13XU083866@asarian-host.net> Date: Fri, 8 Aug 2003 17:07:26 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Subject: Re: POP Before SMTP X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Aug 2003 00:09:57 -0000 No, no - no offense taken - I've done it before but it has been almost 4 years - a lot has changed since I had my stuff going. I already have my qpopper modified and it's successfully tracking my IP into the relayers files when I check email, sendmail just isn't checking the files like it used to - Looking through your email it appears that Drac is the same thing that I'm trying to do already. While my setup is tracking my IP to the relayers file, adding entries like "10.0.0.2 OK", originally I would be able to auth by only adding the following lines to my sendmail.cf Kpopauth hash -o /etc/mail/relayers ### The following two lines are for relayers R$* $: $(relayers $1 $) ROK $@ OK I'm going to scrap my qpopper for now and see if I can get Drac setup as most likely none of my old sendmail rules work anymore and it looks like drac pretty much the same thing that I'm trying to do now. Thanks for the info!! ;P ----- Original Message ----- From: "Mark" To: "FreeBSD" ; "FreeBSD-Questions" Sent: Friday, August 08, 2003 4:01 PM Subject: Re: POP Before SMTP > ----- Original Message ----- > From: "FreeBSD" > To: "FreeBSD-Questions" > Sent: Friday, August 08, 2003 10:45 PM > Subject: Re: POP Before SMTP > > > > Already tried googling of course or I wouldnt have asked here, I'm not > > THAT off ;P Most of the searches bring up close to the same > > information that I was using previously which is to simply modify > > the sendmail.cf file with the following information: > > > > ######################################################################## > > # > > Scheck_rcpt > > R< $+ @ $=w > $@ OK > > R$+ $: $(dequote "" $&{client_addr} $) $| $1 > > R0 $| $* $@ OK > > R$* $| $* $: $(relayers $1 $: ERROR $) > > RERROR $#error $@ 5.7.1 $: "550 SMTP relay denied, authenticate via > > POP/IMAP first" > > R$* $@ OK > > > > > > ######################################################################## > > > > This "used" to be the easiest method to setup and would automatically > > enter your IP address into the relayers file and thereby allow you to > > send mail but this does not appear to work with the newer version of > > sendmail so I was wondering if anyone else had any ideas on a simple > > setup like this since a Lot of the sendmail rules have changes since > > I last played with it ;P > > > Dear Katrina, > > Not to be rude, but are you sure you have done this before? :) Or did you, > perchance, edit an existing installation? Because I know of no setup that > "would automatically enter your IP address into the relayers file and > thereby allow you to send mail." > > Understand, of course, that sendmail has nothing to do with IP addresses > harvested from POP requests. That little code-snippet from sendmail.cf > relies on an external file, presumably generated by a POP server. It used to > be that patches existed for, say, qpopper, so the POP daemon would log IP > numbers. But, nowadays, if you want POP-before-SMTP, you should really use > DRAC (Dynamic Relay Authorization Control). > > This means your first task is to recompile qpopper (if that is your POP > server, of course), for use with DRAC. Say you have it log IP addresses to > /usr/local/etc/dracd.db, then you could edit sendmail.cf as follows. You add > a line that says: > > Kdrac btree -o /usr/local/etc/dracd > > Then, at the right place, you add: > > ### The following four lines are for drac. > > R$* $: $&{client_addr} > R$+ $: $(drac $1 $: ? $) > R? $@ $#error $@ 5.7.1 $: "550 Relaying denied" > R$+ $@ $#OK > > Only this way will it go "automatically". :) > > Check out: > > http://mail.cc.umanitoba.ca/drac/index.html > > Having said all that, why not use SMTP AUTH, while you are at it? :) > > - Mark > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >