Re: [xmail] xmail on Debian

2010-08-30 Thread Davide Libenzi
On Mon, 30 Aug 2010, rm wrote:

 On 2010-08-30 05:55, rm wrote:
  A self-compiled version (xmail-1.27.tar.gz) doesn't start either.
  It just says Starting XMail Server: and hangs there :-(
  What could be the reason?
 
 In /var/log/syslog the following error is reported:
 
 Aug 30 05:44:16 s1 XMail[5142]: Failed to create for eventfd

You're in a situation where libc has the include file, but eventfd is not 
implemented.
Remove the -DHAS_EVENTFD string from Makefile.lnx and rebuild.
Unless changes have been made to the Debian package, I would go ahead and 
proceed with manual setup.
Other than that, it should work just fine (be sure the ports that XMail 
will bind to for its services, are not used by other deamons).
The xmailserver.org mailing lists run over Debian just fine.


- Davide

___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] xmail on Debian

2010-08-30 Thread Davide Libenzi
On Mon, 30 Aug 2010, Davide Libenzi wrote:

 On Mon, 30 Aug 2010, rm wrote:
 
  On 2010-08-30 05:55, rm wrote:
   A self-compiled version (xmail-1.27.tar.gz) doesn't start either.
   It just says Starting XMail Server: and hangs there :-(
   What could be the reason?
  
  In /var/log/syslog the following error is reported:
  
  Aug 30 05:44:16 s1 XMail[5142]: Failed to create for eventfd
 
 You're in a situation where libc has the include file, but eventfd is not 
 implemented.
 Remove the -DHAS_EVENTFD string from Makefile.lnx and rebuild.

Which kernel are you using (run `uname -a`)?
Which glibc version (run `/lib/libc.so.6`)?


- Davide

___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] xmail on Debian

2010-08-30 Thread Radu Spineanu
 A self-compiled version (xmail-1.27.tar.gz) doesn't start either.
 It just says Starting XMail Server: and hangs there :-(
 What could be the reason?

 In /var/log/syslog the following error is reported:

 Aug 30 05:44:16 s1 XMail[5142]: Failed to create for eventfd

 You're in a situation where libc has the include file, but eventfd is not 
 implemented.
 Remove the -DHAS_EVENTFD string from Makefile.lnx and rebuild.
 
 Which kernel are you using (run `uname -a`)?
 Which glibc version (run `/lib/libc.so.6`)?
 

Could it be some missing dependency maybe?

-- 
Radu
___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] xmail on Debian

2010-08-30 Thread Davide Libenzi
On Mon, 30 Aug 2010, U.Mutlu wrote:

 On 2010-08-30 16:51, Davide Libenzi wrote:
  On Mon, 30 Aug 2010, Davide Libenzi wrote:
  
   On Mon, 30 Aug 2010, rm wrote:
   
On 2010-08-30 05:55, rm wrote:
 A self-compiled version (xmail-1.27.tar.gz) doesn't start either.
 It just says Starting XMail Server: and hangs there :-(
 What could be the reason?

In /var/log/syslog the following error is reported:

Aug 30 05:44:16 s1 XMail[5142]: Failed to create for eventfd
   
   You're in a situation where libc has the include file, but eventfd is not
   implemented.
   Remove the -DHAS_EVENTFD string from Makefile.lnx and rebuild.
  
  Which kernel are you using (run `uname -a`)?
  Which glibc version (run `/lib/libc.so.6`)?
 
 
 The 'machine' is a rented VPS box.
 Recently I upgraded the OS from Debian 5 (lenny) to 6 (squeeze)
 using apt-get upgrade. Unfortunately on this VPS I cannot/maynot
 change the kernel.
 
 I guess the following block in Makefile.lnx needs to be changed.
 How should it look like?
 
 ifeq ($(wildcard /usr/include/sys/eventfd.h), )
 SYSSRCS := $(SYSSRCS) SysOsEventfd_pipe.cpp
 else
 SYSSRCS := $(SYSSRCS) SysOsEventfd_eventfd.cpp
 CFLAGS := $(CFLAGS) -DHAS_EVENTFD
 endi
 
 
 s1:~# cat /etc/debian_version
 squeeze/sid
 
 s1:~# uname -a
 Linux s1.**.** 2.6.18-164.15.1.el5.028stab068.9 #1 SMP Tue Mar 30 18:07:38
 MSD 2010 i686 GNU/Linux
 
 s1:~# /lib/libc.so.6
 GNU C Library (Debian EGLIBC 2.11.2-2) stable release version 2.11.2, by
 Roland McGrath et al.
 Copyright (C) 2009 Free Software Foundation, Inc.
 This is free software; see the source for copying conditions.
 There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
 PARTICULAR PURPOSE.
 Compiled by GNU CC version 4.4.4.
 Compiled on a Linux 2.6.32 system on 2010-06-24.
 Available extensions:
   crypt add-on version 2.1 by Michael Glad and others
   GNU Libidn by Simon Josefsson
   Native POSIX Threads Library by Ulrich Drepper et al
   BIND-8.2.3-T5B
 For bug reporting instructions, please see:
 http://www.debian.org/Bugs/.

You are running a new glibc, with an old kernel (which does not provide 
eventfd).
You should really try to fetch a kernel newer than one that is more than 3 
years old.


- Davide


___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] xmail on Debian

2010-08-30 Thread Davide Libenzi
On Mon, 30 Aug 2010, Radu Spineanu wrote:

  A self-compiled version (xmail-1.27.tar.gz) doesn't start either.
  It just says Starting XMail Server: and hangs there :-(
  What could be the reason?
 
  In /var/log/syslog the following error is reported:
 
  Aug 30 05:44:16 s1 XMail[5142]: Failed to create for eventfd
 
  You're in a situation where libc has the include file, but eventfd is not 
  implemented.
  Remove the -DHAS_EVENTFD string from Makefile.lnx and rebuild.
  
  Which kernel are you using (run `uname -a`)?
  Which glibc version (run `/lib/libc.so.6`)?
  
 
 Could it be some missing dependency maybe?

Yes, between a shiny new EGLIBC and fairly old Linux kernel.


- Davide


___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] xmail on Debian

2010-08-29 Thread rm

On 2010-08-30 00:28, rm wrote:

Hello,
I wanted install xmail from the Debian repository (pkgname xmail)
and the installer brings the following popup:


Xmail server has a sendmail replacement that is mostly used
by system programs and daemons to send mail containing their
output or results. Historically, those programs use a user name
(usually root) that is not followed by a domain.
Xmail server is a 100% RFC compliant server that does not allow
default domains.
Its users are completely virtual and separated from the system users.
You must have at least one valid domain and one valid user created
to receive mail from those programs.
Default Local Domain Name:
/etc/mailname
Ok


What should I enter there?


Ok, I did some research and kept the suggested /etc/mailname
after putting my domain name in this file.

After the installation xmail gets started
but the installer doesn't end, instead it says
Starting XMail server:  and nothing else happens...
As said, xmail is started, but the installer doesn't end...
Is this a bug or a feature? :-)
From a 2nd terminal I tried to gracefully shutdown xmail
by entering /etc/init.d/xmail stop but it doesn't stop... :-(
Can I safely CTRL-C the installer, or should I wait, or what else should I do? 
:-)


OS: Debian 6 (squeeze)


s1:/tmp# aptitude install xmail
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following NEW packages will be installed:
  xmail
0 packages upgraded, 1 newly installed, 0 to remove and 91 not upgraded.
Need to get 0B/251kB of archives. After unpacking 664kB will be used.
Writing extended state information... Done
Preconfiguring packages ...
Selecting previously deselected package xmail.
(Reading database ... 26493 files and directories currently installed.)
Unpacking xmail (from .../archives/xmail_1.27-1_i386.deb) ...
Processing triggers for man-db ...
Setting up xmail (1.27-1) ...
I: Creating generic self-signed certificates.
I: (replace with hand-crafted or authorized one if needed).
Starting XMail server:


___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] xmail on Debian

2010-08-29 Thread rm

A self-compiled version (xmail-1.27.tar.gz) doesn't start either.
It just says Starting XMail Server: and hangs there  :-(
What could be the reason?

PS: on an other machine I'm using a self-compiled version
of v1.25 successfully for some years now, so I think the
problem I have with the 1.27 is not neccessarily with me :-)

___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] xmail on Debian

2010-08-29 Thread rm

On 2010-08-30 05:55, rm wrote:

A self-compiled version (xmail-1.27.tar.gz) doesn't start either.
It just says Starting XMail Server: and hangs there :-(
What could be the reason?


In /var/log/syslog the following error is reported:

Aug 30 05:44:16 s1 XMail[5142]: Failed to create for eventfd

 

PS: on an other machine I'm using a self-compiled version
of v1.25 successfully for some years now, so I think the
problem I have with the 1.27 is not neccessarily with me :-)


___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] xmail in Debian pkg eats up more than 200 MB ! (maybe debug build? :-)

2009-01-28 Thread Davide Libenzi
On Thu, 29 Jan 2009, Ralf wrote:

 Here's an IMO interessting observation/experience I made
 when I installed xmail the first time on my Debian 4 (Etch) and 5 (Lenny)
 boxes:
 
 When I install it from the Debian repository (via apt-get or via aptitude
 etc.)
 then xmail eats up more than 200 MB RAM !!!.
 I couldn't believe it and have immediately deinstalled it! :-)
 
 But then I took a quick look into the source code and I couldn't
 believe that this clean C++ source really eats up that much memory
 (FYI I'm myself C++ programmer).
 
 Just for fun I compiled it myself and installed it and started it.
 What a surprize! xmail eats up only about 6 MB memory! Not 200 MB !
 So, the xmail package maintainer at Debian must have done
 something badly wrong!
 
 Maybe you should inform the xmail package mainter at Debian.
 I've unfortunately no time at the moment because of switching
 my mail servers from qmail to xmail.

Such memory is very likely the per-thread VM stack memory reservation. I 
dunno how it was built, but likely the Debian build uses some linking to 
libraries the in GLIBC trigger the extra NPTL stack reservation.
Setting something like `ulimit -s 128` in the XMail startup scripts should 
fix the issue even for the Debian build).



- Davide


___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail