LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


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

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


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

sendmail -t name@[xxx.xxx.xxx.xxx] < 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=<200511140050.jAE0o7od027519@server.firm.com>, 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=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]

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:
/etc/mail/access
/etc/mail/sendmail.cf
/etc/hosts
/etc/sysconfig/network
/etc/resolv.conf
/etc/hosts.allow

Be so kind and get me direction there I can find mistakes in configuration.
Thank you.
Sonenberk
 
Old 11-22-2005, 01:31 AM   #2
Finlay
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
 
  


Reply



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 03:28 PM
how do i send private message in edonkey/overnet hybrid command line client? pyenos Linux - Software 0 03-12-2005 06:30 AM
Command Line Send Mail nutthick Linux - Newbie 10 01-24-2005 07:52 PM
Sendmail question How to send email from command line anjaan Linux - General 1 07-08-2004 08:20 PM
How to use command to send message to others? chinaundead Linux - General 4 05-09-2004 09:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:35 PM.

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