Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 167993 - mail-mta/postfix-2.3.7 postalias missing or fails to install
Summary: mail-mta/postfix-2.3.7 postalias missing or fails to install
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Tuan Van (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-22 12:32 UTC by Michael Crawford (ali3nx)
Modified: 2007-04-12 07:50 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 Michael Crawford (ali3nx) 2007-02-22 12:32:50 UTC
after upgrading to postfix-2.3.7 on one of my mail servers I reviewed the mail logs and found the usual reminder that the aliases.db was older than /etc/mail/aliases likely due to minor dispatch-conf changes I made. No problem... just run newaliases and move on with the maintainance todo list. however..

mail mail # newaliases 
newaliases: fatal: execv /usr/sbin/postalias: No such file or directory
mail mail # emerge -pv postfix

These are the packages that would be merged, in order:

Calculating dependencies                         ... done!    
[ebuild   R   ] mail-mta/postfix-2.3.7  USE="hardened pam postgres sasl ssl vda -cdb -dovecot-sasl -ipv6 -ldap -mailwrapper -mbox -mysql -nis (-selinux)" 0 kB 

Total: 1 package (1 reinstall), Size of downloads: 0 kB
mail mail # which postalias
which: no postalias in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/3.4.6:/opt/blackdown-jdk-1.4.2.03/bin:/opt/blackdown-jdk-1.4.2.03/jre/bin)
mail mail # file `which newaliases`
/usr/bin/newaliases: symbolic link to `../../usr/sbin/sendmail'
mail mail # file /usr/sbin/sendmail 
/usr/sbin/sendmail: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, stripped

I checked if postalias was installed on a non hardened x86 system and postalias was installed. after downgrading to postfix 2.3.6 on the hardened system postalias was both present and accounted for.

mail mail # emerge --info
Portage 2.1.2-r9 (hardened/amd64/multilib, gcc-3.4.6, glibc-2.4-r4, 2.6.16-hardened-r4 x86_64)
=================================================================
System uname: 2.6.16-hardened-r4 x86_64 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Tue, 20 Feb 2007 19:30:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.20
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/terminfo"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo-distfiles.mirrors.tds.net http://mirror.arcticnetwork.ca/pub/gentoo"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/webapps-experimental /usr/portage/local/layman/sunrise"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl acpi admin amd64 apache2 authdaemond bash-completion berkdb bzip2 cap caps ccache chroot cluster cracklib crypt ctype dba dio dlloader erandom exif expat extensions fastcgi fontconfig fortran ftp gd gdbm gif gmp gnutls gpgme gpm gs hardened icu idn imagemagick imap innodb ipv6 ipv6arpa ithreads java java5 javamail javascript jce jms jmx jpeg jpgraph junit jython kerberos ldap libwww lm_sensors log4j logrotate logwatch maildir memlimit midi mmext mpi mssql mysql mysqli nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses neural nls nntp nptl nptlonly objc odbc offensive pam pam_chroot pcntl perl pg-hier pg-intdatetime pg-vacuumdelay php pic png pop posix postgres procmail python readline rhino rle ruby samba sasl sendfile servlet-2.3 servlet-2.4 sftplogging shaper shared sharedext sharedmem simplexml smime smtp sockets softquota sqlite ssl sysvipc szip tcl tcpd threads tiff truetype unicode urandom usb utf8 vda vhosts virtual-users virus-scan wddx xinetd xml xml2 xorg xsl zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Johan Bergström 2007-02-22 21:37:32 UTC
Works here;

mail lfe # which postalias
/usr/sbin/postalias
mail lfe # emerge -av postfix

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] mail-mta/postfix-2.3.7  USE="dovecot-sasl mysql pam ssl -cdb -hardened -ipv6 -ldap -mailwrapper -mbox -nis -postgres -sasl (-selinux) -vda" 0 kB 

emerge --info:
Portage 2.1.2-r9 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.19-gentoo-r5 x86_64 Intel(R) Xeon(R) CPU            5110  @ 1.60GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Thu, 22 Feb 2007 20:30:07 +0000
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://10.0.1.5/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 berkdb bitmap-fonts cli cracklib crypt cups dri fortran gdbm gpm iconv isdnlog libg++ logrotate midi ncurses nls nptl nptlonly pam pcre ppds pppd prce python readline reflection session spl ssl symlink tcpd truetype-fonts type1-fonts unicode zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark ati chips cirrus cyrix dummy fbdev glint i128 i810 mga neomagic nv rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 2 Johan Bergström 2007-03-07 20:03:49 UTC
Mike Crawford: Have you solved this problem, or do you have any other info to contribute regarding this bug?
Comment 3 Michael Crawford (ali3nx) 2007-03-08 05:02:30 UTC
No sorry this remains a mystery. I experienced this bug while upgrading postfix on a production server so I cant reproduce the bug to test on that specific system. All I can offer is this bug did reproduce on other systems if i recall correctly. It could likely be directly related to grsecurity and or pax resource restrictions causing the postalias binary to fail compile or not install due to a possible chroot violation? Just a few possiblities. 
Comment 4 Johan Bergström 2007-03-11 20:49:15 UTC
Assuming you have 2.3.6 working - there's basically no difference between the 2.3.7 and 2.3.6 ebuilds as far as i can see. Frankly, there's no changes in the whole 2.3.x series that should affect how postalias is installed (i could certainly have missed something though).

Which version is working out for you?
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-04-12 07:50:33 UTC
This isn't going anywhere, nor does it make much sense. As said, there's no difference b/w 2.3.6 and 2.3.7 beyond the keywords.

MAKEOPTS="-j1" emerge =mail-mta/postfix-2.3.7 &> log

and attach the log here when done, reopen then.