repairing a broken postfix on plesk 9

first, stop the mail manager:

[code]/usr/local/psa/admin/sbin/mailmng –stop-service[/code]

then locate all of the shitty mapped mailbox junk and delete it:

[code]find /usr/local/psa/handlers/before-* -type f | while read h ; do [ ! -d /usr/local/psa/handlers/info/$(basename $h) ] && rm -f "$h"  ; done[/code]

run mchk to rebuild all of the structure:

[code]/usr/local/psa/admin/sbin/mchk –with-spam[/code]

and restart the mail manager:

[code]/usr/local/psa/admin/sbin/mailmng –start-service[/code]

Leave a Reply

Your email address will not be published. Required fields are marked *