From owner-freebsd-isp@FreeBSD.ORG Tue Jan 24 02:20:34 2006 Return-Path: X-Original-To: freebsd-isp@freebsd.org Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4155D16A41F for ; Tue, 24 Jan 2006 02:20:34 +0000 (GMT) (envelope-from ulf@alameda.net) Received: from mail.alameda.net (mail.alameda.net [64.81.53.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA13D43D48 for ; Tue, 24 Jan 2006 02:20:33 +0000 (GMT) (envelope-from ulf@alameda.net) Received: by mail.alameda.net (Postfix, from userid 1000) id 95DD233CF3; Mon, 23 Jan 2006 18:20:32 -0800 (PST) Date: Mon, 23 Jan 2006 18:20:32 -0800 From: Ulf Zimmermann To: George Georgalis Message-ID: <20060124022032.GI83399@evil.alameda.net> References: <768cbe130601221107t774b50dbp785640aef5473e33@mail.gmail.com> <20060124012941.GA6825@sta.duo> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060124012941.GA6825@sta.duo> User-Agent: Mutt/1.4.2.1i Organization: Alameda Networks, Inc. X-Operating-System: FreeBSD 5.3-STABLE X-ANI-MailScanner-Information: Please contact the ISP for more information X-ANI-MailScanner: Found to be clean X-ANI-MailScanner-From: ulf@alameda.net Cc: freebsd-isp@freebsd.org Subject: Re: Sending mail to SMTP from command line X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ulf@Alameda.net List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Jan 2006 02:20:34 -0000 On Mon, Jan 23, 2006 at 08:29:41PM -0500, George Georgalis wrote: > > > >On 1/22/06, Matias Surdi wrote: > >> > >> Can some body tell me how can I send a mail from the command line (or a > >> bash script) to a remote (ISP) SMTP server??? > >> > >> I don't want to have my own mta enabled on my host, just send a mail as > >> I would do from mozilla thunderbird, but from the command line. > >> > > On Sun, Jan 22, 2006 at 01:07:49PM -0600, Kenny @ Gmail wrote: > >Google is your friend. > >http://www.yuki-onna.co.uk/email/smtp.html > > I don't think that's what the OP had in mind... atthis moment I'm > typing with a broken terminal... at least I can use vim... > > problem is no /usr/lib/sendmail replacement that doesn't require a > daemon to watch the queue and connect to remote hosts. > > in this age of regulated sites that would be really handy too. eg > at a financial site, it would be really useful to not run a smtp > daemon (even only on 127.0.0.1) to avoid the audit; but still have > a sendmail replacement which forks and tries to deliver the mail > for seven days eg one process for each message, or something more > advanced, one process for a queue in a tempdir which disappears > when each message is delivered and the process ends. (my idea, > public domain) > > // George One option is like running sendmail -q from cron every 15 minutes. So if you use sendmail to send something, it fails on first try, it puts it in the queue and the cronjob will try to deliver it again. -- Regards, Ulf. --------------------------------------------------------------------- Ulf Zimmermann, 1525 Pacific Ave., Alameda, CA-94501, #: 510-865-0204 You can find my resume at: http://seven.Alameda.net/~ulf/resume.html