Question Plesk keeps re-enabling IPV6

finbarr69

Basic Pleskian
Server operating system version
Ubuntu 22.04.5 LTS
Plesk version and microupdate number
Plesk Obsidian 18.0.77 Update #2 Web Host Edition
My hosting provider does not provide a reverse DNS IP mapping for IPV6, and as google requires this to accept email from my server, I have to disable IPV6 on the server. I disabled it following the instructions. It works for a few weeks, then something updates the configuration file /etc/postfix/main.cf and turns it back on. I now have a cron that runs every 5 minutes to turn it back off again if it sees it change.
I just wondered if anyone else has seen this annoying behaviour?
Thanks
 
Are you trying to disable IPv6 system wide or just for outgoing emails? If just for outgoing emails, why not just the "Outgoing mail mode" setting under Tools & Settings > Mail Server Settings to be "Send from the specified IP addresses" and leaving IPv6 to None while choosing the IPv4 address you want to send from?
 
Are you trying to disable IPv6 system wide or just for outgoing emails? If just for outgoing emails, why not just the "Outgoing mail mode" setting under Tools & Settings > Mail Server Settings to be "Send from the specified IP addresses" and leaving IPv6 to None while choosing the IPv4 address you want to send from?
Sorry for the late reply to this. Thanks for the suggestion.
I have already set send from the specified IP address to the IPV4 address, and the ipv6 address to None.
Something is still changing /etc/postfix/main.cf to put the IPV6 entry back in.
 
@finbarr69 , this is expected behavior after running the plesk repair mail command, installation of Plesk microupdates, changes made in Plesk GUI > Tools & Settings > Mail Server Settings. We have an existing feature request to change the behavior. In the meantime, as a workaround, you may reapply the changes made to the /etc/postfix/main.cf at a given period of time (15 minutes in the example below) by setting up a cron job while following these steps:

1. Log into your server via SSH as the root user.
2. Executing the following command in order to reach edit the crontab on your Linux server:

Code:
crontab -e

3. Add a line that would edit the Postfix configuration and restart Postfix in order to apply the changes at every 15th minute:

Code:
*/15 * * * * postconf "inet_protocols = ipv4" && systemctl restart postfix

4. Save the changes

Whenever this cron job runs, the inet_protocols in Postfix will be set to ipv4 and Postfix will be restarted in order to apply the changes.
 
Back
Top