Topic: Some issues when upgrading from Debian 8 to 9
Hi all,
This is just to give some input on what you need to think of when upgrading from Debian 8 to Debian 9.
In another post, I mentioned that you need to remove !SSLv2 from ignored protocols in dovecot.conf. Go to http://www.iredmail.org/docs/upgrade.debian.8-9.html to read on how to fix this (hopefully these parts will be added there aswell ).
Now I've encountered an issue where postfix won't start. For starters I've removed all settings that excluded SSLv2 in main.cf (since that broke dovecot). But it still won't start. Syslog dosen't say much more than there is an issue.
Aug 4 10:03:05 testmail systemd[1]: Starting Postfix Mail Transport Agent (instance -)...
Aug 4 10:03:06 testmail systemd[1]: postfix@-.service: Control process exited, code=exited status=1
Aug 4 10:03:06 testmail systemd[1]: Failed to start Postfix Mail Transport Agent (instance -).
Aug 4 10:03:06 testmail systemd[1]: postfix@-.service: Unit entered failed state.
Aug 4 10:03:06 testmail systemd[1]: postfix@-.service: Failed with result 'exit-code'.
Aug 4 10:03:06 testmail systemd[1]: Starting Postfix Mail Transport Agent...
Aug 4 10:03:06 testmail systemd[1]: Started Postfix Mail Transport Agent.
This part in mail.log points at something that seems to be the issue:
Aug 4 10:03:05 testmail postmulti[8176]: fatal: instance /etc/postfix, shlib_directory=/usr/lib/postfix conflicts with instance /etc/postfix, daemon_directory=/usr/lib/postfix
So after some digging I finally found the answer to what to do. I first found an suggestion to move shlib_directory to /usr/lib/postfix/lib. The folder didn't exist, but I created it and tried. Then I got a new error saying that it couldn't find /usr/lib/postfix/postfix-script. Looking into the folder, I could see that it didn't exist.
After looking through some more I finally found this page: https://bbs.archlinux.org/viewtopic.php?id=195294, where they state that postfix-script has been moved to /usr/lib/postfix/bin (for arch-linux). And that you needed to point daemon_directory there.
In Debian though the folder is called /usr/lib/postfix/sbin. So after removing the shlib_directory from main.cf and added daemon_directory = /usr/lib/postfix/sbin. I finally got postfix started.
Next issue was with fail2ban. It didn't start and didn't get much from systemd and logs. So after trying to start it manually, I got that port was defined twice in pam-generic.
So what you need to do then is to open /etc/fail2ban/jail.conf and look for the section [pam-generic]. It will look like something like this:
[pam-generic]
enabled = false
# pam-generic filter can be customized to monitor specific subset of 'tty's
filter = pam-generic
# port actually must be irrelevant but lets leave it all for some possible uses
port = all
banaction = iptables-allports
port = anyport
logpath = /var/log/auth.log
maxretry = 6
What i did was to simply comment out port = anyport and restart fail2ban, and it started. Though I haven't found which of the ports are the valid one. So if you'll find which of the ports should be used, let me know .
I'll do some more testing and looking through my test system. If I find something else, I'll post it here.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.