From owner-freebsd-questions Sat Sep 7 14:35:10 2002 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 AA45537B400 for ; Sat, 7 Sep 2002 14:35:06 -0700 (PDT) Received: from borg-cube.com (213-106.adsl3.netlojix.net [207.71.213.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0BFD943E65 for ; Sat, 7 Sep 2002 14:35:06 -0700 (PDT) (envelope-from dburr@borg-cube.com) Received: from borg-cube.com (dburr@borg-cube.com [207.71.213.106]) by borg-cube.com (8.12.5/8.12.5) with ESMTP id g87LZ0vH075279 for ; Sat, 7 Sep 2002 14:35:00 -0700 (PDT) (envelope-from dburr@borg-cube.com) Date: Sat, 7 Sep 2002 14:35:00 -0700 (PDT) From: Donald Burr of Borg To: FreeBSD Questions Subject: SMTP AUTH support in sendmail? Message-ID: <20020907142455.P72460-100000@borg-cube.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi folks, Recently I had a bit of a dilemma. I went away for vacation, but of course I wanted to keep in touch with my e-mail, so I brought my laptop along. Reading mail was no problem -- I have POP3 and IMAP daemons running. But SENDING mail on the other hand... I'd rather use my SMTP server, rather than my dialup ISP's, for various reasons. And, of course, sendmail is configured by default to NOT allow relaying. Now, to get it to work, I could add the domain of my ISP's dialup pool to /etc/mail/relay-domains (e.g. pool.dialup.isp.com) but that means that every yokel who has an account at my ISP will now be able to relay through my server. This is BAD. So my workaround was to insert just the IP address of my connection in the relay-domains file. This of course was a real pain, because it required me to ssh in and edit the file each time my IP changed (i.e. each time I lost my dialup connection, which was quite often, in my case... bad phone lines where I was staying at). Now, at our office, we use qmail. Thanks to a nice little patch called "qmail-smtpd-auth", the qmail SMTP daemon now supports a nice little command called "AUTH" which allows you to authenticate to the SMTP server with a username/password. If you DON'T authenticate, then you CAN'T relay. If you DO authenticate, however, you can basically do whatever the heck you want. This has worked well for our company, as we have a lot of clients who have insecure accounts such as cable modem, DHCP DSL, and (blech) AOL. They can authenticate to our mail server to send out their (legitimate) e-mail, while Joe Random Spammer is blocked at the gate. So here's my question: Is it possible to add some sort of SMTP AUTH (or other similar authentication support) in sendmail, or must I upgrade to qmail for this to work? Yes, I know, I could switch to qmail, but for various reasons, I'd rather not do this. (I have too many programs, e.g. mailing lists, etc. that are totally dependent on sendmail, andI don't want to turn my installed-and-working-well system on its ear right now...) Your advice is greatly appreciated. Thanks, Donald -- Donald Burr of Borg | FreeBSD: The Power to Serve! WWW: http://www.borg-cube.com/ ICQ #16997506 | http://www.freebsd.org/ P.O. Box 91212, Santa Barbara, CA 93190-1212 \----------------------------- Phone: (805)563-0672 Present Day... Present Time! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message