Date: Thu, 11 Feb 1999 14:28:47 +0100 From: Stefano Riva <sriva@alice.it> To: "Francis A. Vidal" <francis@usls.edu>, freebsd-questions@FreeBSD.ORG Subject: Re: sending mail without running SMTP service Message-ID: <3.0.5.32.19990211142847.009a5480@relay.alice.it> In-Reply-To: <Pine.LNX.4.05.9902111909150.6157-100000@linux1.usls.edu> References: <3.0.5.32.19990211114537.009c1db0@relay.alice.it>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.5.32.19990211142847.009a5480>