From owner-freebsd-questions Thu Feb 11 05:28:58 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA15642 for freebsd-questions-outgoing; Thu, 11 Feb 1999 05:28:58 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from dns.ie-online.it (dns.ie-online.it [194.133.148.8]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA15628 for ; Thu, 11 Feb 1999 05:28:53 -0800 (PST) (envelope-from sriva@alice.it) Received: from dns.ie-interna.it (host1.ie-online.it [194.133.148.10]) by dns.ie-online.it (8.8.8/8.8.8) with ESMTP id OAA02906; Thu, 11 Feb 1999 14:28:48 +0100 (CET) (envelope-from sriva@alice.it) Received: from stefano (stefano.ie-interna.it [192.168.0.33]) by dns.ie-interna.it (8.8.8/8.8.8) with SMTP id OAA25852; Thu, 11 Feb 1999 14:28:48 +0100 (CET) (envelope-from sriva@alice.it) Message-Id: <3.0.5.32.19990211142847.009a5480@relay.alice.it> X-Sender: riva@relay.alice.it X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Thu, 11 Feb 1999 14:28:47 +0100 To: "Francis A. Vidal" , freebsd-questions@FreeBSD.ORG From: Stefano Riva Subject: Re: sending mail without running SMTP service In-Reply-To: References: <3.0.5.32.19990211114537.009c1db0@relay.alice.it> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 19.10 11/02/99 +0800, you wrote: >On Thu, 11 Feb 1999, Stefano Riva wrote: >> At 18.11 11/02/99 +0800, you wrote: >> >i have sendmail on my system (2.2.8-STABLE) and i want to send mail(s) >> >without running sendmail in daemon mode. i used to send mail via the >> >`mail' command and piping whatever i want it to send. how can i do this >> >via sendmail? >> >> You can disable loading sendmail as a daemon (boot-time) in /etc/rc.conf. >> Using sendmail to send a message is similar to using mail; for example >> type "sendmail john@smith.com" and type in your message terminated by a dot >> on an otherwise empty line. Piping/redirection of course works. "man >> sendmail" for details on command-line arguments. > >it doesn't work :( i tried sending but i still get "Could not connect to >SMTP server Connection refused". I think there's a misunderstanding, here... I've understood your machine is a 2.2.8-STABLE box and you don't want to run sendmail as a daemon, but you want to send mail with sendmail ran from the command line. Is it correct? If so, just do it. Don't load sendmail as a daemon by specifying NO in /etc/rc.conf. Use sendmail just like mail, from the command line. Where and when do you get that connection refused error? Are we talking about the same machine, or maybe are you trying to send mail from another machine with a fixed SMTP server which is the 2.2.8-STABLE box? --- Stefano Riva Software Engineer - Systems Administrator Informazioni Editoriali I.E. Srl Phone +39-027528400, Fax +39-027528451 Email sriva@alice.it To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message