quick smtp server

I needed a quick smtp server t osend out emails from my drupal installation, so here is the "quick & dirty" way to do it
I decided to use postfix, the choices were sendmail, postfix, qmail and exim but sinse i have no experience whatsoever with exim i took it out, qmail is too much for such a small task (although i recommend it for high load servers) sendmail is too comples to configure, so that leaves me with postfix
all u need to do is

1. install postfix: yum install postfix or if you use a debian based distro apt-get install postfix
2. edit /etc/postfix/main.cf to include the following
* mynetworks = 127.0.0.0/8
* myhostname = localhost.localdomain
* mydomain = localdomain
* masquerade_domains = informatiq.org����� #domain to have in the From field
3. I am using Tedata adsl at home. Unfortunately all tedata adsl ips are marked spam at spamhaus so i cannot send emails directly.I need an email server relay my smtp traffic, this is called "relayhost". add the following to main.cf
* relayhost = smtp.somedomain
4. now probably that host will need to authenticate you to allow you to relay
* smtp_sasl_auth_enable=yes
* smtp_sasl_password_maps=hash:/etc/postfix/sasl_passwd
5. in /etc/postfix/sasl_passwd you add this info
* relayhost username:pass
6. then
* postmap /etc/postfix/sasl_passwd
7. restart postfix and you're ready

To test it use the mail command
mail -s "subject"
it twill then prompt you for the to address
TO: suer@somedomain.com
CC:
after The CC: prompt it will expect you to enter the mail message, start entering text and to finish enter a dot in an empty line and press enter and it is sent
mean while in another terminal
tail -f /var/log/maillog
and look at the log as it scrolls and you should know if it works ok or not

--
This is by no means a full or a complete guide, it's not fool proof and not intended for production use
you have been warned