Saturday, November 7, 2009

exim4

XAMPP is a great tool for quickly setup LAMP infrastructure for web application development.  However, getting the mail function to work under Linux can be a bit challenging.

After many hours of battle, I finally got it working.  The step I used on my Ubuntu setup are:

  1. Running the dpkg-reconfigure exim4-config, and follow the onscreen instructions.
  2. Editing the /etc/exim4/passwd.client file to setup the authentication details if your smtp server needs authentication (ref: http://www.lexspoon.org/linux/smtp-relay.html).
  3. restarting exim4 by running /etc/init.d/exim4 restart
  4. cross your figure and hope mail works!

No comments: