LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   sendmail to myself locally? (https://www.linuxquestions.org/questions/linux-newbie-8/sendmail-to-myself-locally-626868/)

Geminias 03-09-2008 05:39 PM

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.

j-ray 03-10-2008 03:47 AM

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

Geminias 03-10-2008 11:34 AM

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.


All times are GMT -5. The time now is 10:19 AM.