The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

:fail: as default email blocks mail to main account - solution

Discussion in 'E-mail Discussions' started by versatilia, Jun 3, 2005.

  1. versatilia

    versatilia Registered

    Joined:
    Jun 3, 2005
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    (if there's a more appropriate thread please move this!)

    I'm fairly new to cPanel and I wanted to encourage my users to use :fail: as their default mail address. Only trouble is it blocks email to the main account at the domain. I've seen many people complaining about this on various forums.

    I've suggested to the cpanel folks that they add an 'override' tick box but in the meantime here is an exim config file tweak you can use to make it work on all accounts:


    Line 582 - instead of this line:

    Code:
    data = ${if
    exists{/etc/valiases/$domain}{${lookup{*}lsearch{/etc/valiases/$domain}}}}
    put this line:

    Code:
    data = ${if exists{/etc/valiases/$domain}{ ${if
    eq{$local_part}{${lookup{$domain}lsearch{/etc/userdomains}{$value}}}
    {$local_part}{${lookup{*}lsearch{/etc/valiases/$domain}}}
    }}}
    (remove the line endings, it should all be on one line!)
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    This is a well known quirk of the cPanel setup. If you set the Default Address (catchall) to anything other than the main account, then you must create a virtual POP3 account for the domain instead. I.e. if the main account was called bob, you would need to create a new account called bob@mydomain.com and then use bob@mydomain.com in your local email client to login to the POP3 server instead of just bob.
     
  3. versatilia

    versatilia Registered

    Joined:
    Jun 3, 2005
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Yeah I thought that - it's too much work to expect of my users though!

    I posted the idea of a "bypass default for main account" tickbox to bugzilla and one of the cpanel guys has picked it up.
     
  4. rs-freddo

    rs-freddo Well-Known Member

    Joined:
    May 13, 2003
    Messages:
    832
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Australia
    cPanel Access Level:
    Root Administrator
    Maybe I've got it wrong, but...

    You can fail the catchall and still use the main account

    To do this simply make the default address ":fail: no such email address"
    or my own preference ":fail: please use the contact form on our website"
    and then setup forwards to:
    username@servername

    eg. My server is called "secure.freddo.com" one of my clients has the username "thisclient"
    so their main email account is thisclient@secure.freddo.com
    so they might put in a forward:
    support@thisclientdomain.com -> thisclient@secure.freddo.com
    this way they can use the webmail in their control panel AND there is no need to setup any extra email POP3 accounts. Unlimited email addresses without extra POP boxes.

    I've noticed that clients that setup large numbers of pop boxes and collect them regularly (every 10 minutes) can really raise the CPU load. It's much better if they login to ONE box ONLY. This keeps your load down which means you can fit more clients on a box.
     
  5. versatilia

    versatilia Registered

    Joined:
    Jun 3, 2005
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Doh! Thanks freddo, can't believe I didn't think of that simple solution!
    However I don't usually set up an MX record for the server name because sometimes I'll move customers over from one server to another, and that needs to be transparent. I suppose I could set up a subdomain 'mx' on each customer domain... thanks for the idea.
     
  6. rs-freddo

    rs-freddo Well-Known Member

    Joined:
    May 13, 2003
    Messages:
    832
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Australia
    cPanel Access Level:
    Root Administrator
    I always setup an mx record for the server name. You're right though if you move people from one server to another you'd have to adjust their forwards. They are contained in a single file (forget what it's called) and changing them is quick and easy (only done it once).
     
Loading...

Share This Page