Configure Incoming Filtering with Postfix
To restrict deliveries to your Postfix server from our filtering nodes and IP addresses, complete the below steps:
- Create the file
/etc/postfix/access
with the content: - Execute the command:
- Either:
- Add the following to
/etc/postfix/main.cf
smtpd_client_restrictions = check_client_access hash:/etc/postfix/access, permit_mynetworks, reject
- If you already have
smtpd_client_restrictions
defined in/etc/postfix/main.cf
, insert the following at the beginning of your definition and replacepermit
withreject
at the end of definition:"check_client_access hash:/etc/postfix/access"
OR
- Add the following to
- Reload the Postfix configuration by executing the following command:
- Restart Postfix by executing the following command:
postmap /etc/postfix/access
sudo postfix reload
/etc/init.d/postfix restart
Per domain setup
It's also possible with Postfix to configure the MTA to only allow connections from the SpamExperts servers for specific protected domains:
- Add the following to the
main.cf
- Create the following file:
- Add the following content:
- Create the following file:
- Add the domains that you want to configure:
- Postmap both files:
- Reload the Postfix configuration by executing the following command:
- Restart Postfix by executing the following command:
smtpd_restriction_classes = = check_client_access hash:/etc/postfix/, reject smtpd_recipient_restrictions = check_recipient_access hash:/etc/postfix/protected_destinations, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
/etc/postfix/
/etc/postfix/protected_destinations
demo-domain.invalid
postmap /etc/postfix/
postmap /etc/postfix/protected_destinations
sudo postfix reload
/etc/init.d/postfix restart
Local Cloud
Replace antispamcloud.com with your servers root hostname.
Disclaimer: This documentation may contain references to third party software or websites. N-able has no control over third party software or content and is not responsible for the availability, security, or operation, of any third-party software. If you decide to utilize a release involving third-party software, you do so entirely at your own risk and subject to the applicable third party’s terms and conditions of the use of such software. No information obtained by you from N-able or this documentation shall create any warranty for such software.