0

I have setup proxmox mail gateway in front of exim with many domains. But only some domains in exim are enabled for mail gateway. But sometimes, those domains recieve spam mails bypassing mail gateway. Because spammers are directly deliverying mails to exim ip.

So I need to set a rule in exim-filter (I think), to accept mails from only mailgateway hostname and reject the rest. But must be able to be done per domain basis.

Can you guide me?

1
  • Sounds like you want an rcpt ACL active on the public MX ip to refuse deliveries for the indirectly delivered domains, and a connect ACL on the internal IP to refuse sessions with anyone but the gateway. What is your current configuration?
    – anx
    Nov 3, 2022 at 20:01

1 Answer 1

0

This seems to be ok for now.

 acl_check_rcpt:
deny    domains       = gatewayedomain.com
        hosts         = !gayewat.hostname.com
        message       = Mail rejected!

But I noted this is problem with local domain not using mailgateway...

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .