Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 519668 - mail-filter/sid-milter-1.0.0-r6 with sys-libs/glibc-2.19 rejects pretty much all mails
Summary: mail-filter/sid-milter-1.0.0-r6 with sys-libs/glibc-2.19 rejects pretty much ...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Deadline: 2019-09-26
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2014-08-11 20:04 UTC by Bruno
Modified: 2019-08-27 21:08 UTC (History)
4 users (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 Bruno 2014-08-11 20:04:10 UTC
Since upgrading glibc from 2.17 to 2.19 sid-milter started rejecting pretty much all incoming mail.

sid-milter cmdline:
/usr/bin/sid-filter -p local:/run/sid-milter/sid-filter.sock -a /etc/sid-filter-peers -f -n -u milter -r 5 -B -l -L 8

Sample debug log from sid-milter (rewritten local part of e-mail address, but keeping dots):
2014 Aug 11 21:32:00 [mail.info] postfix/smtpd[1686]: connect from smtprelay.restena.lu[158.64.1.62]
2014 Aug 11 21:32:01 [mail.info] postfix/smtpd[1686]: 3CA77219D109: client=smtprelay.restena.lu[158.64.1.62]
2014 Aug 11 21:32:01 [mail.info] postfix/cleanup[1693]: 3CA77219D109: message-id=<20140811212610.5e9e78ff@uranus>
2014 Aug 11 21:32:01 [mail.debug] sid-filter[1090]: 3CA77219D109 check_host ip=158.64.1.62 domain=restena.lu sender=some.one@restena.lu
2014 Aug 11 21:32:01 [mail.debug] sid-filter[1090]: 3CA77219D109 >>> check-host ip=158.64.1.62 domain=restena.lu sender=some.one@restena.lu
2014 Aug 11 21:32:01 [mail.debug] sid-filter[1090]: 3CA77219D109   < marid restena.lu?
2014 Aug 11 21:32:01 [mail.debug] sid-filter[1090]: 3CA77219D109   > 0 records
2014 Aug 11 21:32:01 [mail.debug] sid-filter[1090]: 3CA77219D109 <<< check_host ip=158.64.1.62 domain=restena.lu sender=some.one@restena.lu: None
2014 Aug 11 21:32:01 [mail.debug] sid-filter[1090]: 3CA77219D109   < no more requests
2014 Aug 11 21:32:01 [mail.debug] sid-filter[1090]: 3CA77219D109 check_host: None
2014 Aug 11 21:32:01 [mail.debug] sid-filter[1090]: 3CA77219D109 check_host ip=158.64.1.62 domain=retena..lu sender=someonne@retena..lu
2014 Aug 11 21:32:01 [mail.debug] sid-filter[1090]: 3CA77219D109 >>> check-host ip=158.64.1.62 domain=retena..lu sender=someonne@retena..lu
2014 Aug 11 21:32:01 [mail.debug] sid-filter[1090]: 3CA77219D109 *** domain segment starts with '.', which is not a letter or digit ***
2014 Aug 11 21:32:01 [mail.debug] sid-filter[1090]: 3CA77219D109 <<< check_host ip=158.64.1.62 domain=retena..lu sender=someonne@retena..lu: Fail MalformedDomain
2014 Aug 11 21:32:01 [mail.debug] sid-filter[1090]: 3CA77219D109   < no more requests
2014 Aug 11 21:32:01 [mail.debug] sid-filter[1090]: 3CA77219D109 check_host: Fail MalformedDomain
2014 Aug 11 21:32:01 [mail.info] postfix/cleanup[1693]: 3CA77219D109: milter-reject: END-OF-MESSAGE from smtprelay.restena.lu[158.64.1.62]: 5.7.1 8; from=<some.one@restena.lu> to=<someone@somedomain.eu> proto=ESMTP helo=<smtprelay.restena.lu>
2014 Aug 11 21:32:01 [mail.info] postfix/smtpd[1686]: disconnect from smtprelay.restena.lu[158.64.1.62]

It looks as if splitting and merging segments separated with dots became broken.

Reproducible: Always
Comment 1 Jeroen Roovers gentoo-dev 2014-08-11 21:38:27 UTC
Please post your `emerge --info mail-filter/sid-milter' output in a comment.
Comment 2 Bruno 2014-08-12 17:11:01 UTC
Portage 2.2.8-r1 (hardened/linux/amd64/no-multilib, gcc-4.7.3, glibc-2.19-r1, 3.15.3+ x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.15.3+-x86_64-AMD_Turion-tm-_64_X2_Mobile_Technology_TL-56-with-gentoo-2.2
KiB Mem:     2015896 total,    229936 free
KiB Swap:    2097144 total,   2096968 free
Timestamp of tree: Sat, 09 Aug 2014 10:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.7
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2::unspecified
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories:

gentoo
    location: /var/cache/tree/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

unspecified
    location: /var/cache/tree/overlay
    masters: gentoo 
    priority: 0

ABI="amd64"
ABI_X86="64"
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
ACCEPT_PROPERTIES="*"
ACCEPT_RESTRICT="*" 
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"
ARCH="amd64"
AUTOCLEAN="yes"
BOOTSTRAP_USE="cxx unicode internal-glib python_targets_python3_3 python_targets_python2_7 multilib hardened pax_kernel pic xtpax -jit -orc"
CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author"
CAMERAS="ptp2"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"  
CFLAGS_amd64="-m64" 
CFLAGS_x32="-mx32"  
CFLAGS_x86="-m32"   
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x32="x86_64-pc-linux-gnux32"
CHOST_x86="i686-pc-linux-gnu"
CLEAN_DELAY="5"
COLLECTD_PLUGINS="cpu disk df filecount irq load memory netlink network rrd rrdtool rrdcached swap syslog tail tcpconns unixsock users match_timediff match_regex mysql postgres nginx curl processes ping postgresql iptables table cgroups"
COLLISION_IGNORE="/lib/modules/* *.py[co] *$py.class */dropin.cache"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DEFAULT_ABI="amd64" 
DISTDIR="/var/cache/distfiles"
EDITOR="/usr/bin/vim"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="--ask --verbose --buildpkg"
EMERGE_ELOG_CLASSES="warn error log"
EMERGE_ELOG_SYSTEM="save"
EMERGE_WARNING_DELAY="10"
EPREFIX=""
EROOT="/"
FCFLAGS="-O2 -pipe" 
FEATURES="assume-digests binpkg-logs buildpkg 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 userpriv usersandbox usersync xattr"
FETCHCOMMAND="wget -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
FETCHCOMMAND_RSYNC="rsync -avP "${URI}" "${DISTDIR}/${FILE}""
FETCHCOMMAND_SFTP="bash -c "x=\${2#sftp://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port=22 ; eval \"declare -a ssh_opts=(\${3})\" ; exec sftp -P \${port} \"\${ssh_opts[@]}\" \"\${host}:/\${x#*/}\" \"\$1\"" sftp "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}""
FETCHCOMMAND_SSH="bash -c "x=\${2#ssh://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port=22 ; exec rsync --rsh=\"ssh -p\${port} \${3}\" -avP \"\${host}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}""
FFLAGS="-O2 -pipe"  
GCC_SPECS=""
GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://gentoo.inode.at/source/"
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 ublox ubx"
GRUB_PLATFORMS=""   
HOME="/root"
INFOPATH="/usr/share/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.7.3/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.23.2/info"
INPUT_DEVICES="keyboard mouse evdev"
IUSE_IMPLICIT="abi_x86_64 prefix"
KERNEL="linux"
LANG="en_US.UTF-8"  
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LC_MESSAGES="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LDFLAGS_amd64="-m elf_x86_64"
LDFLAGS_x32="-m elf32_x86_64"
LDFLAGS_x86="-m elf_i386"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe %s"
LIBDIR_amd64="lib64"
LIBDIR_amd64_fbsd="lib64"
LIBDIR_arm="lib"
LIBDIR_arm64="lib64"
LIBDIR_n32="lib32"  
LIBDIR_n64="lib64"  
LIBDIR_o32="lib"
LIBDIR_ppc="lib32"  
LIBDIR_ppc64="lib64"
LIBDIR_s390="lib32" 
LIBDIR_s390x="lib64"
LIBDIR_sparc32="lib32"
LIBDIR_sparc64="lib64"
LIBDIR_x32="libx32" 
LIBDIR_x86="lib32"  
LIBDIR_x86_fbsd="lib32"
LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer"
LINGUAS="en fr de nl"
LOGNAME="root"
LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:"
MAIL="/var/mail/root"
MAKEOPTS="-j3"
MANPATH="/usr/local/share/man:/usr/share/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.7.3/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.23.2/man:/usr/lib64/php5.5/man/:/usr/share/postgresql/man/:/usr/share/postgresql-9.3/man/"
MULTILIB_ABIS="amd64"
MULTILIB_STRICT_DENY="64-bit.*shared object"
MULTILIB_STRICT_DIRS="/lib32 /lib /usr/lib32 /usr/lib /usr/kde/*/lib32 /usr/kde/*/lib /usr/qt/*/lib32 /usr/qt/*/lib /usr/X11R6/lib32 /usr/X11R6/lib"
MULTILIB_STRICT_EXEMPT="(perl5|gcc|gcc-lib|binutils|eclipse-3|debug|portage|udev|systemd|clang|python-exec)"
MULTIOSDIRS="../lib64"
NETBEANS="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml"
NGINX_MODULES_HTTP="access auth_basic auth_request autoindex fastcgi geo gzip gzip_static headers_more limit_req limit_conn map rewrite ssi geoip spdy stub_status upstream_ip_hash xslt"
OFFICE_IMPLEMENTATION="libreoffice"
PAGER="/usr/bin/less"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.7.3"
PHP_TARGETS="php5-5"
PKGDIR="/var/cache/binpkg"
PORTAGE_ARCHLIST="ppc sparc64-freebsd ppc-openbsd x86-openbsd ppc64 x86-winnt x86-fbsd ppc-aix alpha arm x86-freebsd s390 amd64 arm-linux x86-macos x64-openbsd ia64-hpux hppa x86-netbsd ppc64-linux x86-cygwin amd64-linux ia64-linux x86 sparc-solaris x64-freebsd sparc64-solaris x86-linux x64-macos sparc m68k-mint ia64 mips ppc-macos x86-interix hppa-hpux amd64-fbsd x64-solaris m68k sh arm64 x86-solaris sparc-fbsd"
PORTAGE_BIN_PATH="/usr/lib64/portage/bin"
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"   
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="log warn error"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="save_summary:log,warn,error,qa echo"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"   
PORTAGE_GPG_SIGNING_COMMAND="gpg --sign --digest-algo SHA256 --clearsign --yes --default-key "${PORTAGE_GPG_KEY}" --homedir "${PORTAGE_GPG_DIR}" "${FILE}""
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_INTERNAL_CALLER="1"
PORTAGE_NICENESS="3"
PORTAGE_OVERRIDE_EPREFIX=""
PORTAGE_PYM_PATH="/usr/lib64/portage/pym"
PORTAGE_PYTHONPATH="/usr/lib64/portage/pym"
PORTAGE_REPOSITORIES="[DEFAULT]
main-repo = gentoo  

[gentoo]
location = /var/cache/tree/portage
masters =
priority = -1000
sync-type = rsync   
sync-uri = rsync://rsync.gentoo.org/gentoo-portage

[unspecified]
location = /var/cache/tree/overlay
masters = gentoo
priority = 0
"
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"
PORTAGE_RSYNC_RETRIES="-1"
PORTAGE_SYNC_STALE="30"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_VERBOSE="1" 
PORTAGE_WORKDIR_MODE="0700"
PORTAGE_XATTR_EXCLUDE="security.* system.nfs4_acl"
PORTDIR="/var/cache/tree/portage"
PORTDIR_OVERLAY="/var/cache/tree/overlay"
PORT_LOGDIR_CLEAN="find "${PORT_LOGDIR}" -type f ! -name "summary.log*" -mtime +7 -delete"
PROFILE_ONLY_VARIABLES="ARCH ELIBC IUSE_IMPLICIT KERNEL USERLAND USE_EXPAND_IMPLICIT USE_EXPAND_UNPREFIXED USE_EXPAND_VALUES_ARCH USE_EXPAND_VALUES_ELIBC USE_EXPAND_VALUES_KERNEL USE_EXPAND_VALUES_USERLAND"
PWD="/root"
PYTHONDONTWRITEBYTECODE="1"
PYTHON_SINGLE_TARGET="python2_7"
PYTHON_TARGETS="python2_7"
RESUMECOMMAND="wget -c -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
RESUMECOMMAND_RSYNC="rsync -avP "${URI}" "${DISTDIR}/${FILE}""
RESUMECOMMAND_SSH="bash -c "x=\${2#ssh://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port=22 ; exec rsync --rsh=\"ssh -p\${port} \${3}\" -avP \"\${host}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}""
ROOT="/"
ROOTPATH="/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.7.3"
RPMDIR="/usr/portage/rpm"
RUBY_TARGETS="ruby19 ruby20"
SHELL="/bin/bash"   
SHLVL="1"
SSH_TTY="/dev/pts/0"
SYMLINK_LIB="yes"   
TERM="screen"
UNINSTALL_IGNORE="/lib/modules/*"
USE="acl acpi amd64 bzip2 caps cli cracklib crypt cxx dri hardened iconv idn ipv6 justify mmx modules mysql ncurses nptl pax_kernel pcre readline session sse sse2 ssl threads unicode urandom xattr xtpax 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="cpu disk df filecount irq load memory netlink network rrd rrdtool rrdcached swap syslog tail tcpconns unixsock users match_timediff match_regex mysql postgres nginx curl processes ping postgresql iptables table cgroups" 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 ublox 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" LINGUAS="en fr de nl" NGINX_MODULES_HTTP="access auth_basic auth_request autoindex fastcgi geo gzip gzip_static headers_more limit_req limit_conn map rewrite ssi geoip spdy stub_status upstream_ip_hash xslt" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby19 ruby20" 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"
USER="root"
USERLAND="GNU"
USE_EXPAND="ABI_MIPS ABI_PPC ABI_S390 ABI_X86 ALSA_CARDS APACHE2_MODULES APACHE2_MPMS CALLIGRA_FEATURES CAMERAS COLLECTD_PLUGINS CROSSCOMPILE_OPTS CURL_SSL DRACUT_MODULES DVB_CARDS ELIBC ENLIGHTENMENT_MODULES FCDSL_CARDS FFTOOLS FOO2ZJS_DEVICES FRITZCAPI_CARDS GPSD_PROTOCOLS GRUB_PLATFORMS INPUT_DEVICES KERNEL LCD_DEVICES LIBREOFFICE_EXTENSIONS LINGUAS LIRC_DEVICES MONKEYD_PLUGINS NETBEANS_MODULES NGINX_MODULES_HTTP NGINX_MODULES_MAIL OFED_DRIVERS OFFICE_IMPLEMENTATION OPENMPI_FABRICS OPENMPI_OFED_FEATURES OPENMPI_RM PHP_TARGETS PYTHON_SINGLE_TARGET PYTHON_TARGETS QEMU_SOFTMMU_TARGETS QEMU_USER_TARGETS RUBY_TARGETS SANE_BACKENDS USERLAND UWSGI_PLUGINS VIDEO_CARDS VOICEMAIL_STORAGE XFCE_PLUGINS XTABLES_ADDONS"
USE_EXPAND_HIDDEN="ABI_MIPS ABI_PPC ABI_S390 ABI_X86 CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_EXPAND_IMPLICIT="ARCH ELIBC KERNEL USERLAND"
USE_EXPAND_UNPREFIXED="ARCH"
USE_EXPAND_VALUES_ARCH="alpha amd64 amd64-fbsd amd64-linux arm arm-linux arm64 hppa hppa-hpux ia64 ia64-hpux ia64-linux m68k m68k-mint mips ppc ppc64 ppc64-linux ppc-aix ppc-macos ppc-openbsd s390 sh sparc sparc64-freebsd sparc64-solaris sparc-fbsd sparc-solaris x64-freebsd x64-macos x64-openbsd x64-solaris x86 x86-cygwin x86-fbsd x86-freebsd x86-interix x86-linux x86-macos x86-netbsd x86-openbsd x86-solaris x86-winnt"
USE_EXPAND_VALUES_ELIBC="AIX Cygwin Darwin DragonFly FreeBSD glibc HPUX Interix mintlib musl NetBSD OpenBSD SunOS uclibc Winnt"
USE_EXPAND_VALUES_KERNEL="AIX Cygwin Darwin FreeBSD freemint HPUX Interix linux NetBSD OpenBSD SunOS Winnt"
USE_EXPAND_VALUES_USERLAND="BSD GNU"
USE_ORDER="env:pkg:conf:defaults:pkginternal:repo:env.d"
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"
_="/usr/bin/emerge" 

=================================================================
                        Package Settings
=================================================================

mail-filter/sid-milter-1.0.0-r6 was built with the following:
USE="ipv6"
Comment 3 Andreas K. Hüttel gentoo-dev 2017-08-23 20:43:14 UTC
How are you doing with later glibc versions?
Comment 4 Andreas K. Hüttel gentoo-dev 2017-09-11 10:09:46 UTC
(In reply to Andreas K. Hüttel from comment #3)
> How are you doing with later glibc versions?

No response.
Comment 5 Bruno 2017-09-11 11:00:02 UTC
(In reply to Andreas K. Hüttel from comment #4)
> (In reply to Andreas K. Hüttel from comment #3)
> > How are you doing with later glibc versions?
> 
> No response.

Oops sorry, missed comment#3.

I just did run a test, sid-filter binary compiled around april, running under glibc-2.23 (comiled in Jun) still fails (no access to build host right now to rebuild sid-filter):
 813AB10DD3237 check_host ip=158.64.1.62 domain=restena.lu sender=some.one@restena.lu
 813AB10DD3237 >>> check-host ip=158.64.1.62 domain=restena.lu sender=some.one@restena.lu
 813AB10DD3237   < marid restena.lu?
 813AB10DD3237   > 0 records
 813AB10DD3237 <<< check_host ip=158.64.1.62 domain=restena.lu sender=some.one@restena.lu: None
 813AB10DD3237   < no more requests
 813AB10DD3237 check_host: None
 813AB10DD3237 check_host ip=158.64.1.62 domain=retena..lu sender=someonne@retena..lu
 813AB10DD3237 >>> check-host ip=158.64.1.62 domain=retena..lu sender=someonne@retena..lu
 813AB10DD3237 *** domain segment starts with '.', which is not a letter or digit ***
 813AB10DD3237 <<< check_host ip=158.64.1.62 domain=retena..lu sender=someonne@retena..lu: Fail MalformedDomain
 813AB10DD3237   < no more requests
 813AB10DD3237 check_host: Fail MalformedDomain

What looks like a typo in e-mail address listed as sender (some.one@ becoming someonne@ and the mangling of the domain name
do happen - though exact length of local part or domain name segments might influence the mangling)

Mangling pattern for local part looks like:
- <before-dot><after-dot[0]><after-dot[1]><substr(after-dot, 1)>@

It is as if the dot was lost in offset calculations.
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-04-24 13:20:34 UTC
I'm wondering if this is an isolated case or a generic problem with sid-milter.  If the former, could your local nss configuration affect it?  If the latter, we should probably last rite it.
Comment 7 Larry the Git Cow gentoo-dev 2019-08-27 21:07:54 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f70442d6c6c95658859179fe639b3b10dfd474d8

commit f70442d6c6c95658859179fe639b3b10dfd474d8
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2019-08-27 21:07:24 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2019-08-27 21:07:49 +0000

    package.mask: Last rite mail-filter/sid-milter
    
    Bug: https://bugs.gentoo.org/519668
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 profiles/package.mask | 6 ++++++
 1 file changed, 6 insertions(+)