• 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.

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