Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Redirect own server (server filter)

Discussion in 'E-mail Discussion' 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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,142
    Likes Received:
    1,932
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,142
    Likes Received:
    1,932
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Do you have the domain name in the /etc/localdomains or /etc/remotedomains file on your cPanel server?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,142
    Likes Received:
    1,932
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice