This is a long-running mail setup, migrated/updated over several years, which the last upgrade killed (just a few relatively trivial fixes needed). Nov 28 09:39:26 localhost courieresmtpd[1099]: /etc/courier/ldapaliasrc: Permission denied The above file has only user-read permissions and is owned by root (it should be owned by mail:mail). Only I didn't see that ^^ one until I cleared up another error: # /etc/init.d/courier-authlib restart * Stopping Courier mail server: ... ... /usr/sbin/courierldapaliasd: error while loading shared libraries: libcourierauthcommon.so: cannot open shared object file: No such file or directory ... * Starting courier-authlib: authdaemond ... [ ok ] * Starting courierfilterd ... /usr/sbin/courierldapaliasd: error while loading shared libraries: libcourierauthcommon.so: cannot open shared object file: No such file or directory * Starting courierd ... * Starting esmtpd ... * Starting esmtpd-msa ... * Starting esmtpd-ssl ... * courier-imapd ... * courier-imapd-ssl ... [ ok ] # locate libcourierauthcommon.so /usr/lib64/courier-authlib/libcourierauthcommon.so I'm not sure what changed recently, but since courier-authlib installs 6 or 8 libs under /usr/lib64/courier-authlib I ended up adding an env file for it in /etc/env.d with "LDPATH=/usr/lib64/courier-authlib" as a local fix. Essentially nothing works without courier-authlib. # emerge --info Portage 2.3.52 (python 2.7.15-final-0, default/linux/amd64/17.0/hardened, gcc-7.3.0, glibc-2.28-r4, 4.15.2-gentoo x86_64) ================================================================= System uname: Linux-4.15.2-gentoo-x86_64-AMD_FX-tm-6300_Six-Core_Processor-with-gentoo-2.6 KiB Mem: 8158892 total, 143276 free KiB Swap: 16777208 total, 16577304 free Head commit of repository gentoo: 455421376127a35d53d5b0c3ee781b0815ac8aed Head commit of repository nerdboy: 110df9a03f78c7e094f51be1d3d3b340791cce5c sh bash 4.4_p23 ld GNU gold (Gentoo 2.31.1 p5 2.31.1) 1.16 ccache version 3.5 [enabled] app-shells/bash: 4.4_p23::gentoo dev-java/java-config: 2.2.0-r4::gentoo dev-lang/perl: 5.26.2::gentoo dev-lang/python: 2.7.15::gentoo, 3.4.8-r1::gentoo, 3.5.5-r1::gentoo, 3.6.6::gentoo dev-util/ccache: 3.5-r1::gentoo dev-util/cmake: 3.13.2::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.6-r1::gentoo sys-apps/openrc: 0.40.3::gentoo sys-apps/sandbox: 2.14::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.11.6-r3::gentoo, 1.13.4-r1::gentoo, 1.15.1-r1::gentoo, 1.16.1-r1::gentoo sys-devel/binutils: 2.28-r2::gentoo, 2.29.1-r1::gentoo, 2.30::gentoo, 2.31.1-r3::gentoo sys-devel/gcc: 6.4.0-r5::gentoo, 7.3.0-r6::gentoo, 8.2.0-r6::gentoo sys-devel/gcc-config: 2.0::gentoo sys-devel/libtool: 2.4.6-r5::gentoo sys-devel/make: 4.2.1-r4::gentoo sys-kernel/linux-headers: 4.20::gentoo (virtual/os-headers) sys-libs/glibc: 2.28-r4::gentoo Repositories: gentoo location: /usr/portage sync-type: git sync-umask: 022 sync-uri: git://github.com/gentoo/gentoo.git sync-user: portage:portage priority: -1000 eclass-overrides: nerdboy nerdboy location: /export/portage-overlay sync-type: git sync-umask: 022 sync-uri: https://github.com/sarnold/portage-overlay.git sync-user: portage:portage masters: gentoo ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA @GPL-COMPATIBLE @OSI-APPROVED @EULA dlj-1.1 skype-eula googleearth AdobeFlash-10.1" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -mtune=bdver1 -O2 -pipe -flto=6 -ftree-vectorize -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /etc/grs/systems.conf /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.3/conf" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=athlon64 -mtune=bdver1 -O2 -pipe -flto=6 -ftree-vectorize -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block" DISTDIR="/usr/portage/distfiles" ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.utf8" LDFLAGS="-march=athlon64 -mtune=bdver1 -O2 -pipe -flto=6 -ftree-vectorize -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -fuse-linker-plugin" LINGUAS="en_US en" MAKEOPTS="-j7" PKGDIR="/usr/portage/packages" PORTAGE_BZIP2_COMMAND="/bin/bzip2" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac acl acpi ada alsa amd64 amr apache2 apng aspell avahi berkdb bluetooth bzip2 bzlib cairo caps cdda cdr consolekit crypt cups curl cxx dbus diff djvu dnotify dri drm dts dvd eds enchant exif expat fam firefox3 flac fortran gbm gd gdbm gif git glade glamor gmp gnome-keyring gnome-online-accounts gnutls graphite gstreamer gtk gtk3 hardened iconv icu idn imagemagick inotify introspection ipv6 jpeg json lcms ldap libav libnotify libsecret libtirpc libvirt lua lz4 mng mp3 multilib nautilus ncurses networking networkmanager nfs nls nptl nptlonly nsplugin ogg opengl openmp orc pam pango pcre pda pdf php pic pie pkcs11 png policykit postgres pulseaudio python qt5 readline rtc samba sasl sdl seamonkey seccomp sip slp snmp spell sqlite ssh ssl ssp startup-notification svg system-cairo system-gcc system-harfbuzz system-icu system-jpeg system-libvpx system-sqlite tcl tcpd text theora threads thunar tiff tk truetype udev udisks unicode upower usb v4l vaapi vala vdpau vorbis wayland webp wheel wifi x264 xa xattr xcb xkb xml xtpax xvmc zeroconf zlib" ABI_X86="64 32" ALSA_CARDS="emu10k1 hda-intel usb-audio" APACHE2_MODULES="actions alias auth_digest auth_basic authn_alias access_compat authn_core authn_dbd authz_core cache_disk cern_meta cgi cgid charset_lite authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_connect proxy_http rewrite setenvif speling status unique_id userdir usertrack vhost_alias unixd socache_shmcb" CALLIGRA_FEATURES="karbon plan sheets stage words" CAMERAS="adc65 agfa_cl20 aox ax203 barbie canon casio_qv clicksmart310 digigr8 digita dimagev dimera3500 directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 jl2005a jl2005c kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica konica_qm150 largan lg_gsm mars mustek panasonic_coolshot panasonic_l859 panasonic_dc1000 panasonic_dc1580 pccam300 pccam600 pentax polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ptp2 ricoh ricoh_g3 samsung sierra sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 st2205 stv0674 stv0680 sx330z toshiba_pdrm11 topfield tp6801" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx f16c fma3 fma4 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-32 efi-64 pc" INPUT_DEVICES="keyboard mouse joystick evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-minimizer wiki-publisher" NETBEANS_MODULES="apisupport java javafx profiler websvccommon cnd dlight ergonomics groovy mobility webcommon" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_4 python3_5 python3_6" QEMU_SOFTMMU_TARGETS="arm aarch64 i386 mips64 mipsel ppc ppc64 x86_64" QEMU_USER_TARGETS="arm aarch64 i386 mips64 mipsel ppc ppc64 x86_64" RUBY_TARGETS="ruby23 ruby24" SANE_BACKENDS="net" USERLAND="GNU" VIDEO_CARDS="fbdev radeon r600" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS # qlist -ICv courier mail-mta/courier-0.78.2 net-libs/courier-authlib-0.69.0 net-libs/courier-unicode-2.1 # qlist -IC courier | xargs emerge --nodeps -vp [ebuild R ] mail-mta/courier-0.78.2::gentoo USE="crypt fam gnutls ipv6 ldap nls pam postgres spell -fax -libressl -mysql -norewrite -web -webmail" 0 KiB [ebuild R ] net-libs/courier-authlib-0.69.0::gentoo USE="berkdb crypt gdbm ldap pam postgres sqlite -debug -libressl -mysql -static-libs" 0 KiB [ebuild R ] net-libs/courier-unicode-2.1::gentoo 0 KiB
The linker errors were due to an attempt by me to remove .la files, which caused errors later on that I didn't realize. This is reverted in 0.69.0-r1. Can you confirm that? I'm not sure about the ldapaliasrc error, I haven't changed anything there, but I don't use ldap.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5ca03162110b60f61d677dc63e0b03396bf0d95 commit b5ca03162110b60f61d677dc63e0b03396bf0d95 Author: Hanno <hanno@gentoo.org> AuthorDate: 2019-02-22 15:34:48 +0000 Commit: Hanno <hanno@gentoo.org> CommitDate: 2019-02-22 15:34:48 +0000 net-libs/courier-authlib: Remove broken version. This version contained removal of la files which doesn't work. Remove the ebuild so noone accidentally installs it. Resolves: https://bugs.gentoo.org/674546 Signed-off-by: Hanno Boeck <hanno@gentoo.org> Package-Manager: Portage-2.3.62, Repoman-2.3.12 .../courier-authlib/courier-authlib-0.69.0.ebuild | 150 --------------------- 1 file changed, 150 deletions(-)