[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: zmailer-2.99.40 at the usual place
> Just some quick hacks on 2.99.40 compile under a stock Solaris sparc4:
... and comments on these.
I have busy weekend coming, and got a bit too many serious
kind of bugs in the DSN things -- of course you never noticed
that 2.99.39 did use wrong ORCPT to parameter, if it had multiple
to pick from...
I have also a feeling that current "Delivery problems with your mail"
canned form must be changed to "Delivery reports on your mail", so
that it can also contain POSITIVE reports.
It should now be able to do NOTIFY=SUCCESS,FAILURE, and NOTIFY=NEVER
processing. Please try, and tell me. Especially tell me, what
happens when sending a message to system without DSN capability,
and with it when asking NOTIFY=SUCCESS(,FAILURE) ?
> SunOS srv 5.5 Generic sun4m sparc SUNW,SPARCstation-4
> (only foreign addition is gcc 2.7.2, otherwise everything else is stock)
>
> These may likely not be the best mods, but happily, 2.99.40 all compiles
> after these minor changes:
>
> 1.
> --
> cd ../router/libdb; make libzmdb.a
> r.c hostsfile.c incore.c ndbm.c ordered.c unordered.c yp.c
> dbm.c:16: dbm.h: No such file or directory
>
> added comments : /* #define HAVE_DBM_H 1 */ in config.h so it will
> only use ndbm.
Apparently a bug at autoconf script. I don't find
dbm.h at my Solaris 2.5 machines.
> 2.
> --
> cd ../libc; make libzc.a
> ...
> gcc -g -DHAVE_CONFIG_H -I.. -I../include -c syslog.c
> syslog.c: In function `vsyslog':
> syslog.c:160: `O_WRONLY' undeclared (first use this function)
> syslog.c:160: (Each undeclared identifier is reported only once
> syslog.c:160: for each function it appears in.)
> syslog.c: In function `openlog':
> syslog.c:217: `F_SETFD' undeclared (first use this function)
> *** Error code 1
>
> (both of these are in /usr/include/sys/fcntl.h, called from
> /usr/include/fcntl.h )
>
> added #include <fcntl.h> to syslog.c
Right.
However now that I look more closely, the bundled syslog()
has other potential problems, of which least is not the
#include <sys/uio.h> ... (and writev() )
> 3.
> --
...
> gcc -g -DHAVE_CONFIG_H -I.. -I../include -o smtpserver smtpserver.o
> version.o rfc821scn.o debugreport.o loadaver.o fdstatfs.o wantconn.o
> -L../libs -lz -lzc -lident -lmalloc_d -lelf -lresolv -lsocket -lnsl
> Undefined first referenced
> symbol in file
> kvm_read loadaver.o
> kvm_open loadaver.o
> kvm_close loadaver.o
> kvm_nlist loadaver.o
> ld: fatal: Symbol referencing errors. No output written to smtpserver
> *** Error code 1
>
> -lkvm seems to be missing in the local compile call...
>
> added it to smtpserver/Makefile:
> SMTPSERVER_LIB= -lkvm -lelf -lresolv -lsocket -lnsl
Yes -- also tells that I don't believe in 'load guided
closeing of the server'... (because I had not used it)
(yeah yeah... sloppy quality control...)
> 4.
> --
> making all in utils/makendbm
> gcc -g -DHAVE_CONFIG_H -I../../include -I../.. -c makendbm.c
> makendbm.c: In function `usage':
> makendbm.c:48: `sys_nerr' undeclared (first use this function)
> makendbm.c:48: (Each undeclared identifier is reported only once
> makendbm.c:48: for each function it appears in.)
> makendbm.c:49: `sys_errlist' undeclared (first use this function)
> *** Error code 1
>
> did compile in zmailer-2.99.27...hmmm... what's missing here is
> declarations for:
>
> extern int errno;
> extern char *sys_errlist[];
> extern int sys_nerr;
>
> in makendbm.c and ndbmlook.c (I just uncommented them - they aren't
> declared in <errno.h> under Solaris.
Should use strerror() anyway.
Integration into ZMailer is still partial, apparently.
(but you should look at what kind of smash I had to do
for fuzzyalias -transport-agent to get it to compile
at Linux -- no testing at anything else, though likely
DEC OSF/1 works ok ;) )
> Haven't tested it fully yet, but the router seems to work:
>
> zmailer-2.99.40/router>./router -i
> ZMailer router (2.99.40 #1: Fri Nov 1 13:24:08 MST 1996)
> jmack@srv:/usr4/local/admin/src/ZMail/zmailer-2.99.40/router
> Copyright 1992 Rayan S. Zachariassen
> Copyright 1992-1996 Matti Aarnio
>
> z# router postmaster
> <jmack.interactive@srv.Phys.UAlberta.CA>: address: postmaster
> (((smtp tshimshan.phys.ualberta.ca jmack@tshimshan.Phys.UAlberta.CA g1)))
> z#
>
> :-)
>
> Cheers,
> --
> James S. MacKinnon Office: P-139 Avahd-Bhatia Physics Lab
> Team Physics Voice : (403) 492-8226
> University of Alberta email : Jim.MacKinnon@Phys.UAlberta.CA
> Edmonton, Canada T6G 2N5
> WWW: http://www.phys.ualberta.ca/~jmack/jmack.html
/Matti Aarnio <mea@nic.funet.fi> <mea@utu.fi>