LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 02-02-2010, 09:40 AM   #1
bluesword1969
Member
 
Registered: Jan 2010
Location: East Coast, USA.
Distribution: Gentoo, Debian, OpenBSD.
Posts: 70

Rep: Reputation: 25
Thumbs up Sending email from Ubuntu server to gmail.


Does anyone have some quick tips on how to send an Ubuntu server's email to a gmail account via postfix/procmail?

Thanks!
 
Old 02-02-2010, 10:14 AM   #2
amon
Member
 
Registered: May 2004
Location: UK
Distribution: Debian, Ubantu, CentOS
Posts: 146

Rep: Reputation: 17
That is a very big and open question.

If you have already configured a mail server that sends email to your gmail account using the mail command then you only have to update:
Code:
/etc/aliases
Just add your email address as the alias for root (Or whatever user you want) and messages for that user get pinged over.

Remember to read the comments in the various files and man pages for information.

If you have not yet got that working then depending on your server set-up etc... you have to configure your MTA respectively. Chances are you just need to tell it to point all outbound email to a specific email server and it takes care of the rest of it for you.

If you need more specific help can you give more details about your set-up and configuration.
 
Old 02-02-2010, 10:51 AM   #3
bluesword1969
Member
 
Registered: Jan 2010
Location: East Coast, USA.
Distribution: Gentoo, Debian, OpenBSD.
Posts: 70

Original Poster
Rep: Reputation: 25
Lightbulb

Hey amon. I don't know why, I just never figured out email top to bottom. Sorry, I'm lame or lazy or whatever.

So here, I have, the following choices:

$ sudo dpkg-reconfigure postfix

No configuration
Internet Site
Internet with smarthost
Satellite system
Local only

Which one should I choose here?

Thanks for your help!
 
Old 02-02-2010, 11:05 AM   #4
amon
Member
 
Registered: May 2004
Location: UK
Distribution: Debian, Ubantu, CentOS
Posts: 146

Rep: Reputation: 17
First of all if you are setting up an email sending system of any sort you need to have a basic understanding of SMTP. The same level of understand you would need to have to configure a copy of Thunderbird/Outlook or any other email client.

If you don't have an overview of how SMTP works stop now and google it, things will be much easier if you have an overview. At bare minimum you will want to understand:

The list of options you have given explained a little more (google them for more info):
  • Internet Site: The same machine that originates the mail sends it and receives any incoming mail.
  • Internet with smarthost: A dedicated server delivers mail. This setting is often used when you are connecting to an Internet service provider.
  • Satellite system: No mail is delivered locally. Mail is delivered only through the smarthost.
  • Local only: E-mail can only be sent and received by users on the present machine.

You need to explain what your set-up is for me to help more. But for now I will assume that you have a server on a local site (It connects to the outside world using a regular ISP).

In which case you want Internet with smarthost. For the specific configurations of this you will have to look at your ISPs help pages (or contact their support) to find out about their SMTP server address is and what (if any) authentication is required.
 
Old 02-02-2010, 11:25 AM   #5
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,496

Rep: Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883
If you want to sent email using gmail as SMTP, take a look at
http://behindmyscreen.newsvine.com/_...101-easy-steps
 
Old 02-09-2010, 03:39 PM   #6
bluesword1969
Member
 
Registered: Jan 2010
Location: East Coast, USA.
Distribution: Gentoo, Debian, OpenBSD.
Posts: 70

Original Poster
Rep: Reputation: 25
Quote:
Originally Posted by repo View Post
If you want to sent email using gmail as SMTP, take a look at
http://behindmyscreen.newsvine.com/_...101-easy-steps
I love it: '10 easy steps'. Heh.
 
  


Reply

Tags
gmail, postfix, procmail, ubuntu


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with perl sending email with Gmail SMTP sadarax Programming 3 09-12-2009 07:17 PM
Problem sending email through new email server bigben747 Linux - Server 3 01-26-2009 05:16 PM
Gmail Application and Sending Email to Local Domain kelepirci Linux - Server 1 10-07-2008 09:50 AM
Gmail Rejects Email From My Server - Why? carlosinfl Linux - Server 15 01-30-2008 05:59 PM
Sending email from a server fuelinjection Linux - General 4 12-29-2003 12:42 PM


All times are GMT -5. The time now is 05:31 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration