How do I configure a white list of IPs/domains for PMTA?

Could someone please explain how to create a whitelist of IP/Domain configurations on PMTA Config? Thank you.

To create a whitelist of IP/Domain configurations on PMTA Config, follow these steps:

1. Understand the purpose: Before creating a whitelist, it is important to clearly define what you want to achieve. Are you looking to allow only certain IP addresses or domains to send emails through your PMTA server?

2. Access PMTA Config: Log in to your PowerMTA server and access the PMTA Config file. This file contains all the configuration settings for your PMTA server.

3. Find the ACL section: Look for the Access Control List (ACL) section within the PMTA Config file. This section allows you to define rules for accepting or rejecting connections based on certain criteria.

4. Define IP whitelist: To whitelist specific IP addresses, you need to add them to the ACL section. Use the “acl-connect-ip” rule followed by the IP address you want to whitelist. For example: acl-connect-ip 192.168.0.1.

5. Define domain whitelist: To whitelist specific domains, you can use the “acl-connect-domain” rule followed by the domain name. For example: acl-connect-domain example.com.

6. Customize the whitelist: You can add multiple IP addresses and domains to the ACL section, separating them with a space or a newline. This allows you to create a comprehensive whitelist tailored to your specific needs.

7. Save and restart PMTA: Once you have defined your whitelist, save the changes to the PMTA Config file and restart your PMTA server for the changes to take effect.

It’s worth noting that the exact steps and syntax may vary depending on the version of PMTA you are using. It is recommended to consult the official PMTA documentation or seek assistance from experts if you encounter any difficulties during the configuration process.

Remember, whitelisting IP addresses or domains can be an effective way to ensure that only trusted sources are allowed to send emails through your PMTA server.

To create a pattern white list IP/Domain config on PMTA (PowerMTA) config, you can follow the steps below:

1. Access the PMTA config file: The PMTA config file is typically located in the /etc/pmta directory. Use a text editor to open the config file.

2. Define the pattern: To create a pattern white list, you need to define the IP address or domain pattern that you want to whitelist. This can be either a single IP address, a range of IP addresses, a domain name, or a combination of these.

3. Add the pattern to the white list section: Inside the PMTA config file, you will find a section labeled “Whitelisting.” Add your pattern to this section following the proper syntax. The syntax for whitelisting IP addresses is: “whitelist_ip = xxx.xxx.xxx.xxx” (replace “xxx.xxx.xxx.xxx” with the IP address). For domain whitelisting, use “whitelist_domain = example.com”.

4. Save the changes: Once you have added the pattern to the white list section, save the changes to the PMTA config file.

5. Restart PMTA: To apply the newly added white list pattern, you need to restart the PMTA service. You can do this by either using the command “pmta restart” or by restarting the server.

After following these steps, the IP address or domain pattern you added will be included in the white list, allowing them access to the PMTA server. This can be useful when you want to ensure that certain IPs or domains are not subject to any restrictions or filtering.

Remember that PMTA’s white list feature can help improve your email deliverability by allowing trusted sources to bypass certain restrictions. However, it is important to use this feature judiciously and only include IPs or domains that you trust to avoid compromising the security and reputation of your email server.

Please note that the specific steps and syntax may vary depending on your PMTA version and configuration. It is recommended to consult the official PMTA documentation or seek assistance from the PowerMTA support team for precise instructions tailored to your setup.