• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved Postfix milter-reject after upgrade to Onyx

SKDamon

Basic Pleskian
I've upgraded our Plesk to 17.8 Onyx, and now customers can't send Mails through Postfix SMTP.
Log:
Code:
postfix/smtpd[17394]: connect from unknown[X.X.X.X]
postfix/smtpd[17394]: warning: connect to Milter service inet:127.0.0.1:12768: Connection refused
postfix/smtpd[17394]: NOQUEUE: milter-reject: CONNECT from unknown[X.X.X.X]: 451 4.7.1 Service unavailable - try again later; proto=SMTP
postfix/smtpd[17394]: NOQUEUE: milter-reject: EHLO from unknown[X.X.X.X]: 451 4.7.1 Service unavailable - try again later; proto=SMTP helo=<User>
postfix/smtpd[17394]: disconnect from unknown[X.X.X.X] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4

postfix/smtpd[18890]: connect from unknown[X.X.X.X]
postfix/smtpd[18890]: warning: milter inet:127.0.0.1:3000: EOF while reading command code: Connection reset by peer
postfix/smtpd[18890]: warning: milter inet:127.0.0.1:3000: read error in initial handshake
postfix/smtpd[18890]: NOQUEUE: milter-reject: CONNECT from unknown[X.X.X.X]: 451 4.7.1 Service unavailable - try again later; proto=SMTP
postfix/smtpd[18890]: NOQUEUE: milter-reject: EHLO from unknown[X.X.X.X]: 451 4.7.1 Service unavailable - try again later; proto=SMTP helo=<User>
postfix/smtpd[18890]: disconnect from unknown[X.X.X.X] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4

The first log was plesk default settings. After finding out drwebd.real listens on port 3000 and port 12768 isn't open at all, I've changed the postfix config manually:
Code:
#smtpd_milters = inet:127.0.0.1:12768
smtpd_milters = inet:127.0.0.1:3000

That produced the second log where milter receives EOF.
What's going on here? The only way I can send mails is to comment smtpd_milters entirely.
 
Hi SKDamon,

I'm sorry to inform you, that your manual edit is a mistake. The default configuration is:

On Debian/Ubuntu - based systems:
Code:
smtpd_milters = inet:127.0.0.1:12768
non_smtpd_milters =

On CentOS/RHEL - based systems:
Code:
smtpd_milters = , inet:127.0.0.1:12768

Pls. make sure to restart the depending services with for example:
Code:
/usr/local/psa/admin/sbin/mailmng --stop-service
/usr/local/psa/admin/sbin/mailmng --start-service


If you still experience issues/errors/problems, pls. make sure that you opened all necessary ports, as suggested:

 
All done, now to the real problem: Wasn't psa-pc-remote upgraded, or am I just missing libraries?
Code:
~# /usr/lib/plesk-9.0/psa-pc-remote --help
/usr/lib/plesk-9.0/psa-pc-remote: error while loading shared libraries: libmilter.so.1.0: cannot open shared object file: No such file or directory

~# dpkg -l sw-libmilter
||/ Name                                          Version                     Architecture                Description
+++-=============================================-===========================-===========================-================================================================================================
ii  sw-libmilter                                  8.14.5.1-ubuntu12.04.150720 amd64                       Sendmail Mail Filter API (Milter)

EDIT I found the .so and linked it to /lib/, now psa-pc-remote binds to port 12768 and postfix seems to work fine now.
But my question remains, wasn't it upgraded? Should I reinstall some Plesk component?
 
Hi SKDamon,

pls. consider to UPGRADE your operating system, because of:

=> Software Requirements for Plesk
Code:
Ubuntu 12.04 is supported on Plesk Onyx 17.0 but is not supported starting from Plesk Onyx 17.5.


If you desire to get to know, if you have the latest Plesk components installed, you have two choices:

Use the command ( logged in as user "root" over SSH ):
Code:
plesk installer --select-product-id plesk --select-release-current --reinstall-patch --install-component base
and make sure, that you use the command
Code:
aptitude upgrade
... on a regular basis to get the latest upgrades for your current Ubuntu 12.04 version from your vendor.

Consider to compair your installed packages with the ones from => Index of /PSA_17.0.17/dist-deb-Ubuntu-12.04-x86_64 and => Index of /PSA_17.0.17/extras-deb-Ubuntu-12.04-x86_64/opt .​
 
Actually, I'm running Plesk 17.8 on Ubuntu 16.04.
Will the plesk installer command install sw-libmilter? I couldn't find it on the autoinstall repo server for Plesk 17.8

(BTW are Downgrades considered safe? I might want to downgrade to 17.0 stable)
 
Actually, I'm running Plesk 17.8 on Ubuntu 16.04.
Will the plesk installer command install sw-libmilter? I couldn't find it on the autoinstall repo server for Plesk 17.8

(BTW are Downgrades considered safe? I might want to downgrade to 17.0 stable)
Please note, that Plesk downgrade is not supported.

Package sw-libmilter should be installed. On my Debian8 Plesk 17.8 I see:

# plesk version
Product version: Plesk Onyx 17.8.4
Build date: 2017/07/24 19:00
OS version: Debian 8.5

# dpkg -l | grep sw-libmilter
ii sw-libmilter 8.14.5.1-debian8.0.17061316 amd64 Sendmail Mail Filter API (Milter)

# dpkg -L sw-libmilter
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/sw-libmilter
/usr/share/doc/sw-libmilter/LICENSE
/usr/share/doc/sw-libmilter/README
/usr/lib
/usr/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu/sw
/usr/lib/x86_64-linux-gnu/sw/libmilter.so.1.0
 
Hi SKDamon,

Actually, I'm running Plesk 17.8 on Ubuntu 16.04.
If this is the case, then you missed a complete update/upgrade, as your command should show:
Code:
ii  sw-libmilter                        8.14.5.1-ubuntu16.04.1 amd64                  Sendmail Mail Filter API (Milter)



(BTW are Downgrades considered safe? I might want to downgrade to 17.0 stable)
The latest STABLE release is 17.5.3 ( late adopter since 03.07.2017 ) and downgrades are neither safe nor supported by Plesk.

 
Thanks for the fast responses.
Here is some more info:
Code:
~# apt-get update && apt-cache show sw-libmilter
Hit:1 http://ftp.hosteurope.de/mirror/archive.ubuntu.com xenial InRelease
Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Hit:3 http://archive.canonical.com/ubuntu xenial InRelease
Ign:4 http://archive.ubuntu.com/ubuntu trusty InRelease
Hit:5 http://autoinstall.plesk.com/ubuntu/PMM_0.1.10 xenial InRelease
Hit:6 http://autoinstall.plesk.com/ubuntu/PSA_17.8.2 xenial InRelease
Hit:7 http://archive.ubuntu.com/ubuntu trusty Release
Get:8 http://ftp.hosteurope.de/mirror/archive.ubuntu.com xenial-updates InRelease [102 kB]
Hit:9 http://autoinstall.plesk.com/ubuntu/PHP56_17 xenial InRelease
Hit:10 http://autoinstall.plesk.com/ubuntu/PHP70_17 xenial InRelease
Hit:11 http://autoinstall.plesk.com/ubuntu/PHP71_17 xenial InRelease
Get:12 http://ftp.hosteurope.de/mirror/archive.ubuntu.com xenial-backports InRelease [102 kB]
Hit:13 https://apt.dockerproject.org/repo ubuntu-xenial InRelease
Fetched 306 kB in 2s (144 kB/s)
Reading package lists... Done
Package: sw-libmilter
Status: install ok installed
Priority: extra
Section: libs
Installed-Size: 108
Maintainer: Parallels <[email protected]>
Architecture: amd64
Version: 8.14.5.1-ubuntu12.04.15072015
Depends: libc6 (>= 2.14)
Description: Sendmail Mail Filter API (Milter)
Description-md5: cf25dcadfce77c05b06a376772118806

~# plesk version
Product version: Plesk Onyx 17.8.2
     Build date: 2017/06/10 01:00
     OS version: Ubuntu 16.04
       Revision: 41e847910ca562fc3d57da71451a469106f40c5c
   Architecture: 64-bit
Wrapper version: 1.2

Am I missing a repository? The ubuntu12.04 version is the latest I get from apt.
 
Hi SKDamon,

The correct version for
Code:
plesk version
Product version: Plesk Onyx 17.8.2
     Build date: 2017/06/10 01:00
     OS version: Ubuntu 16.04
       Revision: 41e847910ca562fc3d57da71451a469106f40c5c
   Architecture: 64-bit
Wrapper version: 1.2
would be:
Code:
apt-cache show sw-libmilter
Package: sw-libmilter
Architecture: amd64
Version: 8.14.5.1-ubuntu16.04.17051014
Priority: extra
Section: libs
Maintainer: Parallels <[email protected]>
Installed-Size: 87
Depends: libc6 (>= 2.14)
Filename: ../../PSA_17.8.2/dist-deb-Ubuntu-16.04-x86_64/contrib/sw-libmilter_8.14.5.1-ubuntu16.04.17051014_amd64.deb
Size: 29264
MD5sum: bc8b4df526a4550c46433041c6f31a8f
SHA1: 08bc5d38a8a86610ee0f2265ec96eac7361a0be6
SHA256: 4d92152255958abb975f3a26676ac50ac6b2f1cd7155ca2b99a21db54c3b8525
SHA512: 7144d386f0e70b5c6479350e0a1845afc4885c6495d17c7823d00f5b0c3121663dfe99c8378b95d92c169d238b98481e2e73e1becbb51886a019bb35f525ae1c
Description: Sendmail Mail Filter API (Milter)
Description-md5: cf25dcadfce77c05b06a376772118806

Package: sw-libmilter
Architecture: amd64
Version: 8.14.5.1-ubuntu16.04.17031415
Priority: extra
Section: libs
Maintainer: Parallels <[email protected]>
Installed-Size: 87
Depends: libc6 (>= 2.14)
Filename: ../../PSA_17.5.3/dist-deb-Ubuntu-16.04-x86_64/contrib/sw-libmilter_8.14.5.1-ubuntu16.04.17031415_amd64.deb
Size: 29262
MD5sum: e8c605f899ee91df1bc958755a2487a9
SHA1: 7cc5b54b9fcb7034e2741afbdfb5dd1f45478bff
SHA256: f5019dfbc8d141139281d112519505a120b527a97dcb44073e321aca840b5dc5
SHA512: 781d117535756ce6f0950dda07f5b9d773e424e5d131657c1036418e2f24e26a7efffaf2c3f0aca1ed6b24095aa1e32e3a7ade8eec169852fe1efa82fa608d4c
Description: Sendmail Mail Filter API (Milter)
Description-md5: cf25dcadfce77c05b06a376772118806


For Ubuntu 16.04 and Plesk version 17.8, you could use these additional mirrors:
Code:
#########START    ADDITIONAL Plesk repositories and third party repositories for Plesk FOR UBUNTU XENIAL ( 16.04 ) ##########

deb http://updates.atomicorp.com/channels/tortix-common/debian xenial main
# deb-src http://updates.atomicorp.com/channels/tortix-common/debian xenial main

deb http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/PSA_17.8.2 xenial all
# deb-src http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/PSA_17.8.2 xenial all

deb http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/PSA_17.8.2 xenial extras
# deb-src http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/PSA_17.8.2 xenial extras

deb http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/PHP52_17 xenial all
# deb-src http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/PHP52_17 xenial all

deb http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/PHP53_17 xenial all
# deb-src http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/PHP53_17 xenial all

deb http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/PHP54_17 xenial all
# deb-src http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/PHP54_17 xenial all

deb http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/PHP55_17 xenial all
# deb-src http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/PHP55_17 xenial all

deb http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/PHP56_17 xenial all
# deb-src http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/PHP56_17 xenial all

deb http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/PHP70_17 xenial all
# deb-src http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/PHP70_17 xenial all

deb http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/PHP71_17 xenial all
# deb-src http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/PHP71_17 xenial all

deb http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/NGINX17 xenial all
# deb-src http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/NGINX17 xenial all

deb http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/PMM_0.1.10 xenial all
# deb-src http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/PMM_0.1.10 xenial all

deb [arch=amd64] http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/RUBY_0.0.1 xenial all
# deb-src http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/RUBY_0.0.1 xenial all

deb [arch=amd64] http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/debian/NODE_0.0.1 all all
# deb-src http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/debian/NODE_0.0.1 all all

deb [arch=amd64] http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/LETSENCRYPT_0.0.2 xenial all
# deb-src http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/LETSENCRYPT_0.0.2 xenial all

#########END        ADDITIONAL Plesk repositories and third party repositories for Plesk FOR UBUNTU XENIAL ( 16.04 ) ##########



Pls. consider as well to use the commands:
Code:
plesk repair installation -y -v

plesk installer --select-release-current --upgrade-installed-components
 
Thanks. For the record, and anyone that came here from google:
Code:
~# apt-cache showpkg sw-libmilter
Package: sw-libmilter
Versions:
8.14.5.1-ubuntu16.04.17051014 (/var/lib/apt/lists/ftp.hosteurope.de_mirror_autoinstall.plesk.com_ubuntu_PSA%5f17.8.2_dists_xenial_all_binary-amd64_Packages) (/var/lib/dpkg/status)
 Description Language:
                 File: /var/lib/apt/lists/ftp.hosteurope.de_mirror_autoinstall.plesk.com_ubuntu_PSA%5f17.8.2_dists_xenial_all_binary-amd64_Packages
                  MD5: cf25dcadfce77c05b06a376772118806


Reverse Depends:
  plesk-mail-pc-driver,sw-libmilter
Dependencies:
8.14.5.1-ubuntu16.04.17051014 - libc6 (2 2.14)
Provides:
8.14.5.1-ubuntu16.04.17051014 -
Reverse Provides:

If and how you would translate that to the official repo path is beyond me (I use hosteurope repos because they are my provider).
Thanks again for the great help. BTW could it be a bug in plesk installer? From a user perspective, I think it should actually check and add needed repositories.
Anyway, case closed!
 
Back
Top