Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 482972 - mail-mta/postfix USE=sasl - postfix/smtpd[21746]: auxpropfunc error version mismatch with plug-in / / _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: sasldb
Summary: mail-mta/postfix USE=sasl - postfix/smtpd[21746]: auxpropfunc error version m...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-30 02:45 UTC by brad
Modified: 2013-09-14 18:19 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description brad 2013-08-30 02:45:23 UTC
after migrating from depreciated smtpd_recipient_restrictions to smtpd_relay_restrictions, outbound smtp hangs for users and this is the errors I find in the logs. "auxpropfunc error version mismatch with plug-in" and a  "_sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: sql"




emailer1 saslfinger-1.0.3 # ./saslfinger -s
saslfinger - postfix Cyrus sasl configuration Fri Aug 30 00:48:43 UTC 2013
version: 1.0.2
mode: server-side SMTP AUTH

-- basics --
Postfix: 2.10.1
System: Gentoo Base System release 2.2

-- smtpd is linked to --
        libsasl2.so.2 => /usr/lib64/libsasl2.so.2 (0x00007f262e22a000)
        libsasl2.so.3 => /usr/lib64/libsasl2.so.3 (0x00007f262d6cc000)

-- active SMTP AUTH and TLS parameters for smtpd --
broken_sasl_auth_clients = no
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = no
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_tls_CAfile = /etc/ssl/postfix/nyctelecomm.com.crt
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/ssl/postfix/nyctelecomm.com.crt
smtpd_tls_key_file = /etc/ssl/postfix/nyctelecomm.com.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes


-- listing of /usr/lib64/sasl2 --
total 1180
drwxr-xr-x  2 root root   4096 Aug 11 20:29 .
drwxr-xr-x 43 root root  12288 Aug 28 18:22 ..
-rwxr-xr-x  1 root root  18632 Aug 11 20:29 libanonymous.so
-rwxr-xr-x  1 root root  18632 Aug 11 20:29 libanonymous.so.3
-rwxr-xr-x  1 root root  18632 Aug 11 20:29 libanonymous.so.3.0.0
-rwxr-xr-x  1 root root  22760 Aug 11 20:29 libcrammd5.so
-rwxr-xr-x  1 root root  22760 Aug 11 20:29 libcrammd5.so.3
-rwxr-xr-x  1 root root  22760 Aug 11 20:29 libcrammd5.so.3.0.0
-rwxr-xr-x  1 root root  56040 Aug 11 20:29 libdigestmd5.so
-rwxr-xr-x  1 root root  56040 Aug 11 20:29 libdigestmd5.so.3
-rwxr-xr-x  1 root root  56040 Aug 11 20:29 libdigestmd5.so.3.0.0
-rwxr-xr-x  1 root root  18632 Aug 11 20:29 liblogin.so
-rwxr-xr-x  1 root root  18632 Aug 11 20:29 liblogin.so.3
-rwxr-xr-x  1 root root  18632 Aug 11 20:29 liblogin.so.3.0.0
-rwxr-xr-x  1 root root  35208 Aug 11 20:29 libntlm.so
-rwxr-xr-x  1 root root  35208 Aug 11 20:29 libntlm.so.3
-rwxr-xr-x  1 root root  35208 Aug 11 20:29 libntlm.so.3.0.0
-rwxr-xr-x  1 root root 109056 Aug 11 20:29 libotp.so
-rwxr-xr-x  1 root root 109056 Aug 11 20:29 libotp.so.3
-rwxr-xr-x  1 root root 109056 Aug 11 20:29 libotp.so.3.0.0
-rwxr-xr-x  1 root root  18664 Aug 11 20:29 libplain.so
-rwxr-xr-x  1 root root  18664 Aug 11 20:29 libplain.so.3
-rwxr-xr-x  1 root root  18664 Aug 11 20:29 libplain.so.3.0.0
-rwxr-xr-x  1 root root  26800 Aug 11 20:29 libsasldb.so
-rwxr-xr-x  1 root root  26800 Aug 11 20:29 libsasldb.so.3
-rwxr-xr-x  1 root root  26800 Aug 11 20:29 libsasldb.so.3.0.0
-rwxr-xr-x  1 root root  39208 Aug 11 20:29 libscram.so
-rwxr-xr-x  1 root root  39208 Aug 11 20:29 libscram.so.3
-rwxr-xr-x  1 root root  39208 Aug 11 20:29 libscram.so.3.0.0
-rwxr-xr-x  1 root root  26816 Aug 11 20:29 libsql.so
-rwxr-xr-x  1 root root  26816 Aug 11 20:29 libsql.so.3
-rwxr-xr-x  1 root root  26816 Aug 11 20:29 libsql.so.3.0.0

-- listing of /usr/lib/sasl2 --
total 1180
drwxr-xr-x  2 root root   4096 Aug 11 20:29 .
drwxr-xr-x 43 root root  12288 Aug 28 18:22 ..
-rwxr-xr-x  1 root root  18632 Aug 11 20:29 libanonymous.so
-rwxr-xr-x  1 root root  18632 Aug 11 20:29 libanonymous.so.3
-rwxr-xr-x  1 root root  18632 Aug 11 20:29 libanonymous.so.3.0.0
-rwxr-xr-x  1 root root  22760 Aug 11 20:29 libcrammd5.so
-rwxr-xr-x  1 root root  22760 Aug 11 20:29 libcrammd5.so.3
-rwxr-xr-x  1 root root  22760 Aug 11 20:29 libcrammd5.so.3.0.0
-rwxr-xr-x  1 root root  56040 Aug 11 20:29 libdigestmd5.so
-rwxr-xr-x  1 root root  56040 Aug 11 20:29 libdigestmd5.so.3
-rwxr-xr-x  1 root root  56040 Aug 11 20:29 libdigestmd5.so.3.0.0
-rwxr-xr-x  1 root root  18632 Aug 11 20:29 liblogin.so
-rwxr-xr-x  1 root root  18632 Aug 11 20:29 liblogin.so.3
-rwxr-xr-x  1 root root  18632 Aug 11 20:29 liblogin.so.3.0.0
-rwxr-xr-x  1 root root  35208 Aug 11 20:29 libntlm.so
-rwxr-xr-x  1 root root  35208 Aug 11 20:29 libntlm.so.3
-rwxr-xr-x  1 root root  35208 Aug 11 20:29 libntlm.so.3.0.0
-rwxr-xr-x  1 root root 109056 Aug 11 20:29 libotp.so
-rwxr-xr-x  1 root root 109056 Aug 11 20:29 libotp.so.3
-rwxr-xr-x  1 root root 109056 Aug 11 20:29 libotp.so.3.0.0
-rwxr-xr-x  1 root root  18664 Aug 11 20:29 libplain.so
-rwxr-xr-x  1 root root  18664 Aug 11 20:29 libplain.so.3
-rwxr-xr-x  1 root root  18664 Aug 11 20:29 libplain.so.3.0.0
-rwxr-xr-x  1 root root  26800 Aug 11 20:29 libsasldb.so
-rwxr-xr-x  1 root root  26800 Aug 11 20:29 libsasldb.so.3
-rwxr-xr-x  1 root root  26800 Aug 11 20:29 libsasldb.so.3.0.0
-rwxr-xr-x  1 root root  39208 Aug 11 20:29 libscram.so
-rwxr-xr-x  1 root root  39208 Aug 11 20:29 libscram.so.3
-rwxr-xr-x  1 root root  39208 Aug 11 20:29 libscram.so.3.0.0
-rwxr-xr-x  1 root root  26816 Aug 11 20:29 libsql.so
-rwxr-xr-x  1 root root  26816 Aug 11 20:29 libsql.so.3
-rwxr-xr-x  1 root root  26816 Aug 11 20:29 libsql.so.3.0.0

-- listing of /etc/sasl2 --
total 32
drwxr-xr-x  2 root root  4096 Aug 11 20:29 .
drwxr-xr-x 58 root root  4096 Aug 29 05:12 ..
-rw-r--r--  1 root root   147 Aug  9 02:08 ._cfg0000_smtpd.conf
-rw-r--r--  1 root root     0 Aug 11 20:29 .keep_dev-libs_cyrus-sasl-2
-rw-r-----  1 root mail 12432 Aug  8 19:44 sasldb2
-rw-r--r--  1 root root   405 Aug 10 07:39 smtpd.conf




-- content of /etc/sasl2/smtpd.conf --
pwcheck_method: authdaemond
mech_list: LOGIN PLAIN
authdaemon_path: /var/lib/courier/authdaemon/socket

log_level: 5

sasl_pwcheck_method: auxprop
sasl_auxprop_plugin: pgsql
password_format: crypt
mech_list: LOGIN PLAIN

sql_engine: pgsql
#sql_hostnames: localhost
sql_database: postfix
sql_user: --- replaced ---
sql_passwd: --- replaced ---
sql_select: SELECT password FROM mailbox WHERE local_part='%u' AND active='1'


-- active services in /etc/postfix/master.cf --
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
smtp      inet  n       -       n       -       -       smtpd
submission inet n       -       n       -       -       smtpd
pickup    unix  n       -       n       60      1       pickup
cleanup   unix  n       -       n       -       0       cleanup
qmgr      unix  n       -       n       300     1       qmgr
tlsmgr    unix  -       -       n       1000?   1       tlsmgr
rewrite   unix  -       -       n       -       -       trivial-rewrite
bounce    unix  -       -       n       -       0       bounce
defer     unix  -       -       n       -       0       bounce
trace     unix  -       -       n       -       0       bounce
verify    unix  -       -       n       -       1       verify
flush     unix  n       -       n       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
proxywrite unix -       -       n       -       1       proxymap
smtp      unix  -       -       n       -       -       smtp
relay     unix  -       -       n       -       -       smtp
showq     unix  n       -       n       -       -       showq
error     unix  -       -       n       -       -       error
retry     unix  -       -       n       -       -       error
discard   unix  -       -       n       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp
anvil     unix  -       -       n       -       1       anvil
scache    unix  -       -       n       -       1       scache




user1  unix -       -       n       -       -       smtp
      -o syslog_name=postfix-user1
      -o smtp_bind_address6=2600:3c01:e000:44:0:0:0:10

-- mechanisms on localhost --
250-AUTH LOGIN PLAIN

-- end of saslfinger output --

*******************************  postmap  ************************************


emailer1 htdocs # postmap -q "info@nyctelecomm.com" pgsql:/etc/postfix/pgsql/virtual_alias_maps.cf
info@nyctelecomm.com
emailer1 htdocs # postmap -q "nyctelecomm.com" pgsql:/etc/postfix/pgsql/virtual_mailbox_domains.cf
nyctelecomm
emailer1 htdocs # postmap -q "info@nyctelecomm.com" pgsql:/etc/postfix/pgsql/virtual_mailbox_maps.cf
nyctelecomm.com/info/

*********************************************  postconf ************************

emailer1 htdocs # postconf -n
broken_sasl_auth_clients = no
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 3
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5
disable_vrfy_command = yes
home_mailbox = .maildir/
html_directory = no
inet_protocols = ipv4, ipv6
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = no
sample_directory = /etc/postfix
sender_dependent_default_transport_maps = hash:/etc/postfix/transport.cf
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtpd_client_restrictions = permit_sasl_authenticated permit_mynetworks, check_client_access
smtpd_delay_reject = yes
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_sasl_authenticated permit_mynetworks, reject_unknown_helo_hostname, reject_invalid_helo_hostname
smtpd_recipient_restrictions = permit_sasl_authenticated permit_mynetworks, permit_sasl_authenticated
smtpd_relay_restrictions = permit_sasl_authenticated permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = no
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = permit_sasl_authenticated reject_non_fqdn_sender, reject_unknown_sender_domain
smtpd_tls_CAfile = /etc/ssl/postfix/nyctelecomm.com.crt
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/ssl/postfix/nyctelecomm.com.crt
smtpd_tls_key_file = /etc/ssl/postfix/nyctelecomm.com.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550
virtual_alias_maps = pgsql:/etc/postfix/pgsql/virtual_alias_maps.cf
virtual_gid_maps = static:5000
virtual_mailbox_base = /var/vmail
virtual_mailbox_domains = pgsql:/etc/postfix/pgsql/virtual_mailbox_domains.cf
virtual_mailbox_maps = pgsql:/etc/postfix/pgsql/virtual_mailbox_maps.cf
virtual_uid_maps = static:5000


************************  error  ***********************************

2013-08-28T23:06:57+00:00 emailer1 postfix/smtpd[21746]: auxpropfunc error version mismatch with plug-in
2013-08-28T23:06:57+00:00 emailer1 postfix/smtpd[21746]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: sasldb
2013-08-28T23:06:57+00:00 emailer1 postfix/smtpd[21746]: auxpropfunc error version mismatch with plug-in
2013-08-28T23:06:57+00:00 emailer1 postfix/smtpd[21746]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin:
Comment 1 brad 2013-08-30 02:46:23 UTC
emailer1 htdocs # emerge --info
Portage 2.1.12.2 (hardened/linux/amd64, gcc-4.5.3, glibc-2.15-r3, 3.9.3-x86_64-linode33 x86_64)
=================================================================
System uname: Linux-3.9.3-x86_64-linode33-x86_64-Intel-R-_Xeon-R-_CPU_E5-2650L_0_@_1.80GHz-with-gentoo-2.2
KiB Mem:      678768 total,     89836 free
KiB Swap:     262140 total,    238364 free
Timestamp of tree: Fri, 30 Aug 2013 00:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.5-r2, 3.2.5-r2
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.11.6, 1.12.6
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.5.3-r2, 4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 apache2 authdaemond berkdb bzip2 clamdtop cli cracklib crypt cxx dri fam gdbm goeip hardened iconv imap iproute2 ipv6 justify ldap maildir mmx modules mudflap multilib ncurses nls nptl openmp pam pax_kernel pcre php postgres readline sasl session spamassassin spell sse sse2 ssl tcpd unicode urandom vda vhosts zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid 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 rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 2 brad 2013-08-30 05:34:42 UTC
BTW, I used this installation method  ->  https://wiki.gentoo.org/wiki/Complete_Virtual_Mail_Server  one month ago.
Comment 3 Eray Aslan gentoo-dev 2013-09-14 18:19:21 UTC
Closing.  See:
http://stackoverflow.com/questions/18523693/broken-smtpd-auth-after-update-cyrus-sasl

Re-open if you still have a problem.