• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Prevent spam send directly to the server IP / Postfix configuration

Flux24

New Pleskian
Hello,

we have some problems with spam, that is directly send to the server IP, bypassing the external mailfilter specified in the MX. Whats the best way to prevent this?

There are some methods to prevent spam directly send to the server, like changing port 25 to an alternative port and then close port 25, or set the firewall to restrict access to the mailserver to the IPs of the external mailfilter. The problem with this is, as far as I see, that we would lock out the users, that have mailboxes/accounts on our servers and send emails by connecting to SMTP, often from dynamic IPs.

Is there a way to solve this problem by configuring Postfix, for example using "smtpd_client_restrictions" to restrict access to the external mailfilter, or would this cause the same problem with users on the server, trying to send emails by their accounts? Is it possible for Postfix to distinguish this, so we could restrict access to accept mails only from the external mailfilter, but still allow users with mail-accounts on our servers to connect and send emails?

Thank you,
Flux24
 
Back
Top