[vchkpw] error while compiling vpopmail 5.4.0 pre1

2003-12-13 Thread Alexander Gruber
hi,

when i try to compile vpopmail i get the following error:

gcc -I. -I/usr/mysql/include/mysql  -g -O2 -Wall -c vchkpw.c
gcc -I. -I/usr/mysql/include/mysql  -g -O2 -Wall -c hmac_md5.c
gcc  -g -O2 -Wall  -o vchkpw  vchkpw.o md5.o hmac_md5.o libvpopmail.a 
-L/usr/mysql/lib/mysql  -lmysqlclient -lz -lcrypt
libvpopmail.a(vauth.o): In function `vauth_getpw':
/usr/src/vpopmail-5.4.0-pre1/vauth.c:498: undefined reference to 
`vlimits_setflags'
collect2: ld returned 1 exit status
make[2]: *** [vchkpw] Error 1
make[2]: Leaving directory `/usr/src/vpopmail-5.4.0-pre1'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/vpopmail-5.4.0-pre1'
make: *** [all-recursive-am] Error 2

before that i ran configure with the following options:

./configure --enable-mysql --enable-valias 
--enable-defaultquota=15728640S --prefix=/home/vpopmail/ 
--enable-mysql-logging --enable-incdir=/usr/mysql/include/mysql 
--enable-libdir=/usr/mysql/lib/mysql --enable-auth-logging 
--enable-tcpserver-file=/etc/tcp.smtp --enable-mysql-limits

regards

alex



Re: [vchkpw] error while compiling vpopmail 5.4.0 pre1

2003-12-13 Thread Tom Collins
On Saturday, December 13, 2003, at 09:20  AM, Alexander Gruber wrote:
when i try to compile vpopmail i get the following error:

gcc -I. -I/usr/mysql/include/mysql  -g -O2 -Wall -c vchkpw.c
gcc -I. -I/usr/mysql/include/mysql  -g -O2 -Wall -c hmac_md5.c
gcc  -g -O2 -Wall  -o vchkpw  vchkpw.o md5.o hmac_md5.o libvpopmail.a 
-L/usr/mysql/lib/mysql  -lmysqlclient -lz -lcrypt
libvpopmail.a(vauth.o): In function `vauth_getpw':
/usr/src/vpopmail-5.4.0-pre1/vauth.c:498: undefined reference to 
`vlimits_setflags'
This is a known error with --enable-mysql and --enable-mysql-limits.  
We've fixed it in CVS and it will be in 5.4.0-pre2.

The fix is to edit vlimits.c and move the "#endif" at the end of the 
file to just before the vlimits_setflags() function.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/



[vchkpw] Re: vpopmail, maildrop and spamassassin problem

2003-12-13 Thread Rodney M
slim wrote:
When I try to send a message to [EMAIL PROTECTED], I see this in 
/var/log/maillog:
Dec 12 22:30:27 gigantic qmail: 1071286227.908530 starting delivery 
756: msg 321 to local [EMAIL PROTECTED]
Dec 12 22:30:27 gigantic qmail: 1071286227.908975 status: local 1/10 
remote 0/120
Dec 12 22:30:27 gigantic maildrop[68428]: Unable to open mailbox.
Dec 12 22:30:27 gigantic qmail: 1071286227.927171 delivery 756: 
deferral:Unable_to_execute_/nonexistent/Unable_to_execute_/nonexistent/
Unable_to_execute_/nonexistent//usr/local/bin/maildrop:_Unable_to_open_mai 
lbox./


Make sure the vpopmail user has a valid shell in passwd.
I am not sure if that the problem in this instance... But I ran into 
that problem before.
I added a shell to the vpopmail user.  Here is the entry in /etc/passwd:

vpopmail:*:89:89:Vpopmail Account:/home/vpopmail:/bin/sh

Now when I send an email to [EMAIL PROTECTED], I see this in 
/var/log/maillog:

Dec 13 12:55:08 gigantic imapd: Connection, ip=[:::127.0.0.1]
Dec 13 12:55:08 gigantic spamc[31970]: connect(AF_INET) to spamd at 
127.0.0.1 failed, retrying (#1 of 3): Connection refused
Dec 13 12:55:09 gigantic imapd: LOGIN, [EMAIL PROTECTED], 
ip=[:::127.0.0.1], protocol=IMAP
Dec 13 12:55:09 gigantic spamc[31970]: connect(AF_INET) to spamd at 
127.0.0.1 failed, retrying (#2 of 3): Connection refused
Dec 13 12:55:10 gigantic spamc[31970]: connect(AF_INET) to spamd at 
127.0.0.1 failed, retrying (#3 of 3): Connection refused
Dec 13 12:55:11 gigantic spamc[31970]: connection attempt to spamd 
aborted after 3 retries
Dec 13 12:55:11 gigantic maildrop[31965]: Unable to open mailbox.
Dec 13 12:55:11 gigantic qmail: 1071338111.882389 delivery 1266: 
deferral: /usr/local/bin/maildrop:_Unable_to_open_mailbox./

Maildrop is still not working.  Maildrop was installed with UID=vpopmail 
and GID=vchkpw.  Any ideas?

Rodney




Re: [vchkpw] Re: vpopmail, maildrop and spamassassin problem

2003-12-13 Thread [EMAIL PROTECTED]
Rodney M wrote:

Dec 13 12:55:08 gigantic imapd: Connection, ip=[:::127.0.0.1]
Dec 13 12:55:08 gigantic spamc[31970]: connect(AF_INET) to spamd at 
127.0.0.1 failed, retrying (#1 of 3): Connection refused
Dec 13 12:55:09 gigantic imapd: LOGIN, [EMAIL PROTECTED], 
ip=[:::127.0.0.1], protocol=IMAP
Dec 13 12:55:09 gigantic spamc[31970]: connect(AF_INET) to spamd at 
127.0.0.1 failed, retrying (#2 of 3): Connection refused
Dec 13 12:55:10 gigantic spamc[31970]: connect(AF_INET) to spamd at 
127.0.0.1 failed, retrying (#3 of 3): Connection refused
Dec 13 12:55:11 gigantic spamc[31970]: connection attempt to spamd 
aborted after 3 retries
Dec 13 12:55:11 gigantic maildrop[31965]: Unable to open mailbox.
Dec 13 12:55:11 gigantic qmail: 1071338111.882389 delivery 1266: 
deferral: /usr/local/bin/maildrop:_Unable_to_open_mailbox./


For starters, spamd isn't running.  The maildrop 'unable to open 
mailbox' error is probably your mailfilter rules.  It's probably trying 
to dump mail into an invalid path or something similar.

Add this to your maildrop main filter file:

VERBOSE="5"

Then send the message, and watch the maillog.  Maildrop should dump very 
verbose error messages into the maillog.

--

-Robertson




[vchkpw] Default and/or Virtual domain POP Access problem

2003-12-13 Thread nathan Gordon








Hi

 

I have qmail and VpopMail running with the
…./qmail-pop3d/run file looking like this;

 

 

 

#!/bin/sh

PASSPROG="/bin/checkpassword"

HOSTNAME=`server.domain1.com`

 

exec /usr/bin/softlimit -m 320 \

/usr/bin/tcpserver -v -R -c 200 0 pop3 \

/var/qmail/bin/qmail-popup $HOSTNAME \

$PASSPROG /home/vpopmail/bin/vchkpw
/var/qmail/bin/qmail-pop3d Maildir 2>&1

 

 

 

 

Structure:

 

Domain1.com is the default domain on the server and sits in
the default /home/user/Maildir type structure as was setup when I installed qmail. 
Email for this domain works, I just can’t POP into it from a client (I
could before installing vpopmail and modifying the …./qmail-pop3d/run
file).

It was the only domain I was using when I originally
installed qmail about a month back.

 

Domain2.com and Domain3.com are setup as virtual domains
using Vpopmail and both work fine for both email send/receive and also POP
access.

 

 

 

Question:

 

Can I set Domain1.com up to allow POP access from the
clients (in the same way as in Domain2.com and Domain3.com)?

 

Or do I have to make ALL domains Virtual domains (in vpopmail)?

 

I can (by modifying the …./qmail-pop3d/run file) get
POP access to work from Domain1.com but then I loose POP access to Domain2.com
and Domain3.com, I can not work out how to get POP working for all three
domains… is it possible?

 

 

 

Thanks,

Nathan

 

 








---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.551 / Virus Database: 343 - Release Date: 11/12/2003
 


[vchkpw] vadddomain -O is broken in 5.4.0-pre1

2003-12-13 Thread Casey Zacek

'vadddomain -O' is broken in 5.4.0-pre1, and probably others.

The problem is that vget_assign() looks in [/var/qmail/]users/cdb for
the domain, and it's not there yet for the vadduser(postmaster) call.

vsetuserquota(), after vadduser(), also uses vget_assign(), as does
vadddomain's main() directly if a catchall has been chosen.

It's not a big deal to me, but I thought I'd point it out because it
probably shouldn't be broken in 5.4.0.

-- 
Casey Zacek
Senior Engineer
NeoSpire, Inc.



Re: [vchkpw] Default and/or Virtual domain POP Access problem

2003-12-13 Thread Tom Collins
On Saturday, December 13, 2003, at 07:04  PM, nathan Gordon wrote:
Can I set Domain1.com up to allow POP access from the clients (in the same way as in Domain2.com and Domain3.com)?

Compile vpopmail with --enable-passwd option to support system accounts.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/ 
Info on the Sniffter hand-held Network Tester: http://sniffter.com/



Re: [vchkpw] Default and/or Virtual domain POP Access problem

2003-12-13 Thread foo



On Saturday, December 13, 2003, at 07:04 PM, nathan Gordon wrote:> 
>> Can I set Domain1.com up to allow POP access from the clients (in 
the>> same way as in Domain2.com and Domain3.com)? > > 
Compile vpopmail with --enable-passwd option to support system> accounts. 

 
 
.. Or you could do this:
 
(domain.com is already setup on the box)
vadddomain domain2.com
rm -rf /home/vpopmail/domains/domain2.com
ln -s /home/vpopmail/domains/domain.com 
/home/vpopmail/domains/domain2.com
 

vadddomain domain3.com
rm -rf /home/vpopmail/domains/domain3.com
ln -s /home/vpopmail/domains/domain.com 
/home/vpopmail/domains/domain3.com
 
This allows for true mirror'd domains.