Gary Aitken wrote: > On 6/16/20 6:03 AM, Dan Ritter wrote: > > Gary Aitken wrote: > > > On 6/15/20 3:37 PM, Dan Ritter wrote: > > > > Gary Aitken wrote: > > > ... > > > > > When originally built, the system had a screwed-up postfix > > > > > installation; > > > > > in attempting to solve this problem, I wanted to uninstall postfix and > > > > > reinstall it. However, I don't think I should do that because the > > > > > postfix > > > > > installation has an issue: > > > > > > > > > > $ aptitude why postfix > > > > > i automysqlbackup Depends bsd-mailx | mailx > > > > > i A bsd-mailx Depends default-mta | mail-transport-agent > > > > > i A postfix Provides mail-transport-agent > > > > > > > > > > Can anyone give me some clues on how to resolve this? > > > > > > > > > The main goal is to uninstall postfix and re-install it, without > > > > > uninstalling > > > > > the automysqlbackup as this is a production system and the autobackup > > > > > is > > > > > working properly. I believe the postfix dependency is for cases > > > > > where the > > > > > auto-backup fails; it's also preventing mail from being delivered for > > > > > failing > > > > > cron jobs. > > > > > > > > sudo apt install --reinstall postfix > > > > > > > > sudo dpkg-reconfigure postfix > > > > > > > > might do what you want. In general, Debian derivatives will try > > > > to prevent you from uninstalling critical machinery, like libc. > > > > > > I've already tried reconfiguring and reinstalling postfix, to no avail. > > > > Yes, but did apt install --reinstall help? > > The reason I think I need to do a purge is the conf files are what is screwed > up (I think), and a reinstall doesn't mess with them: > > > Unfortunately, I don't see a way to do the equivalent of purge --reinstall > and ignore the dependencies so automysqlbackup is left intact: > > $ apt --simulate purge --reinstall postfix
Since postfix is already hosed: sudo rm -rf /etc/postfix sudo apt install --reinstall postfix -dsr-