Does the mail command use sendmail?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Does the mail command use sendmail?
# 1  
Old 10-27-2010
Does the mail command use sendmail?

The question is, Does the mail comman actually send using sendmail or something else?

So I am trying to test if sendmail is set up. I used...

cat testemail.txt | mail -s "test mail" myemail@test.com

I used my email though I didn't get an error, but didn't get the email either.

When I try any sendmail command I don't get an error but it doesn't respond and I have to cancel out.

I checked and there was a configuration file in /etc/mail, but there is no error log in /var/log.

So am I barking up two different trees or does the mail command use sendmail and I need to check out the configuration?
# 2  
Old 10-27-2010
Well, the man pages for both are pretty reasonable. The sendmail can send, and so can mail, mailx, netscape, . . . .

Note that sendmail can be the local mail dameon server (-bd).

Also note that sending mail takes on many forms. One popular form is SMTP or ESMTP through tcp port 25, so any app can connect to a mail server locally or anywhere routable and send mail. I often use "telnet <mail_host> 25" in a script to send mail directly to a working mail server, when the local email is turned off or not properly installed.
# 3  
Old 10-27-2010
It would be helpful if you told us what operating system you are on.

Sendmail is an MTA (Mail Transport Agent) and can accept mail from any MUA (Mail User Agent) or Mail Submission Program (MSP) not just the mail utility. The other common MTA on GNU/Linux systems is Postfix.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Attach a document in mail using sendmail command

Hi Guys, May i know how to attach a document using sendmail command in Linux platform.... :confused: (2 Replies)
Discussion started by: Santosh101
2 Replies

2. Proxy Server

How to send mail (sendmail) for php mail()?

PHP mail() function doesn't work. Nor does sendmail: loaded system configuration file /etc/msmtprc ignoring user configuration file /home/xi/.msmtprc: No such file or directory falling back to default account using account default from /etc/msmtprc host = xsi port = 25 proxy host = (not... (1 Reply)
Discussion started by: Xcislav
1 Replies

3. UNIX for Dummies Questions & Answers

Sending mail in UNIX with body and attachment(.txt) using sendmail command

Hi All, In my .ksh script, I am sending an email with body and attachment (.txt) using sendmail command. I am able to receive the attachement along with the body of the mail. But I am getting special characters along with the content in the .txt. Also the alignment is incorrect. Can you please... (7 Replies)
Discussion started by: KRR
7 Replies

4. Shell Programming and Scripting

how to know the mail sent status using sendmail

Hi, I am using sendmail command to send mail This is the command i am using cat <filename> | /usr/lib/sendmail -v <emailid> I will put the contents in the file as body of the email I want the subject also to be printed in the email I want to know whether email has been successfully... (1 Reply)
Discussion started by: trichyselva
1 Replies

5. Shell Programming and Scripting

mail or sendmail ?

1. I need to send emails using a shell script on linux. I want to use the most widespread method (the preferred method). Is one considered deprecated in favor of the other? Which, mail or sendmail ? 2. Now, without trying to favor mail in the first question: How can I include a From: mail... (1 Reply)
Discussion started by: limmer
1 Replies

6. UNIX for Dummies Questions & Answers

How to set HIGH importance to a mail sent through mailx or sendmail command

I have written a script for sending automated email, reporting the running status of a cron scheduled work. Now, the issue is, my Project Manager wants, the mail should be received with HIGH IMPORTANCE. How can I do that, kindly anybody explain. Thank you so much. (3 Replies)
Discussion started by: mitte_dino
3 Replies

7. Solaris

sendmail mail server help

Hello guys, Am trying to enable/start sendmail in Solaris 10. I tried using scvadm and also did it using the /etc/init.d/sendmail restart but no effect. Just returns to the prompt. No errors nothing. I checked if it is running using ps -eaf | grep sendmail, not running :( . I checked the logs... (9 Replies)
Discussion started by: rcmrulzz
9 Replies

8. UNIX for Advanced & Expert Users

Forwarding mail with sendmail

Hello, I need to forward mail wich are in some users mailbox. The .forward redirection is working for all new mails but not for old. Is someone know how to do this ? Thanks (2 Replies)
Discussion started by: annececile
2 Replies

9. UNIX for Dummies Questions & Answers

Sendmail - forwarding mail

quick question. I have a webserver that has various scripts for user registration and ect on it. I want to post (mail) these to myself - however I am a bit stuck on how to configure sendmail to do this. The hosting partner that I use has provided me with the use of their relay to send on the... (1 Reply)
Discussion started by: warrend
1 Replies

10. UNIX for Dummies Questions & Answers

blocking mail using sendmail

Hi, I am using sendmail 8.9.1 and trying to block email from certain domain/user. How could I do that? TQ (4 Replies)
Discussion started by: liyas
4 Replies
Login or Register to Ask a Question