LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 09-10-2016, 07:39 PM   #1
tekra
Member
 
Registered: Aug 2010
Location: Brisbane, Australia
Distribution: Gentoo, Slackware, PCLOS, Debian
Posts: 230
Blog Entries: 2

Rep: Reputation: 50
Security issues with mail server on a personal website.


I run a few small personal sites on a server using Lx with a Cpanel front end. Generally speaking the service is very good, but I've just received an embarrassing tip from an email list I recently joined:
Code:
Your misconfigured mail server is causing some subscribers servers to reject your messages,
and this is causing them to unsubscribe from the mailing list.

Here is and example of the bounce message:

<xxxxxxx@xxxxxx.co.uk>: host xxxxxxx.co.uk[XX.XX.XX.XX] said:
550-DKIM: encountered the following problem validating
52midnight.com: 550 pubkey_unavailable (in reply to end of DATA
command)
I immediately moved to a different subscription EmAdr, but need to fix the issue. I found a Cpanel page (Email::Encryption for those familiar with Cpanel) and generated a PGP key. My understanding is that many mail servers today require the exchange of keys for validation, and block non-compliant messages.

The worst part is that the emails were NOT returned to me, so I was unaware of the issue: they seem just to have been dropped, leaving me wondering how many other of my emails have quietly disappeared into cyberspace.

I formally detest the world's new obsession with fanatical levels of security and until now have tried to ignore it. Looks like I'll have to relent.

Does anyone know of GOOD documentation and/or literature describing the current state of play in this area. The biggest difficulty I face is how to test that my "fix" did actually FIX things.
 
Old 09-11-2016, 05:57 PM   #2
IRJustman
LQ Newbie
 
Registered: Sep 2016
Posts: 2

Rep: Reputation: Disabled
Read up on DKIM and how cPanel interacts with it

Quote:
Originally Posted by tekra View Post
I run a few small personal sites on a server using Lx with a Cpanel front end. Generally speaking the service is very good, but I've just received an embarrassing tip from an email list I recently joined:
Code:
Your misconfigured mail server is causing some subscribers servers to reject your messages,
and this is causing them to unsubscribe from the mailing list.

Here is and example of the bounce message:

<xxxxxxx@xxxxxx.co.uk>: host xxxxxxx.co.uk[XX.XX.XX.XX] said:
550-DKIM: encountered the following problem validating
52midnight.com: 550 pubkey_unavailable (in reply to end of DATA
command)
I immediately moved to a different subscription EmAdr, but need to fix the issue. I found a Cpanel page (Email::Encryption for those familiar with Cpanel) and generated a PGP key. My understanding is that many mail servers today require the exchange of keys for validation, and block non-compliant messages.

The worst part is that the emails were NOT returned to me, so I was unaware of the issue: they seem just to have been dropped, leaving me wondering how many other of my emails have quietly disappeared into cyberspace.

I formally detest the world's new obsession with fanatical levels of security and until now have tried to ignore it. Looks like I'll have to relent.

Does anyone know of GOOD documentation and/or literature describing the current state of play in this area. The biggest difficulty I face is how to test that my "fix" did actually FIX things.
The "fix" as you call it will not work. This has absolutely nothing to do with encryption at all, but rather, signing and signature verification. And it does not use PGP or GPG, but will use something like OpenDKIM.

What you need to do is look up some references on DKIM and also have your DNS zone files available for editing since some of the key information for DKIM is published by way of DNS.

Since I'm a new user to this forum, while I would post a URL, I can't as this is only my second post. Instead, I'll suggest you google the terms "how to set up dkim cpanel". Also, you may wish to include your distribution's name in the search terms as well.

As for cPanel, I know nothing about it, so I'm sorry, I can't offer any help. I'm far more accustomed to wrangling things directly with a root prompt, a text editor, and the applications' own tools and any ancillary third-party tools where applicable.

As for your detestation, yes, I do realize it is a royal pain in the keister, but given the crazy things people do these days, it's prudent to set up as many countermeasures as possible.
 
Old 09-11-2016, 06:26 PM   #3
tekra
Member
 
Registered: Aug 2010
Location: Brisbane, Australia
Distribution: Gentoo, Slackware, PCLOS, Debian
Posts: 230

Original Poster
Blog Entries: 2

Rep: Reputation: 50
Thanks very much for a thoughtful and enlightening reply.

> The "fix" ... has absolutely nothing to do with encryption ... it does not use PGP or GPG, but ... OpenDKIM.

I've realized that there's a heap of reading to be done if I'm to get across all this. None so far has given me the top-level overview I'm seeking, especially such things as who promulgated what appear to be a heap of new standards, and why. My first searches (on Google) turned up volumes of info on Google's own new email protection methods (if they don't yet own the Net, it won't be long ...). Finally found what looks to be a good diagnostic site (my immediate concern):

http://mxtoolbox.com

> Since I'm a new user ... I would post a URL, I can't

Hang in there: people like you are too valuable to lose.

> "how to set up dkim cpanel" ... include your distribution's name

So you're confirming that the immediate issue is related to DKIM? That's a good start. By 'distro' I take it you mean what's used to run the email server, apache/enim on Linux.

> As for cPanel, I know nothing about it, so I'm sorry, I can't offer any help.

Not a problem: it's basically just a very classy GUI to standard CLI site management tools, along with a heap of "extras".

> I'm far more accustomed to wrangling things directly with a root prompt, a text editor, and ...

It'll always be the TRUE way of doing things, but can be a pain when you only turn to the task at long intervals. After a year or two you forget so much ...

> given the crazy things people do these days, it's prudent to set up as many countermeasures as possible.

Wouldn't mind betting that a lot of the crazies are paid by the Inet/software industry to drum up business for them. Where would John McAfee be without the bug-ridden dominance of M$, Visual Basic, Outlook etc etc?

I'll post back here once I've nailed things out a bit - may be others who find it useful to judge by the View count.

Thanks again.
 
  


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
[SOLVED] Zimbra E-Mail Issues after transfering Website hosting to external host AmberM Linux - General 5 05-02-2014 03:41 PM
Can I run a personal programmed server on my website's host http server? esgol Linux - Networking 4 11-25-2012 08:07 AM
Route mail through personal server jantman Linux - Networking 3 11-30-2006 05:44 PM
hosting a personal mail server ankit_mcgill Linux - General 1 04-05-2006 07:48 AM
Personal Mail Server jmirles Linux - Newbie 3 07-10-2004 09:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:35 AM.

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