Hide a mail servers IP address - postfix headers and email relay
Hi,
I have a mail server running cPanel (WHM), I have close to 3000 clients that check their mail from cPanel's webmail options. The mail server gets DDoS attacked fairly frequently and I've lost over a thousand dollars on different hosts who have terminated my account because of these attacks. I am trying to sort out an elaborate system to hide the cPanel server and make the site as a whole harder to attack. What I have so far: For apache: Code:
--> EC2 server But my problem is with setting up mail relays, I have no idea what my postfix config file should look like and really don't understand smart hosts or mail relays enough to set it up, I've tried heaps of tutorials online about setting up a mail relay and still can't get it working. Ideally I need something like this: Mail Outgoing: (I already have Exim routing to a random EC2 instance working, I set up a smart host in WHM to do it) Code:
Mail-->Exim route Code:
Mail--->EC2 server (MX #1) Code:
Mail server on EC2 instance a) Is the best method for me? I know a lot of EC2 IP addresses are registered as spammers but EC2 offers some help with that... b) Should I choose postfix or exim, I've spent literally hundreds of hours trying to get this working on EC2 and postfix but just don't have the knowledge to make this work. c) Could you please help me with setting this up? Show me what my postfix config file should look like or give me any tips. |
Does anyone have any suggestions to help me out?
|
All times are GMT -5. The time now is 03:02 PM. |