Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 356341 - net-mail/cyrus-imapd-2.4.12: deliver has wrong permissons.
Summary: net-mail/cyrus-imapd-2.4.12: deliver has wrong permissons.
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2011-02-24 20:47 UTC by Johannes Geiss
Modified: 2021-05-06 23:27 UTC (History)
3 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 Johannes Geiss 2011-02-24 20:47:55 UTC
I tried to use fetchmail, which has to deliver mails from outside pop server to my own server running cyrus-imapd. Fetchmail delivers the mail via "/usr/lib/cyrus/deliver %T" (specified in /etc/fetchmailrc). It is running as uid fetchmail.

Now deliver fails with the error message "couldn't connect to lmtpd: Permission denied". After investigating I changed the permissions for deliver:

cd /usr/lib/cyrus
chgrp mail deliver
chmod 2755 deliver

Now it works. I am not sure if this is the right solution, but it is working.
Comment 1 Johannes Geiss 2011-02-24 20:49:09 UTC
Portage 2.1.9.25 (default/linux/powerpc/ppc32/10.0/desktop, gcc-4.4.4, glibc-2.11.2-r3, 2.6.32-gentoo-r20-polaris ppc)
=================================================================
System uname: Linux-2.6.32-gentoo-r20-polaris-ppc-7447-7457,_altivec_supported-with-gentoo-1.12.14
Timestamp of tree: Mon, 21 Feb 2011 04:45:01 +0000
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r1, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       3.4.6-r2, 4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="ppc"
ACCEPT_LICENSE="* -@EULA"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -fno-strict-aliasing -fomit-frame-pointer -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5.2/ext-active/ /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.2/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.2/ext-active/ /etc/php/cli-php5.3/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="-O2 -fno-strict-aliasing -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical --nospinner --quiet-build --usepkg --binpkg-respect-use=y"
FEATURES="assume-digests binpkg-logs buildpkg distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo/ ftp://de-mirror.org/distro/gentoo/ "
LANG="en_US.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en de"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac acl alsa altivec bluetooth branding bzip2 cairo cdr cgi cjk cli consolekit cracklib crypt css cups cxx dbus device-mapper dri dts dvd dvdr dvi emboss encode esd exif extensions extras fam fastcgi fat ffmpeg firefox flac fontconfig fortran fuse gd gdbm gdu gif gnutls gpm gtk hfs iconv icu id3tag imagemagick ipv6 jfs joystick jpeg kpathsea lcms ldap libnotify mad mikmod mng modules mp3 mp4 mpeg mudflap mule musicbrainz mysql ncurses nls nptl nptlonly nsplugin ntfs objc ogg opengl openmp pam pango pcre pdf perl png policykit ppc ppds pppd python qt3support qt4 readline reflection reiserfs sasl sdl server session spell spl sqlite srt ssl startup-notification stream svg sysfs tagwriting tcpd theora tiff timidity truetype twolame udev unicode usb vamp videos vorbis xcb xfce xfs xml xorg xulrunner xv xvid zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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" 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" 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, FFLAGS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Eray Aslan gentoo-dev 2011-06-21 06:35:15 UTC
Please reopen if it is still a problem with cyrus-imapd-2.4.8
Comment 3 Johannes Geiss 2011-10-06 09:36:27 UTC
I upgraded to version 2.4.11 and the same bug occured.
Comment 4 Johannes Geiss 2011-10-12 11:44:02 UTC
I upgraded to version 2.4.12 and the same bug occured.
Comment 5 Pacho Ramos gentoo-dev 2018-03-01 15:22:25 UTC
can you try with 3.0.4?
Comment 6 Johannes Geiss 2018-03-03 11:54:50 UTC
(In reply to Pacho Ramos from comment #5)
> can you try with 3.0.4?

I did, but /usr/sbin/deliver has also -rwxr-xr-x 1 root root.

I'm not sure, whether this is only a problem in my installation or not, since no one seems to have the same problem. I'm beginning to doubt to be this an error. But I don't know what I did wrong in my installation.

In the meantime, I switched to courier-imapd and removed cyrus-imapd because of too many complications going from version 2.x to 3.x.

For 3.0.4 I testes this on an older backup where cyrus-imapd was installed.

I propose to close this bug, since no one else have this problem. So it must be me.
Comment 7 Pacho Ramos gentoo-dev 2019-06-09 11:27:11 UTC
I also have 
$ ls -l /usr/sbin/deliver
-rwxr-xr-x 1 root root 52592 jun  9 13:22 /usr/sbin/deliver


But I don't know why that is wrong
Comment 8 Larry the Git Cow gentoo-dev 2021-05-06 23:26:37 UTC
The bug has been referenced in the following commit(s):

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

commit 9724a2bd22bcf58dbd83e2f1580d4507ad9fa6bc
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-05-06 23:14:00 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-05-06 23:26:18 +0000

    net-mail/cyrus-imapd: add 3.4.0 (masked)
    
    Changes:
    * lmdb support dropped upstream
    * sieve is, for now, unconditionally built due to upstream changes
    
    Masked for testing in a follow-up commit.
    
    Bug: https://bugs.gentoo.org/731266
    Bug: https://bugs.gentoo.org/738280
    Bug: https://bugs.gentoo.org/740188
    Bug: https://bugs.gentoo.org/738278
    Bug: https://bugs.gentoo.org/738276
    Bug: https://bugs.gentoo.org/356341
    Bug: https://bugs.gentoo.org/688242
    Bug: https://bugs.gentoo.org/662896
    Bug: https://bugs.gentoo.org/687864
    Signed-off-by: Sam James <sam@gentoo.org>

 net-mail/cyrus-imapd/Manifest                 |   1 +
 net-mail/cyrus-imapd/cyrus-imapd-3.4.0.ebuild | 234 ++++++++++++++++++++++++++
 2 files changed, 235 insertions(+)

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

commit f2b08a02bdc724992071e52b60e356ee9fcd0759
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-05-06 22:44:21 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-05-06 23:26:17 +0000

    net-mail/cyrus-imapd: add 3.0.15
    
    Bug: https://bugs.gentoo.org/738280
    Bug: https://bugs.gentoo.org/740188
    Bug: https://bugs.gentoo.org/738278
    Bug: https://bugs.gentoo.org/738276
    Bug: https://bugs.gentoo.org/356341
    Bug: https://bugs.gentoo.org/688242
    Bug: https://bugs.gentoo.org/721466
    Bug: https://bugs.gentoo.org/662896
    Bug: https://bugs.gentoo.org/687864
    Signed-off-by: Sam James <sam@gentoo.org>

 net-mail/cyrus-imapd/Manifest                  |   1 +
 net-mail/cyrus-imapd/cyrus-imapd-3.0.15.ebuild | 229 +++++++++++++++++++++++++
 2 files changed, 230 insertions(+)