Results 1 to 8 of 8

Thread: How do I null route e-mail?

  1. #1
    Member
    Join Date
    Aug 2005
    Posts
    35

    Default How do I null route e-mail?

    I have a user whose domain receives an ungodly amount of spam (one word domain name), and has opted to not use his mail at all because of it. This is great because he receives so much spam that it causes load spikes on the server.

    I removed his MX record from DNS thinking that this would stop mail from coming to the server, but it seems that even after about a week, the messages were either still cached OR, they were just tracing to the IP of the server and flatout sending it too that IP (I know that sounds far fetched, but somehow they are still getting to the server).

    My question, how do I prevent any and all mail for this domain from even hiting my server? I'd much rather not worry about his e-mail. Any suggestions?

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Oct 2003
    Posts
    2,002

    Default

    set the account to :fail:
    Lowest Host/Empire Technology LLC
    Affordable hosting solutions http://empire-hosting.net
    List Your hosting site FREE in http://hostgeneration.com

  3. #3
    Member
    Join Date
    Jan 2005
    Posts
    1,880

    Default

    True, set the account's default address to :fail: and Exim will reject all mail for all invalid local recipients.

    Mail for valid local mailboxes and forwarders will still be received, so if this user really doesn't want any mail on this domain, it would be worth checking that all mailboxes and forwarders are deleted.

    Regarding the MX issue, some MTAs will route mail to the IP of a domain's A record either if an MX for the domain doesn't exist or just because they feel like it.

  4. #4
    Member
    Join Date
    Aug 2005
    Posts
    35

    Default

    I've already got the account set to :fail: , you've got to understand, I don't want our mail server to even acknowledge that a mail server exists for this domain. Nothing. This account receives so much of it, if we could stop it at DNS, that would be ideal.

  5. #5
    Member
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    675

    Default

    :blackhole: deletes is without anyone knowing to /dev/null im pretty sure.
    Upload Guardian 2.0 - Sign up for our early beta
    ServerProgress - Server security, consulting and assistance

  6. #6
    Member
    Join Date
    Aug 2005
    Posts
    35

    Default

    Emphasis is on alleviating load. Blackhole will still write to the exim_mainlog and actually consumes more resources than :fail: (for a reason that escapes my memory at the moment). I flat out don't want mail to hit my mail server from this domain at all.

    An idea was suggested, creating an A record to point to 0.0.0.0 for mail.domain.com and then setting up the mx record for that domain to refer to mail.domain.com . Has anyone every tried this?

  7. #7
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,496

    Default

    You cannot avoid email actually hitting the server if you have the A record of the TLD pointing to it. This is because the SMTP protocol allows the use of the A record if the MX record doesn't resolve. You could try pointing the A record for the subdomain used by the MX record to outer space, but you may still get some email hitting the server. For that, simply take the domain name out of /etc/localdomains and stick it in /etc/remotedomains (create if needed). That's the best you can do.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  8. #8
    Member
    Join Date
    Aug 2005
    Posts
    35

    Default

    Quote Originally Posted by chirpy
    You cannot avoid email actually hitting the server if you have the A record of the TLD pointing to it. This is because the SMTP protocol allows the use of the A record if the MX record doesn't resolve. You could try pointing the A record for the subdomain used by the MX record to outer space, but you may still get some email hitting the server. For that, simply take the domain name out of /etc/localdomains and stick it in /etc/remotedomains (create if needed). That's the best you can do.

    Thats a good idea.. i'll give that a try and post m' results after about a week. Thanks

Similar Threads

  1. some mail /dev/null some mail not /dev/null....
    By bignose in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 01-15-2010, 08:37 AM
  2. incoming email procedure (or: mail handling route/path)
    By mikesmithfl in forum E-mail Discussions
    Replies: 3
    Last Post: 04-05-2006, 10:40 AM
  3. Want to Route Bounced Mail to Proper Sender
    By urantian in forum cPanel & WHM Discussions
    Replies: 6
    Last Post: 01-03-2006, 07:46 AM
  4. Null routing mail in Exim
    By Ben-Orbital in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 10-14-2004, 09:06 AM
  5. Help! Good mail dumping to /dev/null
    By Edward123 in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 08-05-2004, 09:22 AM