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.

Catchall problem

Discussion in 'General Discussion' started by screege, Jan 21, 2005.

  1. screege

    screege Well-Known Member

    Joined:
    Aug 11, 2004
    Messages:
    186
    Likes Received:
    0
    Trophy Points:
    16
    Hi I have site that has an mx that is pointing to another server to receive e-mail, if I send any e-mail let´s say from hotmail or anything else everything works fine, my problem is when I want to send e-mail from my own server it gets into the catchall account and not to the other server, I have tried putting the catchall to :fail: and :blackhole: and nothing.

    Can anyone help me?

    Thank you
     
  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
    Remove the domain from /etc/localdomains, put the domain into /etc/remotedomains (create the file if it doesn't exist). That should be it.
     
  3. gorilla

    gorilla Well-Known Member

    Joined:
    Feb 3, 2004
    Messages:
    699
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Sydney / Australia
    Go into WHM / DNS Functions / Edit a DNS Zone
    choose the domain > where it says



    mail | 14400 | cname | domainname.com

    change to

    mail | 14400 | A | 111.111.111.111 ( which is the IP of your customers prefered mail server)

    This will point the system to the new mail server !

    Have tryed chirpys trick before but it didnt work for me, this way you dont even have to log into shell ! :)
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    You will still need to do the steps I mentioned (the DNS change is indeed required if you haven't done it). Without making the file changes, exim will still think the domain is local and not deliver to the remote MX ;)
     
  5. gorilla

    gorilla Well-Known Member

    Joined:
    Feb 3, 2004
    Messages:
    699
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Sydney / Australia
    Thats interessting , 'cause i didnt do that to those customers who requested remote mail servers and its seems to be working with my methode ?

    let me just double check and see what happens when i send an email to one of those domains
     
  6. gorilla

    gorilla Well-Known Member

    Joined:
    Feb 3, 2004
    Messages:
    699
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Sydney / Australia
    actually , u where right chirpy ! :cool:
    needed to do ur methode for a particular older account which had quiet a lot of emails in the mail queue, but i need to point out that just that wasnt enough , it needs to be in combination with my first post http://forums.cpanel.net/showpost.php?p=165512&postcount=3 as well :)
     
    #6 gorilla, Jan 22, 2005
    Last edited: Jan 22, 2005
  7. screege

    screege Well-Known Member

    Joined:
    Aug 11, 2004
    Messages:
    186
    Likes Received:
    0
    Trophy Points:
    16
    Done it but

    Ok so I just create the file remotedomains put the name of the domain and that´s it? Should I reset bind or apache or anything else?

    Thanks a lot
     
  8. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    That's it. Did you remove it from /etc/localdomains too? Exim immediately picks up the changes from those two files.
     
  9. screege

    screege Well-Known Member

    Joined:
    Aug 11, 2004
    Messages:
    186
    Likes Received:
    0
    Trophy Points:
    16
    Ok

    Ok done it and works really fine thanks a lot =o)
     
Loading...

Share This Page