Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
send email via command line: what protocol is used?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
chrisstankevitz
Guru
Guru


Joined: 14 Dec 2003
Posts: 472
Location: Santa Barbara, CA, USA

PostPosted: Fri Mar 26, 2010 7:59 pm    Post subject: send email via command line: what protocol is used? Reply with quote

Imagine I use this command to send an email:
Code:
cat Hello | mail -s Subject me@here.com


Does this use SMTP? If no, what does it use? If yes, what server does it connect to?

Thank you,

Chris
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10590
Location: Somewhere over Atlanta, Georgia

PostPosted: Fri Mar 26, 2010 8:33 pm    Post subject: Reply with quote

Don't you mean "sendmail" instead of "mail"?

If so then, yes, it definitely uses SMTP. The server and login credentials are typically needs to be set up in a configuration file. Gentoo installs ssmtp by default as the MTA (Mail Transfer Agent). See
Code:
man ssmtp.conf
- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Sat Mar 27, 2010 4:16 am    Post subject: Reply with quote

... and the mail command is provided by the mail-client/mailx package.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum