I manage a VPS with a custom configuration in the Postfix master.cf file (link to my blog explaining the trick) that allows me to associate unique SSL certificates to each domain/IP for smtp and pop/imap services. Everything runs flawlessly, except for one big flaw:
Every time the system reboots, somehow the following gets appended to the master.cf file, which breaks Postfix.
smtp inet n - n - - smtpd smtps inet n - n - - smtpd -o smtpd_tls_wrappermode=yes submission inet n - n - - smtpd -o smtpd_enforce_tls=yes -o smtpd_tls_security_level=encrypt -o smtpd_sasl_auth_enable=yes -o smtpd_client_restrictions=permit_sasl_authenticated,reject -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination
Thus, after each restart, I have to open the master.cf file, delete the lines you see below, and restart the postfix service for everything to function again.
My question is this: can anyone please tell me what script is doing this?
I looked in the following, without ever finding the culprit (but that doesn't necessarily mean it's not in one of these):