Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-09-2008, 06:39 PM   #1
Registered: Sep 2005
Posts: 201

Rep: Reputation: 30
sendmail to myself locally?

hi, i vaguely remember a time when every user got a default mailbox... Does that still happen or do you have to create one through an email client?

I need to use sendmail to send emails to my user mailbox on my local machine. I think once i figure out my mailbox I could just send it like this:

sendmail -t To: mymailbox@localhost Subject: none blah blah.

thanks for help.
Old 03-10-2008, 04:47 AM   #2
Senior Member
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,550

Rep: Reputation: 137Reputation: 137
on ubuntu the mail gets received in /var/mail/USERNAME usually. The command does not need the "To: From: Subject:" but a correct order of arguments. Send with ctrl-D
Old 03-10-2008, 12:34 PM   #3
Registered: Sep 2005
Posts: 201

Original Poster
Rep: Reputation: 30
hmm okay. So if I wanted to send mail to a user named justin on my system via the command line with sendmail... what would i type?

Also do I need the sendmail daemon listening on 25? Without it sendmail just says it can't connect to 25 so I assume I do need the service running.


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
sendmail: can receive all; send locally, but not globally gesho Linux - Server 2 09-17-2007 10:34 PM
stop sendmail looking locally. stefaandk Linux - General 1 09-26-2006 04:54 PM
sendmail won't send locally! Red Squirrel Linux - Software 5 04-14-2004 05:45 PM
sendmail - works locally but not from outside ereeno Linux - Software 5 02-03-2004 01:40 AM
Sendmail: Deliver locally and remote mague Linux - Software 1 11-04-2003 07:08 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:14 AM.

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