From owner-freebsd-questions@FreeBSD.ORG Tue Jan 20 23:30:52 2004 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 8843F16A4CE for ; Tue, 20 Jan 2004 23:30:52 -0800 (PST) Received: from usw2.natel.net (2b.bz [209.152.117.190]) by mx1.FreeBSD.org (Postfix) with SMTP id 83A5443D54 for ; Tue, 20 Jan 2004 23:30:45 -0800 (PST) (envelope-from WD@US-Webmasters.com) Received: (qmail 48962 invoked from network); 21 Jan 2004 07:30:42 -0000 Received: from batv-01-009.dialup.netins.net (HELO xyz.US-Webmasters.com) (216.248.109.10) by us-webmasters.com with SMTP; 21 Jan 2004 07:30:42 -0000 Message-Id: <5.1.0.14.2.20040121002805.05e63ec0@209.152.117.178> X-Sender: wd@209.152.117.178 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Wed, 21 Jan 2004 01:30:08 -0600 To: freebsd-questions@freebsd.org From: "W. D." In-Reply-To: <87isj6gdlb.fsf@strauser.com> References: <5.1.0.14.2.20040120193001.05cca510@209.152.117.178> <5.1.0.14.2.20040120193001.05cca510@209.152.117.178> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: Re: Email encryption options for FreeBSD? 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: Wed, 21 Jan 2004 07:30:52 -0000 Thanks Kirk, for your reply! At 21:55 1/20/2004, Kirk Strauser, wrote: >At 2004-01-21T01:37:15Z, "W. D." writes: > >> I'd like to use the PHP mail() function to send back some sensitive >> information. The command pkg_info doesn't show any encryption packages >> installed. >> >> Does anyone have some experience with sending out encrypted emails? > >Why not: > >1) Install the security/gnupg port. Would this consist of: 1. First doing a portupgrade? (OS is FreeBSD 4.4, ports are=20 pretty much that old.) # portupgrade gnupg -arR (The -R will check the build dependencies and the -r=20 will check the applications that depend upon the=20 port being upgraded. This will prevent your system from having outdated dependencies and software incompatibilities.) (Would I need to be logged in as root, or would a super user be fine?) 2. Go to: # cd /usr/ports/security/gnupg 3. # make 4. # make install 5. # make clean 6. Would I need to reboot to have full functionality? (This is a production server, so this process would need to be done during off hours.) >2) Generate a keypair for the email recipient. Like this? # gpg --gen-key >3) Craft your script to use the "gpg" program to encrypt the outbound email > with the public key generated in step #2. >4) mail() Something like these? http://www.pantz.org/scripting/php/gpgemail.shtml http://www.awtrey.com//files/php/gpgsend.txt >5) Profit! Could you be *VERY* specific on how to do this? ;^) Thanks! >--=20 >Kirk Strauser > >"94 outdated ports on the box, > 94 outdated ports. > Portupgrade one, an hour 'til done, > 82 outdated ports on the box." Start Here to Find It Fast!=99 -> http://www.US-Webmasters.com/best-start-pa= ge/