| |
|

|
|
POP Before SMTP/Whoson
POP Before SMTP/IMAP/Whoson Integration
UW IMAP Modifications QPopper Modifications
UW IMAP Modifications
Rev: 10/12/2005
Ref: version IMAP 2004e, 2004g
- Copy whoson.h into src/imapd
- Modify src/imapd/imapd.c
Add #include
at the top, under #include
- Modify src/imapd/imapd.c
add:
/* WHOSON Login */
wso_login ( tcp_clientaddr (), user, NULL, 0 );
under:
response = (response == altwin) ? logwinalt : logwin;
syslog (LOG_INFO,"Authenticated user=%.80s host=%.80s",
user,tcp_clienthost ());
and:
response = (response == altwin) ? logwinalt : logwin;
syslog (LOG_INFO,"Login user=%.80s host=%.80s",user,
tcp_clienthost ());
- Modify src/imapd/Makefile to include the path to libwhoson:
modify this:
LDFLAGS = $(CCLIENTLIB) `cat $C/LDFLAGS`
to this:
LDFLAGS = $(CCLIENTLIB) /usr/local/lib/libwhoson.a `cat $C/LDFLAGS`
- make as per uw included instructions
QPopper Modifications
Re: QPopper Version 4.0.8
Rev: 08/03/2005
- Modify popper/banner.h to include modified by message in both string declarations
- Place whoson.h in popper/
Note - for the moment, whoson is implemented with the LOG_LOGIN compiler
directive - therefore this directive must be included at compile time.
- Modify pop_log.c
add to include section:
#ifdef LOG_LOGIN
#include
#endif /* whoson */
Near bottom, beneath:
pop_log ( p, POP_PRIORITY, HERE, str,
ptrs [ 0 ], ptrs [ 1 ], ptrs [ 2 ], ptrs [ 3 ] );
add:
#ifdef LOG_LOGIN
/* WHOSON Login */
wso_login ( p->ipaddr, p->user, NULL, 0 );
#endif /* whoson */
- Run ./configure with desired options
- Modify popper/Makefile to include the path to libwhoson:
popper: ${OBJS} mangler_library common_library
${CC} ${OBJS} -o popper ${mmangle_dir}/libmangle.a \
-I${common_srcdir} ${common_dir}/libcommon.a \
${LIBS} ${LDFLAGS} \
/usr/local/lib/libwhoson.a
- Build/install as per docs
|
Comments
|
|
|
|