LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-21-2014, 08:30 AM   #1
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 789

Rep: Reputation: Disabled
Good documentation to setup postfix on Centos


I've been really struggling trying to send emails.

Part of my problems is there are multiple tutorials which all differ a bit, and I inappropriately am trying to follow all of them.

Does anyone one have a suggestion for a single tutorial or whitepaper? I would like to have used http://wiki.centos.org/HowTos/postfix, but it says it might not be appropriate for Centos6. I don't need anything very sophisticated, and would be ecstatic if I could even send an email from the command line.

Thank you
 
Old 03-21-2014, 09:13 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by NotionCommotion View Post
I've been really struggling trying to send emails. Part of my problems is there are multiple tutorials which all differ a bit, and I inappropriately am trying to follow all of them.

Does anyone one have a suggestion for a single tutorial or whitepaper? I would like to have used http://wiki.centos.org/HowTos/postfix, but it says it might not be appropriate for Centos6. I don't need anything very sophisticated, and would be ecstatic if I could even send an email from the command line.
The CentOS 5 guide will probably work fine...but I'm confused as to why you just didn't TRY that guide? What would be the harm if it didn't work??? It doesn't work NOW, so it's not like following the CentOS 5 guide would break anything.

And your question leaves out a good bit, the environment being the biggest part. If you're in a corporate environment with firewalls and existing mail-relay servers, that's very different than setting it up at your home to use your ISP's mail server and doing other things with DNS. What kind of environment are you in, and what resources further upstream are you going to use?
 
Old 03-21-2014, 09:26 AM   #3
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 789

Original Poster
Rep: Reputation: Disabled
Hi TB0ne,

Quote:
Originally Posted by TB0ne View Post
...but I'm confused as to why you just didn't TRY that guide? What would be the harm if it didn't work??? It doesn't work NOW, so it's not like following the CentOS 5 guide would break anything.
I'm just worried that if I keep on changing things, I am going to have a mess. Maybe I shouldn't be worried.

Quote:
Originally Posted by TB0ne View Post
What kind of environment are you in, and what resources further upstream are you going to use?
The server is located in my garage. I have a home wireless router between my Comcast modem and the server (I don't think this matters, but I am using WiFi to network it since I couldn't get wire down there). It works perfect as a webserver (I don't use it for production). I have ports 25 and 110 open for both the hardware router and iptables. I don't know what you mean by "what resources further upstream are you going to used".

Thank you
 
Old 03-21-2014, 01:05 PM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by NotionCommotion View Post
I'm just worried that if I keep on changing things, I am going to have a mess. Maybe I shouldn't be worried.
Make backups before you edit!

I always identify mine by an ".org" extension meaning "original"
and ".last" is the "last" file state before my current edit.
Worst-case scenario, I go back to the "original" and "start over".

That being said, I've alway found server-world.info to be of help since it provides screenshots of the tasks they seek to help you on, such as
CentOS 6 - MAIL Server - Install/Configure Postfix

I'll butt out now.
Have a Great Day!
 
Old 03-21-2014, 03:50 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by NotionCommotion View Post
Hi TB0ne,
I'm just worried that if I keep on changing things, I am going to have a mess. Maybe I shouldn't be worried.
Not at all. All you're doing is editing config (text) files. Make a copy of the originals first, and edit away. What's the worst that can happen? The service won't work? ABSOLUTE worst case scenario: you have to reload your OS from scratch. And as long as you have backups, it's not a big deal.
Quote:
The server is located in my garage. I have a home wireless router between my Comcast modem and the server (I don't think this matters, but I am using WiFi to network it since I couldn't get wire down there). It works perfect as a webserver (I don't use it for production). I have ports 25 and 110 open for both the hardware router and iptables. I don't know what you mean by "what resources further upstream are you going to used".
"upstream" usually refers to the next hop in the chain. For example, in a corporate environment, you have your desktop computer going upstream to the email server, which goes upstream to the Internet. In your case, your upstream hop will be your ISP's mail server (if they allow you to relay, and you'll have to ask them), or you can set things up to use Google or Yahoo's mail servers. Either of those will need you to have a static IP address from your ISP first.

Since this is for your home, why are you trying to do this, if I may ask? Seems like a good bit of effort to duplicate what you already have with your ISP's mail offerings and/or Gmail.
 
Old 03-21-2014, 03:59 PM   #6
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 789

Original Poster
Rep: Reputation: Disabled
Thanks Habitual,

Looks like a good article.

You have a great day as well!
 
Old 03-21-2014, 04:03 PM   #7
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 789

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
In your case, your upstream hop will be your ISP's mail server (if they allow you to relay, and you'll have to ask them), or you can set things up to use Google or Yahoo's mail servers. Either of those will need you to have a static IP address from your ISP first.
That's if I use their mail servers, and don't create my own, right? I've sent mail from PHP before, and used by gmail account. If I do it with postfix, I don't have to rely up comcast or google, true?

Quote:
Originally Posted by TB0ne View Post
Since this is for your home, why are you trying to do this, if I may ask? Seems like a good bit of effort to duplicate what you already have with your ISP's mail offerings and/or Gmail.
Good question! It isn't my home email, but I need to set up gitlab to send out emails. Also, I wanted to be able to send email out from PHP without using my gmail account. But most of all, I suppose, I wanted to see how it is done.
 
  


Reply



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
centOS 5 - postfix setup, connecting with telnet not responding Cendent Linux - Newbie 17 07-27-2010 09:31 PM
Setup Postfix as Null Client (CentOS) novice32 Linux - Software 3 04-15-2010 06:09 PM
How to setup reverse dns check in Postfix ( CENTOS 5 ) ? dlugasx Linux - Server 1 11-04-2009 07:51 AM
How to setup mysql and saslauthd with postfix (CentOS 5.3) Guardian-Mage Linux - Server 10 04-21-2009 06:05 AM
SpamAssassin setup - good documentation tensigh Linux - Software 5 04-22-2004 10:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:51 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration