Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Nov 2005
    Posts
    64

    Arrow Need to find a proper way of discarding all incoming mail

    I offer webhosting services without POP3/SMTP services, and only php mail() function is supposed to work for sending outbound emails. I would like to discard ALL emails coming to the server. However, I want to keep the ability to SEND emails from that server. So the server has to be able to accept connections (this is needed if remote host wants to ensure that e-mail address is valid by connecting to my server).

    What is the correct way of doing this?

    Thanks!

  2. #2
    Member eNetHosts's Avatar
    Join Date
    Apr 2007
    Posts
    195

    Default

    use the :blackhole: in place of where email should be
    Our Website: http://www.enethosts.co.uk
    Premium Value Server Management: Click Here
    Our Off Network Support Services: Click Here
    Our Webdesign Services: Click Here
    Our Hosting Services: Click Here
    VPS/VDS Hosting, Super Cheap, Below Competitive Prices and cPanel Virtuozzo: Click Here - You Won't Find A Better Deal!


  3. #3
    Member eNetHosts's Avatar
    Join Date
    Apr 2007
    Posts
    195

    Default

    or :fail: instead
    Our Website: http://www.enethosts.co.uk
    Premium Value Server Management: Click Here
    Our Off Network Support Services: Click Here
    Our Webdesign Services: Click Here
    Our Hosting Services: Click Here
    VPS/VDS Hosting, Super Cheap, Below Competitive Prices and cPanel Virtuozzo: Click Here - You Won't Find A Better Deal!


  4. #4
    Member
    Join Date
    Nov 2005
    Posts
    64

    Default

    Thanks for answering!

    This is currently running with :fail: set up in "WHM->Tweak settings". But for some reason, when a user adds a domain into their account, it starts receiving all e-mail for that domain (all mail features are disabled in feature manager, so user cannot access that pages) filling up user's disk space... When I go to /etc/valiases to check that domain, there is no :fail: in the file but user's login (meaning that his account will catch all domain's e-mail).

    That is why I am thinking of something more "global" than that. I already blocked IMAP/POP3/POP3-TLS ports and modified DNS templates so that they do not include MX records anymore, but I want to allow users to modify MX records, and in this case they will be able to add an MX record pointing to the server (accidentally or not).

    So... Long story short, I am hoping that there is a very simple solution to discard all incoming mail by let's say adding something to exim config...

  5. #5
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Oct 2003
    Posts
    1,931

    Default

    in WHM tweak settings

    set Default catch-all/default address behavior for new accounts. fail is usually the best choice if you are getting mail attacks.

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

Similar Threads & Tags
Similar threads

  1. Customize Sub-domain of Outgoing/Incoming Mail Server for Mail Client Settings
    By URPad in forum Feature Requests for cPanel/WHM
    Replies: 6
    Last Post: 09-07-2010, 09:36 PM
  2. Replies: 8
    Last Post: 08-06-2008, 12:05 PM
  3. Replies: 11
    Last Post: 07-01-2008, 04:51 AM
  4. Squirrel Mail and Qmail incoming mail problem
    By fadzli in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-07-2006, 01:16 AM
  5. Want to Route Bounced Mail to Proper Sender
    By urantian in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 01-03-2006, 07:46 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube