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.

Redirect own server (server filter)

Discussion in 'E-mail Discussions' started by aarango, Feb 19, 2014.

  1. aarango

    aarango Member
    PartnerNOC

    Joined:
    Dec 4, 2013
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi

    I have a doubt with exim, I am going to explain it better:

    I have a server which receive all emails from one domain, its okay.
    Now, I created other server with Postgrey to receive all emails (to avoid spam), so I changed record MX to this new server, then it ocurrs this:

    1º Someone send me an email, example: aarango@mydomain.com
    2º My record MX -> redirect to Server-Filter-Postgrey
    3º When Server-Filter-Postgrey check email and its okay (free spam and virus) , redirect again to original server (using tansport in Postfix)
    4º Now, exim before deliver email own mailbox (aarango@mydomain.com) do another query record MX, and RE-AGAIN sent to Server-Filter-Postgrey

    How could I reject that original server do another query MX to deliver email to own mailbox?
    Example, any rule like "if email is for @mydomain.com, keep in local and deliver it without query MX)

    I tried to use manualroute on exim but not works, any ideas please?

    I'm sorry if I didn't explain correctly.

    Thanks
    Best Regards
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    It sounds like there is a problem with the setup at the remote mail server. How are you redirecting emails from that server to your cPanel server?

    Thank you.
     
  3. aarango

    aarango Member
    PartnerNOC

    Joined:
    Dec 4, 2013
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi Michael,

    Thanks for your reply. In that server we have configured Postfix (Debian) and we with function transport sent that email (already scanned) to cPanel server, where this server (cPanel) should understand that thil is from own server and delivered it. Is it right?

    Thansk.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  5. aarango

    aarango Member
    PartnerNOC

    Joined:
    Dec 4, 2013
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi

    Thanks you for answer Michael. I have domain in /etc/localdomains but domain isn't in /etc/remotedomains , should I add it?

    Thanks again.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    You could try, but I am not sure that's the way to resolve the issue here. You may need to speed with a qualified system administrator who can review the settings on both mail servers and determine the best way to implement this custom solution.

    Thank you.
     
Loading...

Share This Page