You can use postfix/sendmail/exim/ssmtp . I personally use postfix as my smtp server which I run locally in my machine. The configuration is quite easy.However, I am aware that it might be possible to setup a SMTP Relay server on my own machine, in which case I will be able to DIRECTLY send email WITHOUT requiring a valid SMTP server !
I hope you people might be able to help me out. If you can offer/point me to source code for a Local SMTP Relay server, that will simply be great.
But then, a nice little tutorial to achieve the same using (freely) available tools is also very welcome.
1. Install postfix from net/cdrom
For gentoo - #emerge postfix
For debian - #apt-get install postfix
2. Edit /etc/postfix/main.cf
myhostname = localhost inet_interfaces = $myhostname, localhost mydestination = $myhostname, localhost.$mydomain
* it is assumed that you have Fully Qualified Domain Name.
* it is assumed that you have localhost configured
3. Do the following to test it -
#postfix check
In case of any error/anomality, resolve it by updating main.cf
#newaliases
#postfix start
#mutt -x root
To: <root>
Subject: test
(End message with a . on a line by itself)
test
.
#mutt
[you should see ur message]
4. Update /etc/init.d/ so that postfix startup automatically at booting time
5. Point you email clients to smtp server running in localhost interfaceThis kind of configuration is quite good, until you encounter some ultra paranoid mail host [like Hotmail]. Normally Hotmail reject the mails from SMTP connection, if it cant reverselookup the IP, from which it is sent. So, if you SMTP server is configured from 127.0.0.x , Hotmail will reject the mail. Anyway, for these kind of situation, you can use exim/ssmtp . Exim/ssmtp can be configured to route all of your mails though ISP's smtp server. If your ISP is has provided u some SMTP account, you can happyly use it from ssmtp/exim
iti Archan
ps: I f you are interested to know how smtp works, it is good to start with ssmtp code. It is very simple.
-- To unsubscribe, send mail to [EMAIL PROTECTED] with the body "unsubscribe ilug-cal" and an empty subject line. FAQ: http://www.ilug-cal.org/node.php?id=3
