Click to See Complete Forum and Search --> : Is it possible to build a SMTP server?


Harvey
01-25-2001, 12:03 AM
Is it possible to create your own SMTP mail server? So you can like send out your own email? I wonder...

------------------
Help me I'm Harvey!

FoBoT
01-25-2001, 12:14 AM
yes

check the response from craig in this thread
http://www.linuxnewbie.org/ubb/Forum21/HTML/001395.html

Harvey
01-25-2001, 10:12 AM
just to see if there is already a smtp server running on my comp... it's slack7.1


How do I use the 'mail' command?
I tried to read the manual, man mail, but nothing, also tried mail --help but nothing there either.

how would I try to send a message using that command line based
'mail'
program?

thanks http://www.linuxnewbie.org/ubb/smile.gif

Mountainman
01-25-2001, 10:24 AM
for the cli mail program you just type "mail username" with username being whoever you want to mail on your local system. Putting together a mail server is on my list of things to do also.

------------------
---Meddle not in the affairs of Dragons, for thou art but a snack, and tasty with ketchup---
Http://www.geocities.com/mountainmancentral

Harvey
01-25-2001, 10:30 AM
could I email people not on my local system with cli mail?

by doing mail blah@wherever.com?
and after you compose the message...


how do you send it?? http://www.linuxnewbie.org/ubb/smile.gif

tminos
01-25-2001, 10:38 AM
echo "Subject: Signup" | mail majorom@foo.net

For example will send a blank email to majordom (Majordomo email list) at foo.net with the subject of "Signup."

"mail" is usually just used for really simple things. I would recomend mutt or elm for normal use.

Harvey
01-25-2001, 10:42 AM
okay cool thanks for the tip, I tried that...
echo "Subject: test" | mail hbeasley@indiana.edu

in that format, no error messages...
but no mail delivered either.
i guess this means that my smtp server isn't quite working yet huh?

I'm in the process of trying to make exim now... but it's being evil to me. heh.

update: it just told me that i had new mail in the /var/spool/mail/username/ directory, but still no message at my @indiana.edu addresss

[This message has been edited by Harvey (edited 25 January 2001).]

Ryeker
01-25-2001, 11:20 AM
Try "telnet localhost 25". See what you get.

This will help once you get in:
http://www.freesoft.org/CIE/RFC/821/14.htm

------------------
ryeker@yahoo.com

Beauty is only skin deep... Attitude runs to the bone. -Dark Angel

Harvey
01-25-2001, 11:23 AM
ahhh, interesting, it says that sendmail is running right now.
I gotta turn off sendmail and get exim in it's place.
could you guys look at my post in the software section about exim? thanks for the tips http://www.linuxnewbie.org/ubb/smile.gif

Harvey
01-25-2001, 11:31 AM
yikes... that's an RFC i'm reading.
This stuff is technical http://www.linuxnewbie.org/ubb/eek.gif
but i'll tough it out. Wish me luck.

JAdrock
01-25-2001, 12:27 PM
I don't know, but speaking for myself, the overall best MTA is postfix, I've never once ran into a problem with it once I got the basics setup, it's easy to understand and best of all *snickers* it works for me!

Craig McPherson
01-25-2001, 12:43 PM
Originally posted by tminos:
echo "Subject: Signup" | mail majorom@foo.net

For example will send a blank email to majordom (Majordomo email list) at foo.net with the subject of "Signup."

Actually you have that reversed. Standard input goes to the text of the message's body. I just tried it, and you can't insert headers like that. That command would send an e-mail with a blank subject with "Subject: Signup" in the body. You need to use the -s argument to mail to set a subject. Like this:

cat /proc/kcore | mail -s 'Comments on your budget plan' president@whitehouse.gov

(Well, I guess I should stop doign that now -- I like the President we have now, but 8-year-long habits are hard to break)

Anyway, that's how the mail command works.

Harvey
01-25-2001, 12:48 PM
Can anyone give me some tips on how to use exim?

to test the mail stuff again I did
cat access_log | mail -s 'test' hbeasley@indiana.edu

just to see if it worked however... no mail yet. guess that just means my smtp server isn't working.
must.. use.. exim....

Ryeker
01-25-2001, 11:40 PM
Sorry, off topic. What's kcore?

------------------
ryeker@yahoo.com

Beauty is only skin deep... Attitude runs to the bone. -Dark Angel

Harvey
01-25-2001, 11:43 PM
type cat /proc/kcore and stand back!
It'll blow your hair back...

Ryeker
01-26-2001, 01:28 PM
I did. But it's a huge file. Just wondering what it was.

------------------
ryeker@yahoo.com

Beauty is only skin deep... Attitude runs to the bone. -Dark Angel