RHEL 6 for the Clueless: the Mail Server

By Ed Ed | Posted at 0:38

If you are running RHEL, you are already running a mail server. It's installed by default and setup to run. Of course, it only delivers mail locally, and only from sources within your own machine. Right now, there are no sources, so there is no mail. But the server is running.

The original Unix way of things was to use the mail server as the primary internal message system. RHEL is old fashioned in this respect, though by default, nothing is turned on which sends any messages to the root account. If you want to learn more about what's going on in your system, install the logwatch package with Yum and you'll start getting daily email messages to your root account with standard notifications of newly installed packages, who logged in when, and other significant events most system administrators track. You can adjust what sorts of things logwatch tells you about, but the defaults are pretty good.

The problem is, you'd have to figure out how to read that mail. By default the simplest way to do that is to install something called Mutt -- as you might expect, the package name is in lower case. Yum will take care of it easily. Then, you could login as root every day and fire up Mutt, and read the logwatch messages. Or, you could tell the mail server to give root's mail to someone else, such as your own user account. All you have to do is login as root, and:

gedit /etc/aliases

At the very bottom of the file, simply add a line which says:

root: username

The file itself explains the format; use a TAB between the colon and your username. Then close Gedit and run the command newaliases. Then you only have to open a Terminal window every day and run Mutt yourself. Mutt is not user friendly, particularly for folks moving from Windows. I don't like it either; I use something called Alpine. The problem is we don't have time and space for me to teach you all my peculiar tastes. I'll give you a hint that any email client you use, including the default Evolution on RHEL, can be set up to read mail directly from the internal mail server.

My habit is to use the commandline environment (AKA the console) for as much as possible -- all my email accounts, a lot of Internet surfing, most of my editing, and so forth. If you get tired of Gedit, try nano from the commandline for editing. It's included in RHEL by default. Most of the keystrokes you learned in Windows tend to work the same, plus the window displays several important commands at the bottom.

Unless you are setting up a commercial grade operation, you really don't have much chance to play with mail server administration. There was a time when most ISPs and such would tolerate a Linux user running their own mail server from home. That is, you could have your machine fetch mail from your accounts and pass it internally to your mail server. Then you could send mail from your server through the official servers where your accounts resided. Those days are gone. Very few mail servers out there will accept server connections from you because you, typically because your IP address is listed as non-server territory. They will only talk to your email client, not your server.

If you do have a genuine server connection to the Net, and you need to run a mail server operation, it's hard for me to rewrite the instructions provided by Red Hat in their Deployment Guide. If you know what a mail server is supposed to do, it's not that hard to plug in the values for the configuration files.

What I do want to explain is how RHEL lays out this operation. There are three programs you'll be running in most contexts: Postfix, Dovecot and Procmail. Dovecot is the POP and IMAP server, what allows your users and clients to get their mail from your machine. Incoming mail is caught by Postfix, which passes it to Procmail for sorting. Procmail decides who gets what. You can also have Procmail filter for spam, by plugging in SpamAssasin. You'll need to tell your mail system the various domains for which mail is accepted and handled, and where it goes. Postfix also handles your outgoing mail. As the system administrator, you would set up all the accounts for your users. Again, the RHEL Deployment Guide is not that hard to follow.

While the current crop of CentOS HOWTOs are somewhat dated, most of the details are still accurate. If you are serious about running a mail server, it's a good place to start. You may want to consider using their Postfix and Dovecot with SASL for running the now standard secure login features for an organizational mail server.

There are some good tutorials from other sources, though some of them a little dated. One of the simplest, and missing instructions for Procmail, is at the CentOS website. Each of the three programs have their own website with more information than you can absorb: Postfix, Dovecot has a wiki, and Procmail has links at the bottom of their page to various tutorials.

Re: RHEL 6 for the Clueless: the Mail Server
Posted by Alom - Jul 8, 2017 | 11:52

Re: RHEL 6 for the Clueless: the Mail Server
Posted by wishes for sister - Jul 11, 2017 | 9:31

Free Amazon Gift Cards Generator Online

Hello friends, Now you can easily acquire free amazon gift card code generator from here without downloading any file or something.

Posted by Amazon Gift Cards - Jul 14, 2017 | 8:07

Re: RHEL 6 for the Clueless: the Mail Server

Great.Thanks for sharing the information. That is very helpful for increasing my knowledge in this field .

Jaipur escorts

chandigarh escorts

Delhi escorts

Posted by chandigarh escorts - Jul 27, 2017 | 7:30

Re: RHEL 6 for the Clueless: the Mail Server

Thank you for all the great content and i think that you have to work for Digital Marketing agency Pakistan because most of Socks Manufacturers in Pakistan working with them

Posted by farooqqammar - Jul 27, 2017 | 12:34

Re: RHEL 6 for the Clueless: the Mail Server

• I clicked into your website and It is quite interesting. I see a lot of news I Have updated every hours
* gta 5 cheats pc

Posted by lynn libbrecht - Aug 5, 2017 | 8:37

Re: RHEL 6 for the Clueless: the Mail Server

McAfee Antivirus | Total Protection
Get Advanced McAfee Software Protect it from Malware , Hackers, Trojan, Virus and All other online threats.
Its a Very Important Software to get install on the devices
Get Online Mcafee Antivirus Technical Support by McAfee Customer Service

McAfee Customer Support
McAfee Support
McAfee Customer Service
McAfee Antivirus Support
McAfee Technical Support
McAfee Help
McAfee phone number

Posted by McAfee Support - Aug 7, 2017 | 12:23

For HP Laptops|1-844-443-0333 |And HP Laptop Support

Thanks for sharing your valuable features and other relevant information.

Posted by Hp Laptop Support Number - Aug 8, 2017 | 8:24

Re: RHEL 6 for the Clueless: the Mail Server

Valuable info. Lucky me I found your website by accident. I bookmarked it. This article is genuinely good and I have learned lot of things from it concerning blogging. thanks.

Posted by transformice pirata - Aug 10, 2017 | 9:17

Re: RHEL 6 for the Clueless: the Mail Server

I just want to say thanks for your wonderful post, it is contain a lot of knowledge and information that i needed right now. I wanna tell you that if you want to get more fun and enjoyment then visit my site and get more fun.
colour switch

Posted by colour switch - Aug 11, 2017 | 8:33

banh trung thu

Cua Hang banh trung thu tai Phan Thiet Sam Yen Thinh Phat xin gioi thieu cac loai banh trung thu yen sao 2017 dac biet thom ngon banh trung thu tai Thủ Dau Mot. Banh trung thu yen sao ban tai cua hang la san pham cua cong ty nha nuoc Yen Sao Khanh Hoa banh trung thu tai Ba Ria. Day la cac san pham duoc san xuat tren mot banh trung thu tai Chau Doc quy trinh khep kin dam bao cac san pham dat tieu chuan banh trung thu tai Long Xuyen ve mat an toan hop ve sinh cung nhu co chat luong het suc thom ngon va dac biet.

Posted by banh trung thu - Aug 15, 2017 | 9:11

RHEL 6 for the Clueless: the Mail Server

Valuable info. get advance RHEL 6 for the Clueless the Mail Server If you're already using a third-party email provider for sending and need to send email notifications, running a local. Thanks for sharing your valuable features and other relevant information. I m Christine Edwards working an online essay help - ready essay.

Posted by Christine Edwards - Aug 19, 2017 | 13:11

Re: RHEL 6 for the Clueless: the Mail Server

This is one of the best post of this blog…
Have a look at my blog… Farsi1HD

Posted by Ramish Kumar - Sep 2, 2017 | 14:27

check cashing spring-valley

Intriguing write-up. My partner and I examine the fantastic matter and also I do believe you ought to offer a lot more articles concerning this article. Today just click here check cashing spring-valley Your website articles actually beneficial to myself.

Posted by Pervez - Sep 17, 2017 | 16:59

Re: RHEL 6 for the Clueless: the Mail Server

It is my first time I visit here. The way you create a website very thorough and good. This is very very impressive. I found so many entertaining stuff in your blog, especially its discussion. I will continually be coming on a regular basis you just read your posts.
animal jam, a10, color switch

Posted by a10 - Sep 18, 2017 | 1:34

Please enter your comment entry below. Press 'Preview' to see how it will look.

Sign In to Your Account
User Name:
:mrgreen: :neutral: :twisted: :arrow: :shock: :smile: :???: :cool: :evil: :grin: :idea: :oops: :razz: :roll: :wink: :cry: :eek: :lol: :mad: :sad: :!: :?:
Home About Connect: Twitter Facebook RSS
© 2001-2012 Universal Networks, All Rights Reserved. Some content rights may be held by Universal Networks' providers and used under license. Powered by ServerForest and SAFARI. Learn about our privacy policy here.