Redirect own server (server filter)

aarango

Member
PartnerNOC
Dec 4, 2013
7
0
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: [email protected]
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 ([email protected]) 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
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,911
2,234
363
cPanel Access Level
DataCenter Provider
Twitter
4º Now, exim before deliver email own mailbox ([email protected]) do another query record MX, and RE-AGAIN sent to Server-Filter-Postgrey
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.
 

aarango

Member
PartnerNOC
Dec 4, 2013
7
0
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.
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,911
2,234
363
cPanel Access Level
DataCenter Provider
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.