[vchkpw] chkuser 2.0.8b

2005-07-26 Thread Dan D.
I am having a problem with chkuser.  When qmail is running with the patch,
everthing appears to be working fine.
i can telnet into port 25 of my server and send a test message from my
local box and a remote box.
this test appears in my inbox as normal.
but when i send through a mail client, such was outlook, thunderbird, or
even yahoo webmail, the messages are not delivered AT ALL.

mail works normally when i use the old qmail-smtpd file [before patching].

Does this make sense to anyone?

My chkuser_settings.h file are as follows, though i am not sure if this
effects anything:

[EMAIL PROTECTED] netqmail-1.05 # cat chkuser_settings.h

/*
 *
 * 'chkuser_settings.h' v.2.0.8
 * for qmail/netqmail  1.0.3 and vpopmail  5.3.x
 *
 * Author: Antonio Nati [EMAIL PROTECTED]
 * All rights on this software and
 * the identifying words chkusr and chkuser kept by the author
 *
 * This software may be freely used, modified and distributed,
 * but this lines must be kept in every original or derived version.
 * Original author Antonio Nati and the web URL
 * http://www.interazioni.it/opensource;
 * must be indicated in every related work or web page
 *
 */

/*
 * the following line enables debugging of chkuser
 */
/* #define CHKUSER_DEBUG */

/*
 * The following line moves DEBUG output from STDOUT (default) to STDERR
 * Example of usage within sh: ./qmail-smtpd 2 /var/log/smtpd-debug.log
 */
/* #define CHKUSER_DEBUG_STDERR */

/*
 * Uncomment the following define if you want chkuser ALWAYS enabled.
 * If uncommented, it will check for rcpt existance despite any
.qmail-default
 * setting.
 * So, unsomments this if you are aware that ALL rcpt in all domains will be
 * ALWAYS checked.
 */
#define CHKUSER_ALWAYS_ON

/*
 * The following defines which virtual manager is used.
 * Up to know, only vpopmail, but versions with pure qmail are in the mind.
 */
#define CHKUSER_VPOPMAIL

/*
 * Uncomment the following line if you want chkuser to work depending on a
VARIABLE setting
 * VALUE HERE DEFINED is the name of the variable
 * Values admitted inside the variable: NONE | ALWAYS | DOMAIN
 *  NONE= chkuser will not work
 *  ALWAYS  = chkuser will work always
 *  DOMAIN  = chkuser will work depending by single domain
settings
 * if CHKUSER_ALWAYS_ON is defined, this define is useless
 * if CHKUSER_STARTING_VARIABLE is defined, and no variable or no value is
set, then chkuser is disabled
 */
/* #define CHKUSER_STARTING_VARIABLE CHKUSER_START */

/*
 * Uncomment this to enable uid/gid changing
 * (switching UID/GID is NOT compatible with TLS; you may keep this
commented if you have TLS)
 */
#define CHKUSER_ENABLE_UIDGID

/*
 * Uncomment this to check if a domain is ALWAYS specified in rcpt addresses
 */
#define CHKUSER_DOMAIN_WANTED

/*
 * Uncomment this to check for vpopmail users
 */
#define CHKUSER_ENABLE_USERS

/*
 * Uncomment this to check for alias
 */
#define CHKUSER_ENABLE_ALIAS

/*
 * The following #define set the character used for lists extensions
 * be careful: this is a  single char '-' definition, not a string
 */
#define CHKUSER_EZMLM_DASH '-'

/*
 * Uncomment this to set an alternative way to check for bouncing enabling;
 * with this option enabled, the file here defined
 * will be searched, inside the domain dir, in order to check if bouncing
is enabled
 * The content of this file is not important, just it's existence is enough
 */
/* #define CHKUSER_SPECIFIC_BOUNCING .qmailchkuser-bouncing */

/*
 * This is the string to look for inside .qmail-default
 * Be careful, chkuser looks within the first 1023 characters of
.qmail-default for
 * this string (despite the line containing the string is working or
commented).
 */
#define CHKUSER_BOUNCE_STRING bounce-no-mailbox

/*
 * This is to enable auth open checking
 * it is useful to avoid bouncing if MySQL/LDAP/PostGRES/etc are down or
not reachable
 */
/* #define CHKUSER_ENABLE_VAUTH_OPEN */

/*
 * Uncomment to enable logging of rejected recipients and variuos limits
reached
 */
#define CHKUSER_ENABLE_LOGGING

/*
 * Uncomment to enable logging of good rcpts
 * valid only if CHKUSER_ENABLE_LOGGING is defined
 */
#define CHKUSER_LOG_VALID_RCPT

/*
 * Uncomment to enable usage of a variable escluding any check on the sender.
 * The variable should be set in tcp.smtp for clients, with static IP,
whose mailer
 * is composing bad sender addresses
 */
#define CHKUSER_SENDER_NOCHECK_VARIABLE SENDER_NOCHECK

/*
 * Uncomment to enable usage of # and + characters within sender address
 * This is used by SRS (Sender Rewriting Scheme) products
 */
/* #define CHKUSER_ALLOW_SENDER_SRS */

/*
 * If you need more additional characters to be accepted within sender
address
 * uncomment one of the following #define and edit the character value.
 * Be careful to use '*' (single hiphen) and NOT * (double hiphen)
around the
 * wanted char.
 */
/* #define CHKUSER_ALLOW_SENDER_CHAR_1 '$' */
/* #define CHKUSER_ALLOW_SENDER_CHAR_2 '%' */
/* #define 

[vchkpw] pop3 error

2005-03-11 Thread Dan D
ok, i just installed vpopmail and everything seems to be working with 
imap fine, but i am getting this error when trying to check via pop3

+OK [EMAIL PROTECTED]
user dan
+OK
pass mypass
vchkpw-pop3: vchkpw is only for talking with qmail-popup and 
qmail-pop3d. It is
not for runnning on the command line.
-ERR authorization failed

and then the session terminates.
I get the same error when using a mail client
I compiled with ./configure --enable-roaming-users=y --enable-valias=y
and my /service/qmail-pop3d/run has:
#!/bin/sh
exec/usr/local/bin/softlimit -m 200 \
   /usr/local/bin/envdir /etc/relay-ctrl \
   /usr/local/bin/relay-ctrl-chdir \
   /usr/local/bin/tcpserver -v -R -H -l 0 0 110 \
   /var/qmail/bin/qmail-popup \
   idelaney.net \
   /bin/checkpassword \
   /usr/local/bin/relay-ctrl-allow \
   /home/vpopmail/bin/vchkpw \
   /var/qmail/bin/qmail-pop3d Maildir \
   21
It works fine before the vchkpw line was put in.
What could be causing this?
- Dan Delaney


Re: [vchkpw] pop3 error

2005-03-11 Thread Dan D
Dan D wrote:
ok, i just installed vpopmail and everything seems to be working with 
imap fine, but i am getting this error when trying to check via pop3

+OK [EMAIL PROTECTED]
user dan
+OK
pass mypass
vchkpw-pop3: vchkpw is only for talking with qmail-popup and 
qmail-pop3d. It is
not for runnning on the command line.
-ERR authorization failed

and then the session terminates.
I get the same error when using a mail client
I compiled with ./configure --enable-roaming-users=y --enable-valias=y
and my /service/qmail-pop3d/run has:
#!/bin/sh
exec/usr/local/bin/softlimit -m 200 \
   /usr/local/bin/envdir /etc/relay-ctrl \
   /usr/local/bin/relay-ctrl-chdir \
   /usr/local/bin/tcpserver -v -R -H -l 0 0 110 \
   /var/qmail/bin/qmail-popup \
   idelaney.net \
   /bin/checkpassword \
   /usr/local/bin/relay-ctrl-allow \
   /home/vpopmail/bin/vchkpw \
   /var/qmail/bin/qmail-pop3d Maildir \
   21
It works fine before the vchkpw line was put in.
What could be causing this?
- Dan Delaney
I also get this when trying to check a virtual domain:
+OK [EMAIL PROTECTED]
user [EMAIL PROTECTED]
+OK
pass mypass
-ERR authorization failed