Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-21-2005, 08:45 AM   #1
LQ Newbie
Registered: Sep 2003
Posts: 5

Rep: Reputation: 0
Send a message via command line without sendmail daemon.

Is it possible to send a message via command line in script,
for instance:

sendmail -t name@[] < file.txt

One thing is important - sendmail does not run as a daemon!!!

It seems, it does not work and error message is:

Nov 14 01:50:09 server sendmail[27519]: jAE0o7od027519: from=root, size=73970, class=0, nrcpts=1, msgid=<>, relay=root@localhost
Nov 14 01:50:09 ns sendmail[27519]: jAE0o7od027519: to=name@[XXX.XXX.XXX.XXX], ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=2103970, relay=[] [], dsn=4.0.0, stat=Deferred: Connection refused by []

There runs daemon named on this server and when I start
sendmail as a daemon the file "file.txt" is sent without problems,
of course.

I have done configuration:

Be so kind and get me direction there I can find mistakes in configuration.
Thank you.
Old 11-22-2005, 02:31 AM   #2
Senior Member
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
try just the mail command or the nail command


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
If bash command can send message to a host ? naihe2010 Programming 4 10-29-2005 04:28 PM
how do i send private message in edonkey/overnet hybrid command line client? pyenos Linux - Software 0 03-12-2005 07:30 AM
Command Line Send Mail nutthick Linux - Newbie 10 01-24-2005 08:52 PM
Sendmail question How to send email from command line anjaan Linux - General 1 07-08-2004 09:20 PM
How to use command to send message to others? chinaundead Linux - General 4 05-09-2004 10:09 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:45 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration