Running your own mail server

Discussion in 'Tutorials and Guides' started by wlanboy, Aug 9, 2013.

Tags:
  1. grayfuz

    grayfuz New Member

    14
    0
    May 15, 2013
    thanks.. how long does this usually take? does colo crossing supports swip?
     
  2. Aldryic C'boas

    Aldryic C'boas The Pony

    2,313
    2,652
    Apr 18, 2013
    Aldryic
    Hearing back from Google?  Could be anywhere from a week to six months.  I've _never_ had decent reply turnaround from them unless it involved giving them money.

    As far as ColoCrossing and SWIP... that's going to be a bit more difficult, regardless of whether they'll do the SWIP for you.  The problem there is that I've noticed a rather high percentage of abuse (both spam and network-related) coming from CC IP ranges - to the point that I've straight-up blacklisted a bunch of them from even being able to reach our clients.  It's very possible that their ranges may already be blacklisted at major email providers due to past spam complaints.

    Velocity-Servers is a good example of this.  Their SpamHaus listing is pretty nasty ()http://www.spamhaus.org/sbl/listings/velocity-servers.net - including several ROKSO listings), and seeing as how they're on CC IP Space (http://whois.arin.net/rest/nets;q=216.246.49.27?showDetails=true&showARIN=false&ext=netref2), you're going to have a hard time getting your assigned IP whitelisted anywhere.

    Best course of action if you're sending emails that have to get through - either run your mail server on a provider with 1) clean netblocks, and 2) a solid history of actively dealing with spam;  or just use AmazonSES.  SES is fairly cheap (we send out something like 50-70k emails a month, and it costs less than 5$), they're whitelisted for Google, Yahoo, and other major mail providers, and it's real easy to work with.
     
  3. wlanboy

    wlanboy Content Contributer

    2,126
    1,169
    May 16, 2013
    Try MX Lookup Tool.

    1. Enter you domain
    2. Click the green "find problems" button
    Quite decent check about all domain settings and services.
     
  4. grayfuz

    grayfuz New Member

    14
    0
    May 15, 2013
    thanks aldryic, i recently checked my ip if it is included in blacklisted ip thankful it not. does dkim and spf helps?
     
  5. grayfuz

    grayfuz New Member

    14
    0
    May 15, 2013
    thanks wlanboy, so far everything is ok.
     
  6. Jack

    Jack Active Member

    579
    129
    May 15, 2013
    Great guide, I think I will try this out with a personal domain now :)
     
  7. wlanboy

    wlanboy Content Contributer

    2,126
    1,169
    May 16, 2013
    Looking forward to your feedback.
     
  8. Riccardo_G

    Riccardo_G New Member

    23
    2
    Oct 6, 2013
    excellent tutorial

    a lot of passion
     
  9. wlanboy

    wlanboy Content Contributer

    2,126
    1,169
    May 16, 2013
    Thank you.

    Feel free to add steps/comments. They are both welcomed.
     
  10. BuyCPanel-Kevin

    BuyCPanel-Kevin New Member Verified Provider

    121
    23
    Oct 7, 2013
    Wow, this is amazing, I will definitely have to try this out soon. Thanks for putting in the time to make this in depth tutorial!
     
    wlanboy likes this.
  11. DragonDF

    DragonDF New Member

    25
    2
    Oct 22, 2013
    Nice tuto. Specially because it runs in a low RAM VPS.

    I think it could be a good idea to test if your messages are being received by big providers, specially Hotmail and Yahoo.

    ;)
     
  12. perennate

    perennate New Member Verified Provider

    387
    106
    May 15, 2013
    Hotmail is a pain because they often silently discard email. I'm surprised anyone finds it usable.
     
    Last edited by a moderator: Oct 23, 2013
  13. DragonDF

    DragonDF New Member

    25
    2
    Oct 22, 2013
    I do not know where you live, but where I live, I think at least 60% of the people use Hotmail (I think because in the past it was the unique way to use MSN).

    I have 2 hotmail accounts. But I usually use Gmail. :)
     
  14. wlanboy

    wlanboy Content Contributer

    2,126
    1,169
    May 16, 2013
    Yup, you should always check if your ip is clean.

    Good test of all DNS/MX/Mail settings are:

    It is comforting to have your domain checked:

    dnscheck.jpg
     
  15. wlanboy

    wlanboy Content Contributer

    2,126
    1,169
    May 16, 2013
    Updated some entries and added a chapter about backup mx.
     
    peterw likes this.
  16. wlanboy

    wlanboy Content Contributer

    2,126
    1,169
    May 16, 2013
    Updated the iptables and ssl part of the tutorial.
     
  17. ADDISON

    ADDISON New Member

    1
    0
    Oct 14, 2014
    Excellent tutorial. In the last two weeks I struggled myself to understand how the emails are sent (MTA - MDA - MUA) and still finding more and more stuff. This is the main reason I came on this page and subscribed to your Forum.

    MTA: Postfix, Exim 4, Courier New Mail, Sendmail. Most of you are using Postfix

    MDA: Procmail, Sieve, Maildrop. I am forced to used Procmail because Virtualmin/Webmin like it. But using Dovecot a dovecot-sieve can be used. There a migration script from procmail to sieve.

    As I understood right MTA deals with SpamAssasssin than passes the email to MDA for dropping them in the right folders. After that Dovecot is dealing with Email Agent (MUA) for getting the email into the user computer. I really appreciate if some of you will describe the full process of sending/receiving email. Thank you.

    For VPS Enthusiast I appreciate if you provide a solution for filtering viruses. My test VPS will deal with Windows systems and I have to do this. Can you help me to understand Amavisd-new idea? They pretend ClamAV and SpamAssassin could be queried by Amavisd without having them loaded? Virtualmin is dealing with ClamAV and SpamAssasing and I guess it is being done by Postfix, then passed to Procmail then into boxes. 

    Thank you for your time in providing a potential solution for viruses.
     
  18. sshgroup

    sshgroup New Member

    21
    0
    Nov 3, 2014
    thank youuuuu , i was looking for such a good tutorial

    :wub:
     
  19. Catalin

    Catalin New Member

    1
    0
    Jun 6, 2014
    Good tutorial, i will try it on a 128MB ram.. ipv6 only vps.. just to see if it works.
     
  20. wlanboy

    wlanboy Content Contributer

    2,126
    1,169
    May 16, 2013
    Would anyone want to help me porting this tutorial to CentOS?
    I think some would like to use CentOS instead of Debian/Ubuntu.
     
    Licensecart likes this.