Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mail through maildrop disappears [solved]
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
hika
Apprentice
Apprentice


Joined: 13 Mar 2009
Posts: 234
Location: Utrecht

PostPosted: Sun Mar 16, 2014 7:33 pm    Post subject: mail through maildrop disappears [solved] Reply with quote

I have setup a Courier-ldap mailserver sometime ago and it works fine.
I'm now working on fetchmail and basically it works except when I use maildrop to deliver the mail to its destination. It says it's OK but the mail is nowhere to be found. If I use sendmail it gets delivered as it should.
As said I use ldap for user info, authentication etc. Since I wanted the mail separated from the direct userdirectories (some have a linux one in /home others a samba one in /home/samba/users and a few have both and mail without either should be possible). In /etc/courier/authlib/authldaprc I have set LDAP_MAILROOT=/home/samba/maildirs. Under that root every mailaccount has his own mailuser directory with a Maildir in it. As said this works OK. except with maildrop, which comes from courier. Even if I use maildrop as 'maildrop -a -d <username>', where -a should force it to go past authlib, I don't see anything in the log. With sendmail I see it retrieving the maildir through authlib, as it must.

I haven't been able to get maildrop more telling on what it does. I've searched all alternative home locations, /var/mail and more. It seems it sends it to /dev/null. Also the documentation on maildrop as MDA is scares.

Fetchmail works with sendmail, but I need maildrop (according to the courier documentation) for filtering (spamassassin and clamav) or does somebody know how to do it without. An alternative way is through esmtp, but I can't get the authentication part working. Probably because of ldap, esmtp still wants authentication if I turn it of. And adding esmtpuser and asmtppassword to fetchmailrc gives me a syntaxerror.

Working fetchmailrc with sendmail with the maildrop alternative remarked out:
Code:
set postmaster root
set no bouncemail
# set daemon 90
# set syslog
defaults proto pop3 no dns fetchall no rewrite

poll pop.kpnmail.nl
user so9oz0@kpnmail.nl
pass xxxxxxxx
mda sendmail hika
# mda maildrop -a -d hika

And the ESMTP alternative that gives a syntaxerror on esmtpname and esmtppassword and fails without them on the esmtp server[/code]
Code:
set postmaster root
set no bouncemail
# set daemon 90
# set syslog
esmtpname hika
esmtppassword xxxxxx
defaults proto pop3 no dns fetchall no rewrite

poll pop.kpnmail.nl
user so9oz0@kpnmail.nl
pass xxxxxxxxx
smtpname hika


For testing I run them by hand: fetchmail -f /etc/fetcmailrc, so for now I disabled daemon and syslog.

Any thoughts?

Hika


Last edited by hika on Tue Apr 01, 2014 4:12 pm; edited 2 times in total
Back to top
View user's profile Send private message
hika
Apprentice
Apprentice


Joined: 13 Mar 2009
Posts: 234
Location: Utrecht

PostPosted: Sun Mar 16, 2014 9:44 pm    Post subject: Reply with quote

I had an idea, that didn't work, but might be the right track.
As said in /etc/courier/authlib/authldaprc the variables LDAP_MAILROOT, LDAP_HOMEDIR and the variable LDAP_MAILDIR determine the location of the maildir:
where I have set LDAP_HOMEDIR=uid, which is the username
eg ${LDAP_MAILROOT}/${ LDAP_HOMEDIR}/${LDAP_MAILDIR}

In /et/courier/courierd I see two variables:
Code:
DEFAULTDELIVERY=./Maildir
MAILDROPDEFAULT=./Maildir

Which points to Maildir inside the homedirectory. I tried both:
Code:
MAILDROPDEFAULT=/home/samba/maildirs/$USER/Maildir

and adding to the top:
Code:
LDAP_MAILROOT=/home/samba/maildirs
MAILROOT=/home/samba/maildirs


The question is how does maildrop determine the maildirectory? Does it just grep the homedirectory somewhere?
I already some time ago simlinked /home/samba/maildirs/hika/Maildir to /home/hika/Maildir, which is the official homedirectory.
Also the user hika is both set as alias for root and as postmaster.

Any thoughts, while I look and think further?

Hika
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Sun Mar 16, 2014 9:47 pm    Post subject: Reply with quote

hika ...

I've not used courier, but I've used maildrop in conjunction with qmail (an awful long time ago) ... anyhow, what immediately comes to mind here is permissions, and ownership. The maildrop documentation has the following comments:

Quote:
If in delivery mode the user's home directory has the sticky bit set, maildrop immediately terminates with an exit code of EX_TEMPFAIL, without doing anything. Mail servers interpret the EX_TEMPFAIL exit code as a request to reschedule the message for another delivery attempt later. Setting the sticky bit allows $HOME/.mailfilter to be edited while temporarily holding all incoming mail.

maildrop also terminates with EX_TEMPFAIL if the user's home directory has world write permissions.

maildrop immediately terminates with EX_TEMPFAIL if the filename is not owned by the user, or if it has any group or world permissions. This includes read permissions. The permissions on $HOME/.mailfilter may only include read and write privileges to the user.

When using the special embedded mode (see below) maildrop immediately terminates with the exit code set to EX_TEMPFAIL if $HOME/.mailfilters is not owned by the user, or if it has any group or world permissions.

As your using ldap to map users, and delivering to samba shares, I wonder if this isn't simply a question of the permission/ownership of the maildirs?

I'm hypothesising as I've not used these in conjunction, so ignore this if this is something you've already considered.

HTH & best ... khay
Back to top
View user's profile Send private message
hika
Apprentice
Apprentice


Joined: 13 Mar 2009
Posts: 234
Location: Utrecht

PostPosted: Sun Mar 16, 2014 10:02 pm    Post subject: Reply with quote

I've seen that text and checked the sticky bit, but it wasn't set, but just to be sure I ran chmod -R u-s on the mailuser directory. Originally I had set all the mail directories as owned by $USER.mail with 770 (or 660 for the files). I have then removed the group rights, with no effect. Also courier itself runs fine and I don't get no error, which baffles me the most.
I was now thinking of temporarily creating a Maildir in /root, but I don't expect any of it.
Back to top
View user's profile Send private message
hika
Apprentice
Apprentice


Joined: 13 Mar 2009
Posts: 234
Location: Utrecht

PostPosted: Mon Mar 17, 2014 12:36 am    Post subject: Reply with quote

Much earlier I saw a file Maildir, containing the messages apear in /home/hika after I think I saw a pop-up about having mail. That's when I created the simlink to the real Maildir in /home/samba/maildirs/hika. After which through maildrop no mail message arrived there anymore. I just saw the same with root. A message on the console: "You have new mail in /var/mail/root" and nothing there (I had created a Maildir there) and a container file "Maildir" with several mails in /root.
I have seen something about a variable DEFAULT or something like it, used by dropmail defaulting to /var/mail/$USER, but I can't find it back and I haven't been able to find where to set it.
Also in the description of the -a switch, which should force it to go past authlib it talks about "depending on the configuration", but nowhere anything about configuring.

Hika
Back to top
View user's profile Send private message
hika
Apprentice
Apprentice


Joined: 13 Mar 2009
Posts: 234
Location: Utrecht

PostPosted: Mon Mar 17, 2014 12:48 am    Post subject: Reply with quote

I'm looking at the useflags for standalone maildrop. I'm using the one integrated in courier. On of them besides ldap is authlib, which should be automatic in the integrated version.
Can anybody tell me if this authlib support is activated in the integrated version or how to check that out? For to me it sure looks like missing!

Hika
Back to top
View user's profile Send private message
hika
Apprentice
Apprentice


Joined: 13 Mar 2009
Posts: 234
Location: Utrecht

PostPosted: Mon Mar 17, 2014 1:32 am    Post subject: Reply with quote

I think it is a BUG!
running courier-config I get:
Code:
prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
libexecdir=/usr/lib64/courier
sysconfdir=/etc/courier
datadir=/usr/share/courier
localstatedir=/var/lib/courier
mailuser=mail
mailgroup=mail
mailuid=8
mailgid=12
configure_args="'--build=x86_64-pc-linux-gnu' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--libdir=/usr/lib64' '--with-ldapconfig=/etc/courier/maildropldap.conf' '--with-fam' '--without-ipv6' '--with-ispell' '--with-ldapaliasd' '--enable-maildroldap' '--without-gnutls' '--enable-mimetypes=/etc/mime.types' '--prefix=/usr' '--disable-root-check' '--mandir=/usr/share/man' '--sysconfdir=/etc/courier' '--libexecdir=/usr/lib64/courier' '--datadir=/usr/share/courier' '--sharedstatedir=/var/lib/courier/com' '--localstatedir=/var/lib/courier' '--with-piddir=/var/run/courier' '--with-authdaemonvar=/var/lib/courier/authdaemon' '--with-mailuser=mail' '--with-mailgroup=mail' '--with-paranoid-smtpext' '--with-db=gdbm' '--disable-autorenamesent' '--cache-file=/var/tmp/portage/mail-mta/courier-0.71/work/courier-0.71/configuring.cache' '--host=x86_64-pc-linux-gnu' 'debug=true' 'build_alias=x86_64-pc-linux-gnu' 'host_alias=x86_64-pc-linux-gnu' 'CFLAGS=-mtune=generic -march=core2 -O2 -pipe' 'LDFLAGS=-Wl,-O1 -Wl,--as-needed' 'CPPFLAGS=' 'CXXFLAGS=-mtune=generic -march=core2 -O2 -pipe' --enable-utf7-folder-encoding"

Which looks like the build config.
Next to it mentioning a '--with-ldapconfig=/etc/courier/maildropldap.conf', which probably has to do with mail aliases, I see '--enable-maildroldap' which seems to me a typo!

Can anybody help me to compile again with '--enable-maildroldap' changed to '--enable-maildropldap'
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Mon Mar 17, 2014 3:10 am    Post subject: Reply with quote

hika ...

yes, that does seem to be a typo, I don't see a bug so you might want to report it on b.g.o. You can fix it fairly easily, create a local overlay and copy over mail-mta/courier/courier-0.65.2-r1.ebuild and edit the 'econf' section to correct the typo, then build the manifest and install ... the following should be all that's required:

/etc/portage/make.conf
Code:
PORTDIR_OVERLAY="/usr/local/portage"

... create the directory structure, copy the ebuild and files, edit, build the manifest, and emerge.

Code:
# mkdir -p /usr/local/portage/mail-mta/courier
# cp -a /usr/portage/mail-mta/courier/{files,metadata.xml,courier-0.65.2-r1.ebuild} /usr/local/portage/mail-mta/courier/
# cd /usr/local/portage/mail-mta/courier/
# sed -i 's/maildroldap/maildropldap/' courier-0.65.2-r1.ebuild
# ebuild courier-0.65.2-r1.ebuild manifest
# emerge -a courier

HTH & best ... khay
Back to top
View user's profile Send private message
hika
Apprentice
Apprentice


Joined: 13 Mar 2009
Posts: 234
Location: Utrecht

PostPosted: Mon Mar 17, 2014 3:24 am    Post subject: Reply with quote

Thanks, seems mostly straightforward, but you lost me in two parts. 'on b.g.o.'?
and 'create a local overlay'? I've never tried to adapt an emerge config, so what is meant by an overlay? Is there maybe an item in the wiki?

Ah, I read to fast. Your follow up on the overlay etc seems clear. But b.g.o? That is not the bugzilla site?
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Mon Mar 17, 2014 3:33 am    Post subject: Reply with quote

hika wrote:
Thanks, seems mostly straightforward, but you lost me in two parts. 'on b.g.o.'?

hika ... sorry, standard acronym here ... bugs.gentoo.org

hika wrote:
[...] and 'create a local overlay'? I've never tried to adapt an emerge config, so what is meant by an overlay? Is there maybe an item in the wiki?

Well, in the above I created a "local overlay" in /usr/local/portage ... but, yes, there is an overlays: users' guide (though local overlays are not covered in detail, if at all).

best ... khay
Back to top
View user's profile Send private message
hika
Apprentice
Apprentice


Joined: 13 Mar 2009
Posts: 234
Location: Utrecht

PostPosted: Mon Mar 17, 2014 11:08 am    Post subject: Reply with quote

I added it to an old bugrepport: https://bugs.gentoo.org/show_bug.cgi?id=33166 from ten years ago, where the user solved it, but didn't report back.
The then handlers show status retired.

Hika
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Mon Mar 17, 2014 12:25 pm    Post subject: Reply with quote

hika wrote:
I added it to an old bugrepport from ten years ago, where the user solved it, but didn't report back. The then handlers show status retired.

hika ... robbat is is on the CC list so it should get re-opened and assigned. You might also want to mention that correcting the typo fixes the issue (I assume it did).

best ... khay
Back to top
View user's profile Send private message
hika
Apprentice
Apprentice


Joined: 13 Mar 2009
Posts: 234
Location: Utrecht

PostPosted: Mon Mar 17, 2014 12:31 pm    Post subject: Reply with quote

It will be a few days before I will do it. I'm in the middle of a server migration and are testing things on my own private server.

Looking at the e-build of maildrop stand-alone and seeing the -a switch (use authlib) not working with me, a switch --enable-authlib might also be needed.
I'll know more in a few days.
Back to top
View user's profile Send private message
hika
Apprentice
Apprentice


Joined: 13 Mar 2009
Posts: 234
Location: Utrecht

PostPosted: Tue Mar 18, 2014 10:46 pm    Post subject: Reply with quote

I've tried compiling with both '--enable-maildropldap' and '--enable-maildrop-ldap' and even with '--enable-authlib' added. But the behavior stays the same. In the emerge log I see none of them used or even a check. According to the man-page the default usage of authlib can be compiled in or can be optional and enabled through the -a switch, so there is some compilation switch.
I know little about compiling and I don't know, where to find available switches.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Wed Mar 19, 2014 12:16 am    Post subject: Reply with quote

hika wrote:
I know little about compiling and I don't know, where to find available switches.

hika ...

'./configure --help' in the source tree will show what switches are available for that particular build ...

Code:
# ebuild /path/to/mail-mta/courier/courier-0.69.0.ebuild unpack
# cd /var/tmp/portage/mail-mta/courier-0.69.0/work/courier-0.69.0/
# ./configure --help

HTH & best ... khay
Back to top
View user's profile Send private message
hika
Apprentice
Apprentice


Joined: 13 Mar 2009
Posts: 234
Location: Utrecht

PostPosted: Wed Mar 19, 2014 12:33 am    Post subject: Reply with quote

you mean extracting the package locally and running it in that tree?
I extracted it already to look at the companying text files, so no problem.
Back to top
View user's profile Send private message
hika
Apprentice
Apprentice


Joined: 13 Mar 2009
Posts: 234
Location: Utrecht

PostPosted: Wed Mar 19, 2014 12:41 am    Post subject: Reply with quote

That gives:
Code:
`configure' configures courier 0.71 to adapt to many kinds of systems.

Usage: ./configure [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print `checking ...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for `--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or `..']

Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [/usr/local]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]

By default, `make install' will install all the files in
`/usr/local/bin', `/usr/local/lib' etc.  You can specify
an installation prefix other than `/usr/local' using `--prefix',
for instance `--prefix=$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR            user executables [EPREFIX/bin]
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  --libexecdir=DIR        program executables [EPREFIX/libexec]
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  --libdir=DIR            object code libraries [EPREFIX/lib]
  --includedir=DIR        C header files [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR           info documentation [DATAROOTDIR/info]
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR            man documentation [DATAROOTDIR/man]
  --docdir=DIR            documentation root [DATAROOTDIR/doc/courier]
  --htmldir=DIR           html documentation [DOCDIR]
  --dvidir=DIR            dvi documentation [DOCDIR]
  --pdfdir=DIR            pdf documentation [DOCDIR]
  --psdir=DIR             ps documentation [DOCDIR]

Program names:
  --program-prefix=PREFIX            prepend PREFIX to installed program names
  --program-suffix=SUFFIX            append SUFFIX to installed program names
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names

System types:
  --build=BUILD     configure for building on BUILD [guessed]
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]

Optional Features:
  --disable-option-checking  ignore unrecognized --enable/--with options
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --enable-dependency-tracking
                          do not reject slow dependency extractors
  --disable-dependency-tracking
                          speeds up one-time build
  --enable-shared[=PKGS]  build shared libraries [default=yes]
  --enable-static[=PKGS]  build static libraries [default=yes]
  --enable-fast-install[=PKGS]
                          optimize for fast installation [default=yes]
  --disable-libtool-lock  avoid locking (might break parallel builds)
  --disable-root-check    Allow build as root (make check will fail)


Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
                          both]
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  --with-sysroot=DIR Search for dependent libraries within DIR
                        (or the compiler's sysroot if not specified).
 --with-certsdir Directory where certs are created

  --with-db=gdbm          Use the GDBM library.
  --with-db=db            Use the libdb.a library.


Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  LIBS        libraries to pass to the linker, e.g. -l<library>
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  CPP         C preprocessor
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
  CXXCPP      C++ preprocessor

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

Report bugs to <courier-users@lists.sourceforge.net>.

So how do I find the FEATURE and PACKAGE list
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Wed Mar 19, 2014 1:50 am    Post subject: Reply with quote

hika wrote:
So how do I find the FEATURE and PACKAGE list

hika ... those entries are standard speak for "whatever features/package there are". It looks to be a standard configure script (designed to work for most purposes) without specific entries for courier (though the --with-certsdir seems to be a courier specific additon). So, where are they ... well, not in the './configure --help' we know that now. What about the documentation, ie, INSTALL.txt or README.txt?

best ... khay
Back to top
View user's profile Send private message
hika
Apprentice
Apprentice


Joined: 13 Mar 2009
Posts: 234
Location: Utrecht

PostPosted: Wed Mar 19, 2014 3:26 am    Post subject: Reply with quote

As said I already opened the package to look for info. README mostly points to install and install is a copy of the information on internet. Mostly focused on after compilation and which I spelled out on my first install.
Any suggestions where to look further, although I understand we're out of standard solutions.
Hika
Back to top
View user's profile Send private message
hika
Apprentice
Apprentice


Joined: 13 Mar 2009
Posts: 234
Location: Utrecht

PostPosted: Wed Mar 19, 2014 3:28 am    Post subject: Reply with quote

The only thing I can think of is going to the developers.
Back to top
View user's profile Send private message
hika
Apprentice
Apprentice


Joined: 13 Mar 2009
Posts: 234
Location: Utrecht

PostPosted: Wed Mar 19, 2014 8:25 pm    Post subject: Reply with quote

I emerged mail-filter/maildrop-2.6.0 with authlib support on my workstation.
I copied the authlib configuration from the server and started courier-authlib.
The maildirs are available through nfs.
Sending a message with maildrop on my workstation with or without the -a switch works like a charm!
I'm now going to compare the emerge logs.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Wed Mar 19, 2014 8:43 pm    Post subject: Reply with quote

hika wrote:
The only thing I can think of is going to the developers.

hika ... sorry, I was too busy today to answer any sooner. Yes, try and contact them, according to the courier website (here) there is an irc channel #courier on irc.freenode.net ... though they also have developer and user mailing lists.

hika wrote:
Sending a message with maildrop on my workstation with or without the -a switch works like a charm! I'm now going to compare the emerge logs.

OK, that suggests that the issue is in the courier build (meaning a gentoo issue, rather than courier)

best ... khay
Back to top
View user's profile Send private message
hika
Apprentice
Apprentice


Joined: 13 Mar 2009
Posts: 234
Location: Utrecht

PostPosted: Wed Mar 19, 2014 9:14 pm    Post subject: Reply with quote

The weird thing is that if I look at the ebuild from maildrop, they add a switch '--disable-authlib' to the build if the useflag is not set. Suggesting that authlib support is on by default, but is not in the maildrop in the courier package. Adding a buid switch '--enable-authlib' to the courier build has no effect. This could suggest it is an error on the courier part. On the other side, according to the user who started the bug-report 10 years ago he got it working with a change to the ebuild based on the maildrop ebuild. But then he could have been talking about ldapalias support.
Looking at the build logs doesn't seem to get me any wiser. I have to little background on C compiling.

Hika
Back to top
View user's profile Send private message
hika
Apprentice
Apprentice


Joined: 13 Mar 2009
Posts: 234
Location: Utrecht

PostPosted: Wed Mar 19, 2014 9:21 pm    Post subject: Reply with quote

I'm now thinking , as a fast fix, to build the maildrop package on a similar machine to my server and copying the executable. Would that work with dependencies? The CFLAGs etc are the same and they are both up to date. It worked before with problems with a library.

Hika
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Wed Mar 19, 2014 10:36 pm    Post subject: Reply with quote

hika wrote:
I'm now thinking , as a fast fix, to build the maildrop package on a similar machine to my server and copying the executable. Would that work with dependencies? The CFLAGs etc are the same and they are both up to date. It worked before with problems with a library.

hika ... you can compare the two binaries and see what they are linked against ... like so:

Code:
# ldd /bin/ls
  linux-gate.so.1 (0xb776c000)
  librt.so.1 => /lib/librt.so.1 (0xb7754000)
  libcap.so.2 => /lib/libcap.so.2 (0xb774e000)
  libacl.so.1 => /lib/libacl.so.1 (0xb7745000)
  libc.so.6 => /lib/libc.so.6 (0xb7599000)
  libpthread.so.0 => /lib/libpthread.so.0 (0xb757d000)
  libattr.so.1 => /lib/libattr.so.1 (0xb7577000)
  /lib/ld-linux.so.2 (0xb776d000)

Assuming they are the same it may be possible to swap the broken version out (though, I'd keep it about incase you need to backtrack).

best ... khay
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum