LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Sending email from Ubuntu server to gmail. (https://www.linuxquestions.org/questions/linux-server-73/sending-email-from-ubuntu-server-to-gmail-786449/)

bluesword1969 02-02-2010 09:40 AM

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!

amon 02-02-2010 10:14 AM

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.

bluesword1969 02-02-2010 10:51 AM

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!

amon 02-02-2010 11:05 AM

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.

repo 02-02-2010 11:25 AM

If you want to sent email using gmail as SMTP, take a look at
http://behindmyscreen.newsvine.com/_...101-easy-steps

bluesword1969 02-09-2010 03:39 PM

Quote:

Originally Posted by repo (Post 3849765)
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.


All times are GMT -5. The time now is 04:21 PM.