View Full Version : [ubuntu] Setting up for sending out mail

April 23rd, 2012, 01:07 AM
Hi everyone,

I'm fairly new to Ubuntu and trying to find my way around a few things. I have a pretty bare bones Ubuntu 11.04 server setup at the moment with apache, mysql, and php setup already. It will ultimately become a web server, and for that reason I need to allow it to send out mail.

I have no intention of hosting mail on the server at all, but I need to be able to send it out. I saw this article: https://help.ubuntu.com/community/Postfix, but I believe that's intended more for setting up a mail server.

I've seen this as well: http://library.linode.com/email/exim/send-only-mta-ubuntu-11.04-natty (I'm not using a Linode slice), but the configuration also seems to get into receiving mail as well.

Mail is a bit daunting to me - I'm not sure that since I'm going to be using Google Mail to manage mail for the domain, if I even need to do a lot of work here?

Any input is helpful, thank you.

April 23rd, 2012, 10:57 AM
Moved to the server forum.

April 23rd, 2012, 01:51 PM
Hey I use a program called SSMTP which is availble in the repos. This allows me to send mail from my Ubuntu server via my gmail account.

This (http://www.havetheknowhow.com/Configure-the-server/Install-ssmtp.html) is a pretty good tutorial on how to set it up.

April 23rd, 2012, 06:03 PM
You could install either Sendmail or Postfix. Both will be able to send out mails from localhost to outside with default configuration. Please ensure that your host has a FQDN (a real Internet domain).

April 25th, 2012, 06:12 PM
Installing Postfix will allow you to send (and receive and relay) mail. Since you won't be hosting mail, you won't need to install all the other utilities. Following https://help.ubuntu.com/community/Postfix will get you up and running fast. Also, https://help.ubuntu.com/community/MailServer is the root document which explains all of mail with the first item calling the Postfix document. Good luck.