From owner-freebsd-questions@FreeBSD.ORG Fri Aug 8 16:01:06 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 8DE6037B401 for ; Fri, 8 Aug 2003 16:01:06 -0700 (PDT) Received: from asarian-host.net (mail.asarian-host.net [194.109.160.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 595FF43FAF for ; Fri, 8 Aug 2003 16:01:05 -0700 (PDT) (envelope-from admin@asarian-host.net) Comments: To protect the identity of the sender, certain header fields are either not shown, or masked. Anonymous email accounts can be requested by filling in the appropriate form at: https://asarian-host.net/cgi-bin/signup.cgi Received: (from root@localhost) by mail.asarian-host.net (8.12.9/8.12.9) id h78N14Xp083874 for freebsd-questions@freebsd.org; Sat, 9 Aug 2003 01:01:04 +0200 (CEST) (envelope-from admin@asarian-host.net) From: Mark Message-Id: <200308082301.H78N13XU083866@asarian-host.net> Date: Fri, 08 Aug 2003 23:01:03 GMT X-Authenticated-Sender: admin@asarian-host.net X-Trace: h8ClHzBawMh3+RtPem3tFJhI35+NeJWI5aNShkK20ANDDd6HLXLzQYwUE0g7+5YhbcmCRvszpQsjhxeY0luV1Q== X-Complaints-To: abuse@asarian-host.net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we are unable to process your complaint Organization: Asarian-host To: "FreeBSD" , "FreeBSD-Questions" References: <001701c35de0$d9f845d0$0200000a@chimera> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Auth: Asarian-host PGP signature iQEVAwUAPzQrsDFqW1BleBN9AQHRNgf+NGEAaZrJvYUB1G8B7HHYnKVHi0LkjUBY K6iDvU4LrEccLe+eUwVDPcd9AXxfKSzNgIM1anc4fqNfnL1QPI+xQAibAx1uodHh xf05qdXW/t5XBcA473lZr3cS+IwpleWWXWBdxFXDW6VSAoh810mbSPE+eX1WNJFO 5CjWise8ziXgFx5QOW2Xw9YmUvMxktZUb2D9yL6hmcdIlJr5g5TS4w5WUxb1h1Vr Sw3W1siwwx8g5MaSxkfcsAxgzrUTfNY/pOK6Si7LEim65WVUCDaFVU1JAPM1GXyA 90wbgtzIWVG6kw4QK452pjVPoMKN3cu2ZpPLtSWNJxQ5lnoJYmECvw== =SRSF 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: Fri, 08 Aug 2003 23:01:06 -0000 ----- 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