Setting Up a New Server to Send Email

Related topics:

Shell ScreenI am in the proccess of moving off of shared hosting to a dedicated server for this site and a few others I maintain.  I am using Ubuntu 9.10 Server.  This is a learning process for me.  This is how I was able to configure my server to send email. 

 

I installed sendmail

$ sudo apt-get install sendmail

then run

$ sudo sendmailconfig

This will install sendmail on the server.

Once sendmail was installed I could send forms from my website, but it was very slow.  In troubleshooting this I found a very helpful post in this thread about how to speed up form submissions with sendmail.  A good explanation of why sendmail needs this can be found here.  The solution is to modify the hosts file(found at /etc/hosts), mine looks like this:

127.0.1.1 servername servername.localdomain loghost

You will need to replace the servername in the above with your hostname.  If you do not know what that is you can do:

$ hostname 

to find out. 

Hope this helps someone out.

 

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><pre>
  • Lines and paragraphs break automatically.
  • Syntax highlight code surrounded by the {syntaxhighlighter OPTIONS}...{/syntaxhighlighter} tags.
  • Twitter-style @usersnames are linked to their Twitter account pages.
  • Twitter-style #hashtags are linked to search.twitter.com.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters (without spaces) shown in the image.