[xmail] Backup

2006-01-17 Thread Kay Seljeseth

Is a full directory backup of the mailroot the best way to make a backup of
the xmailserver config?

May the message files under the mailbox directories be excluded if not
needing a backup of the messages, but still wanting a full config backup?

(did not find any info about this in the readme file?)

Thanks!

-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: Backup

2006-01-17 Thread Chad Fleenor

I always just tar up /var/MailRoot every night.  I have had to restore 
this file before because someone deleted a domain.  It took me less than 
5 minutes to have the domain back up and operational, no one knew that 
anything had happened.

Thanks

Kay Seljeseth wrote:

Is a full directory backup of the mailroot the best way to make a backup of
the xmailserver config?

May the message files under the mailbox directories be excluded if not
needing a backup of the messages, but still wanting a full config backup?

(did not find any info about this in the readme file?)

Thanks!

-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]

  



-- 
Chad Fleenor
Pikeville Medical Center
Clinical Applications Analyst
606-218-4931

-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: XMail on Ubuntu

2006-01-17 Thread Thomas Bresson

Hm.. it's a bit technical but I tried.

First of all I don't know which parameters the XMail server runs on, I
installed it with the Synaptic feature in Ubuntu, and just filled in
the info. the gui asked for.

If I do the netstat -a -n -t -p I can see a connection is made, on the
state is says TIME_WAIT

I can't start the server in debug mode. If I kill the server process I
can't start it again. It simply states mail root path not found if I
use the -Md parameter. If I don't nothing happens.

If I reboot the server the xmail server starts fine again.

On 1/16/06, Davide Libenzi davidel@xmailserver.org wrote:

 On Sat, 14 Jan 2006, Thomas Bresson wrote:

  Yes. It's able to do outbound connections on all ports.
 
  I checked the logs, but found nothing weird. Only states that a user
  tries to connect and get's auth'ed. Nothing more.

 Try to stop XMail and then run a `netstat -a -n -t -p` and show the
 results. Then you can start XMail in debug mode `XMail -Md ...` (dots are
 eventual other parameters) and look at the messages while trying to send a
 message through it. Then take a look at files inside the 'slog'
 directories inside the spool.



 - Davide


 -
 To unsubscribe from this list: send the line unsubscribe xmail in
 the body of a message to [EMAIL PROTECTED]
 For general help: send the line help in the body of a message to
 [EMAIL PROTECTED]


-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: Unable to compile Xmail on NetBSD 3.0

2006-01-17 Thread Davide Libenzi

On Tue, 17 Jan 2006, David Lord wrote:

 On 16 Jan 2006, at 16:28, Davide Libenzi wrote:


 On Tue, 17 Jan 2006, David Lord wrote:

 I've been trying to setup a server to replace the one on FreeBSD 5.3
 which is giving a fairly regular panic due to problems more with
 FreeBSD than Xmail which I had running for months without problem on
 much faster hardware (p4-2400 vs 586-133).

 NetBSD box is an AMD k6-400 and I had NetBSD 2.0 installed and Xmail
 1.21. NetBSD was upgraded to 2.0.2 then 3.0 and Xmail still running
 ok during testing. I'd left upgrade of Xmail to 1.22 until last. On
 compile I get following error:



 g++  -O2 -I. -D__UNIX__ -D__BSD__ -D__NETBSD__ -D_REENTRANT=1
  -D_THREAD_SAFE=1 -DHAS_SYSMACHINE -c SysDep.cpp
 In file included from SysDep.cpp:40:
 SysDepBSD.cpp: In function `int SysGetDiskSpace(const char*,
 SYS_INT64*,
SYS_INT64*)':
 SysDepBSD.cpp:2429: error: aggregate `statfs SFS' has incomplete
 type and
cannot be defined
 SysDepBSD.cpp:2431: error: invalid use of undefined type `struct
 statfs' SysDepBSD.cpp:2429: error: forward declaration of `struct
 statfs' gmake: *** [SysDep.o] Error 1


 First I tried recompile of Xmail 1.21 and this failed on NetBSD 3.0
 whereas it had compiled without problem on NetBSD 2.0.

 I'm no coder but noticed statfs is replaced by statvfs in solaris
 version of the file so gave that a shot and compile completed
 without error.

 I'm running out of time to get this installed tonight but if anyone
 knows of correct fix it might be helpful tomorrow.

 What does `echo $OSTYPE` return on the NetBSD 3.0 box?

 bash-3.00# echo $OSTYPE
 netbsdelf

 but I'd used command 'OSTYPE=NetBSD gmake -f Makefile.bsd'

 I've just tried OSTYPE=NetBSD so 'echo $OSTYPE' returns NetBSD and
 compile with original code and commandline above still fails. The
 compile output has shown
 -D__UNIX__ -D_BSD__ -D__NETBSD__ on all attempts.

 Also tried from sh then ksh rather than bash and all fail at same
 point.

Can you try this?

$ find /usr/include -type f -exec grep -H statfs {} \;



- Davide


-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: XMail on Ubuntu

2006-01-17 Thread Davide Libenzi

On Tue, 17 Jan 2006, Thomas Bresson wrote:


 Hm.. it's a bit technical but I tried.

 First of all I don't know which parameters the XMail server runs on, I
 installed it with the Synaptic feature in Ubuntu, and just filled in
 the info. the gui asked for.

 If I do the netstat -a -n -t -p I can see a connection is made, on the
 state is says TIME_WAIT

I need to see the whole output of `netstat -a -n -t -p` (from root) in 
order to help you.



 I can't start the server in debug mode. If I kill the server process I
 can't start it again. It simply states mail root path not found if I
 use the -Md parameter. If I don't nothing happens.

You need to stop the server before. Likely something like:

# /etc/init.d/xmail stop



- Davide


-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: XMail on Ubuntu

2006-01-17 Thread Thomas Bresson

It makes no difference. I still just get:mail root path not found

On 1/17/06, Davide Libenzi davidel@xmailserver.org wrote:

 On Tue, 17 Jan 2006, Thomas Bresson wrote:

 
  Hm.. it's a bit technical but I tried.
 
  First of all I don't know which parameters the XMail server runs on, I
  installed it with the Synaptic feature in Ubuntu, and just filled in
  the info. the gui asked for.
 
  If I do the netstat -a -n -t -p I can see a connection is made, on the
  state is says TIME_WAIT

 I need to see the whole output of `netstat -a -n -t -p` (from root) in
 order to help you.



  I can't start the server in debug mode. If I kill the server process I
  can't start it again. It simply states mail root path not found if I
  use the -Md parameter. If I don't nothing happens.

 You need to stop the server before. Likely something like:

 # /etc/init.d/xmail stop



 - Davide


 -
 To unsubscribe from this list: send the line unsubscribe xmail in
 the body of a message to [EMAIL PROTECTED]
 For general help: send the line help in the body of a message to
 [EMAIL PROTECTED]


-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: XMail on Ubuntu

2006-01-17 Thread Sönke Ruempler

On 17.01.2006 20:58, Thomas Bresson wrote:

 It makes no difference. I still just get:mail root path not found

Please read the mails carefully if you want to get free support for an
open source product:

I need to see the whole output of `netstat -a -n -t -p` (from root) in
order to help you.

Thx.
-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: Unable to compile Xmail on NetBSD 3.0

2006-01-17 Thread David Lord
On 17 Jan 2006, at 11:41, Davide Libenzi wrote:

 
 On Tue, 17 Jan 2006, David Lord wrote:
 
  On 16 Jan 2006, at 16:28, Davide Libenzi wrote:
 
 
  On Tue, 17 Jan 2006, David Lord wrote:
 
  I've been trying to setup a server to replace the one on FreeBSD
  5.3 which is giving a fairly regular panic due to problems more
  with FreeBSD than Xmail which I had running for months without
  problem on much faster hardware (p4-2400 vs 586-133).
 
  NetBSD box is an AMD k6-400 and I had NetBSD 2.0 installed and
  Xmail 1.21. NetBSD was upgraded to 2.0.2 then 3.0 and Xmail still
  running ok during testing. I'd left upgrade of Xmail to 1.22 until
  last. On compile I get following error:
 
 
 
  g++  -O2 -I. -D__UNIX__ -D__BSD__ -D__NETBSD__ -D_REENTRANT=1
   -D_THREAD_SAFE=1 -DHAS_SYSMACHINE -c SysDep.cpp
  In file included from SysDep.cpp:40:
  SysDepBSD.cpp: In function `int SysGetDiskSpace(const char*,
  SYS_INT64*,
 SYS_INT64*)':
  SysDepBSD.cpp:2429: error: aggregate `statfs SFS' has incomplete
  type and
 cannot be defined
  SysDepBSD.cpp:2431: error: invalid use of undefined type `struct
  statfs' SysDepBSD.cpp:2429: error: forward declaration of `struct
  statfs' gmake: *** [SysDep.o] Error 1
 
 
  First I tried recompile of Xmail 1.21 and this failed on NetBSD
  3.0 whereas it had compiled without problem on NetBSD 2.0.
 
  I'm no coder but noticed statfs is replaced by statvfs in solaris
  version of the file so gave that a shot and compile completed
  without error.
 
  I'm running out of time to get this installed tonight but if
  anyone knows of correct fix it might be helpful tomorrow.
 
  What does `echo $OSTYPE` return on the NetBSD 3.0 box?
 
  bash-3.00# echo $OSTYPE
  netbsdelf
 
  but I'd used command 'OSTYPE=NetBSD gmake -f Makefile.bsd'
 
  I've just tried OSTYPE=NetBSD so 'echo $OSTYPE' returns NetBSD and
  compile with original code and commandline above still fails. The
  compile output has shown -D__UNIX__ -D_BSD__ -D__NETBSD__ on all
  attempts.
 
  Also tried from sh then ksh rather than bash and all fail at same
  point.
 
 Can you try this?
 
 $ find /usr/include -type f -exec grep -H statfs {} \;

OK. output below. Meanwhile I find  my previous xmail-1.21 
configuration isn't working after the NetBSD update and gives error - 
 -213 on attempt to access the smtp server which is same as the xmail-
1.22 is giving. Also when I take the Maildir and binaries after I 
hacked xmail-1.22 to compile this does accept smtp connections 
without error. I'm slowly adding my configuration changes to this to 
find where it stops working.

One other possibility is I missed out a required postupdate step so 
I'll run postinstall against the NetBSD 3.0 distribution from cd.

Thanks

David

$ find /usr/include -type f -exec grep -H statfs {} \;

nfs/nfs_var.h:int nfsrv_statfs __P((struct nfsrv_descript *, \
struct nfssvc_sock *,

nfs/nfsproto.h:struct nfs_statfs {
rpcsvc/nfs_prot.x:struct statfsokres {
rpcsvc/nfs_prot.x:union statfsres switch (nfsstat status) {
rpcsvc/nfs_prot.x:  statfsokres reply;
rpcsvc/nfs_prot.x:  statfsres
rpcsvc/nfs_prot.h:struct statfsokres {
rpcsvc/nfs_prot.h:typedef struct statfsokres statfsokres;
rpcsvc/nfs_prot.h:extern C bool_t xdr_statfsokres(XDR *, \
statfsokres *);

rpcsvc/nfs_prot.h:extern  bool_t xdr_statfsokres(XDR *, \
statfsokres *);

rpcsvc/nfs_prot.h:bool_t xdr_statfsokres();
rpcsvc/nfs_prot.h:struct statfsres {
rpcsvc/nfs_prot.h:  statfsokres reply;
rpcsvc/nfs_prot.h:  } statfsres_u;
rpcsvc/nfs_prot.h:typedef struct statfsres statfsres;
rpcsvc/nfs_prot.h:extern C bool_t xdr_statfsres(XDR *, \
statfsres *);

rpcsvc/nfs_prot.h:extern  bool_t xdr_statfsres(XDR *, \
statfsres *);

rpcsvc/nfs_prot.h:bool_t xdr_statfsres();
rpcsvc/nfs_prot.h:extern C statfsres *nfsproc_statfs_2(nfs_fh *, \
CLIENT *);

rpcsvc/nfs_prot.h:extern C statfsres \
*nfsproc_statfs_2_svc(nfs_fh *, struct svc_req *);

rpcsvc/nfs_prot.h:extern  statfsres *nfsproc_statfs_2(nfs_fh *, \
CLIENT *);

rpcsvc/nfs_prot.h:extern  statfsres *nfsproc_statfs_2_svc(nfs_fh *, \
struct svc_req *);

rpcsvc/nfs_prot.h:extern  statfsres *nfsproc_statfs_2();
rpcsvc/nfs_prot.h:extern  statfsres *nfsproc_statfs_2_svc();
sys/mount.h:struct statfs12 {
sys/mount.h:int fstatfs(int, struct statfs12 *);
sys/mount.h:int getfsstat(struct statfs12 *, long, int);
sys/mount.h:int statfs(const char *, struct statfs12 *);
sys/mount.h:int getmntinfo(struct statfs12 **, int);
sys/mount.h:int fhstatfs(const fhandle_t *, struct statfs12 *);
sys/syscall.h:/* syscall: compat_20_getfsstat ret: int args: \
struct statfs12 * long int */

sys/syscall.h:/* syscall: compat_20_statfs ret: int args: \
const char * struct statfs12 * */

sys/syscall.h:#define   SYS_compat_20_statfs157

sys/syscall.h:/* syscall: compat_20_fstatfs ret: int args: \
int struct statfs12 * */

sys/syscall.h:#define   SYS_compat_20_fstatfs   158
sys/syscall.h:/* syscall: compat_20_fhstatfs ret: int args: \
const fhandle_t * 

[xmail] Re: Unable to compile Xmail on NetBSD 3.0

2006-01-17 Thread David Lord
On 17 Jan 2006, at 22:26, David Lord wrote:

 One other possibility is I missed out a required postupdate step so
 I'll run postinstall against the NetBSD 3.0 distribution from cd.

Postinstall found lots of failed checks and fixed them. Rebout shows 
system to be hosed.

At least restoring the backup etc has it booting again and xmail-1.22 
still accepting connections and delivering to domains Maildir/new. I 
have all domains and users added now but not yet touched server.tab 
which still has xmailserver.test.

It does look that there might be a problem with my NetBSD 3.0 install 
so I might backup all the configurations and do a clean install, 
especially as I want to make some changes to partition sizes as well.

Regards

David

-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]