LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-09-2005, 01:57 PM   #1
mudda_steven
LQ Newbie
 
Registered: Nov 2004
Location: Hyderabad,Andhra Pradesh,India
Posts: 12

Rep: Reputation: 0
Using the sendmail command


I want 2 know how do we send mails using the sendmail command in the intranet

Iam studying in a college we have intranet here

i am eager 2 know how do we do

waiting for a answers
 
Old 03-09-2005, 03:15 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
I find it easiest to type up a file with the message in it like file.txt . Then I use the mail command like this .....
Code:
mail -s howdy email fred@yahoo.com < file.txt
 
Old 03-10-2005, 09:19 AM   #3
mudda_steven
LQ Newbie
 
Registered: Nov 2004
Location: Hyderabad,Andhra Pradesh,India
Posts: 12

Original Poster
Rep: Reputation: 0
Using the mail command

should i configure the ip address through which the mail is to be send

my ip address for intenet is 192.168.1.1 port 3128

how should i configure the mail command

Than k u very much for ur reply
 
Old 03-10-2005, 09:52 AM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
I didn't configure that at all. Are you able to ping anyplace by name?
 
Old 03-10-2005, 10:01 AM   #5
mudda_steven
LQ Newbie
 
Registered: Nov 2004
Location: Hyderabad,Andhra Pradesh,India
Posts: 12

Original Poster
Rep: Reputation: 0
Using the mail command

iam in a lab

we have lan

i can access evry other pc


even then iam not able to send any mail

it just bounces offf


here is the returned mail



From MAILER-DAEMON@pc43.lab1.iiitm.ac.in Tue Mar 8 01:24:52 2005
Return-Path: <MAILER-DAEMON@pc43.lab1.iiitm.ac.in>
Received: from localhost (localhost)
by pc43.lab1.iiitm.ac.in (8.13.1/8.13.1) id j27JsqQr028665;
Tue, 8 Mar 2005 01:24:52 +0530
Date: Tue, 8 Mar 2005 01:24:52 +0530
From: Mail Delivery Subsystem <MAILER-DAEMON@pc43.lab1.iiitm.ac.in>
Message-Id: <200503071954.j27JsqQr028665@pc43.lab1.iiitm.ac.in>
To: <ipg_200468@pc43.lab1.iiitm.ac.in>
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
boundary="j27JsqQr028665.1110225292/pc43.lab1.iiitm.ac.in"
Subject: Returned mail: see transcript for details
Auto-Submitted: auto-generated (failure)
Status: RO

This is a MIME-encapsulated message

--j27JsqQr028665.1110225292/pc43.lab1.iiitm.ac.in

The original message was received at Tue, 8 Mar 2005 01:24:52 +0530
from localhost [127.0.0.1]

----- The following addresses had permanent fatal errors -----
<user@192.168.0.1>
(reason: 550 Host unknown)

----- Transcript of session follows -----
550 5.1.2 <user@192.168.0.1>... Host unknown (Name server: 192.168.0.1: host not found)

--j27JsqQr028665.1110225292/pc43.lab1.iiitm.ac.in
Content-Type: message/delivery-status

Reporting-MTA: dns; pc43.lab1.iiitm.ac.in
Received-From-MTA: DNS; localhost
Arrival-Date: Tue, 8 Mar 2005 01:24:52 +0530

Final-Recipient: RFC822; user@192.168.0.1
Action: failed
Status: 5.1.2
Remote-MTA: DNS; 192.168.0.1
Diagnostic-Code: SMTP; 550 Host unknown
Last-Attempt-Date: Tue, 8 Mar 2005 01:24:52 +0530

--j27JsqQr028665.1110225292/pc43.lab1.iiitm.ac.in
Content-Type: message/rfc822

Return-Path: <ipg_200468@pc43.lab1.iiitm.ac.in>
Received: from pc43.lab1.iiitm.ac.in (localhost [127.0.0.1])
by pc43.lab1.iiitm.ac.in (8.13.1/8.13.1) with ESMTP id j27JsqQr028663
for <user@192.168.0.1>; Tue, 8 Mar 2005 01:24:52 +0530
Received: (from ipg_200468@localhost)
by pc43.lab1.iiitm.ac.in (8.13.1/8.13.1/Submit) id j27JsprN028662
for user@192.168.0.1; Tue, 8 Mar 2005 01:24:51 +0530
Date: Tue, 8 Mar 2005 01:24:51 +0530
From: steven <ipg_200468@pc43.lab1.iiitm.ac.in>
Message-Id: <200503071954.j27JsprN028662@pc43.lab1.iiitm.ac.in>
To: user@192.168.0.1
Subject: Hi

hello

--j27JsqQr028665.1110225292/pc43.lab1.iiitm.ac.in--
 
Old 03-10-2005, 10:01 AM   #6
mudda_steven
LQ Newbie
 
Registered: Nov 2004
Location: Hyderabad,Andhra Pradesh,India
Posts: 12

Original Poster
Rep: Reputation: 0
Using the mail command

If u understand this please tell me
 
Old 03-10-2005, 10:16 AM   #7
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Normally, you would type: user@someplace.com and not user@192.168.0.1 . So, that user needs to exist and someones dns server needs to be able to resolve the name of someplace.com .
 
Old 03-10-2005, 11:00 AM   #8
mudda_steven
LQ Newbie
 
Registered: Nov 2004
Location: Hyderabad,Andhra Pradesh,India
Posts: 12

Original Poster
Rep: Reputation: 0
Using the mail command

should i configure the local host ip address
 
  


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
Using the sendmail command mudda_steven Linux - Newbie 1 03-09-2005 02:48 PM
Using sendmail in command line Belghouth Mandriva 1 12-08-2004 10:55 AM
Sendmail command johnsfrj Linux - Software 0 08-25-2004 11:05 AM
sendmail command gubak Linux - Networking 1 08-04-2004 09:29 AM
command line sendmail jchristman Linux - Software 4 03-13-2003 05:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:31 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