• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

things in main.cf get overwritten when changing unrelated "Mail Server Settings"

wurzelpete

New Pleskian
Hi!
I have edited the main.cf file to integrate some anti-spam settings which work flawlessly. Now I noticed that whenever I change something completely unrelated in the "Mail Server Settings"-Page, some of these settings get removed and replaced with default values.

In particular these settings of mine
Code:
smtpd_recipient_restrictions =
 permit_mynetworks,
 permit_sasl_authenticated,
 reject_non_fqdn_sender,
 reject_non_fqdn_recipient,
 reject_unknown_sender_domain,
 reject_unknown_recipient_domain,
 reject_unknown_client_hostname,
 reject_unauth_destination,
 reject_rbl_client ix.dnsbl.manitu.net
get replaced by
Code:
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
Obviously I want to keep my own settings even if I change something in Plesk on the "Mail Server Settings" page (and wherever else).

How can I prevent Plesk from overwriting my own settings of smtpd_recipient_restrictions?

Thanks for your help!
 
Doesn't Plesk use postconf to add and delete values?
It shouldn't touch any of the already existing settings I thought.


IgorG, can you verify?
 
I face the same issue and there are several trigger when plesk overwrite/replace the main.cf. I have as a workaround a cronjob who checks if the main.cf was modified and replace it with my version. Hopefully there will be a better solution
 
Last edited:
Back
Top