[vchkpw] a vpopmail+openldap question

2005-07-11 Thread Igor Puorro
when i start slapd in debug mode appears some strange output:

= send_search_entry: conn 39 exit.
send_ldap_result: conn=39 op=1 p=3
send_ldap_response: msgid=2 tag=101 err=0
ber_flush: 14 bytes to sd 20
:  30 0c 02 01 02 65 07 0a  01 00 04 00 04 00 0e
ldap_write: want=14, written=14
:  30 0c 02 01 02 65 07 0a  01 00 04 00 04 00 0e
connection_get(20): got connid=39
connection_read(20): checking for input on id=39
ber_get_next
ldap_read: want=8, got=7
:  30 05 02 01 03 42 00   0B.
ber_get_next: tag 0x30 len 5 contents:
ber_get_next
ldap_read: want=8 error=Resource temporarily unavailable
ber_get_next on fd 20 failed errno=11 (Resource temporarily unavailable)
do_unbind
connection_closing: readying conn=39 sd=20 for close
connection_resched: attempting closing conn=39 sd=20
connection_close: conn=39 sd=20


someone knows what means the following lines from debug output:

ldap_read: want=8 error=Resource temporarily unavailable
ber_get_next on fd 20 failed errno=11 (Resource temporarily unavailable)


[vchkpw] How do you handle spamcop

2005-07-11 Thread Tanmaya Anand

Hi All,

I am sorry if the problem has been addressed before, but i would like to know how is everyone dealing with SPAMCOP's bounce and autoresponder's issue. Despite of userchk, bounces are possible due to small things like over-quota (which is common problem for us running thousands of domain). Also Auto-responder are somehting that cannot be ignored and people do use them.

All i can find is the BOUNCEQUEUE patch, which is not feasible for us in correct situation.

So i would be thankful, if everyone shares his way to deal with this issue.

Regards,
Tanmay





RE: [vchkpw] How do you handle spamcop

2005-07-11 Thread David Hubbard
There's a patch called bounceroutes which basically allows you
to define artificial routes for bounce messages in a file
called bounceroutes using the same format as smtproutes,
including defaults.  

Use that patch, set up a separate server and add
:1.2.3.4
to the file, effectively telling your system to send all bounce
messages to the bounce server so it is the one that ends up
blacklisted.  That way only spamcop users won't receive their
legitimate email.

David 

 -Original Message-
 From: Tanmaya Anand [mailto:[EMAIL PROTECTED] 
 Sent: Monday, July 11, 2005 9:38 AM
 To: vchkpw@inter7.com
 Subject: [vchkpw] How do you handle spamcop
 
 Hi All,
 
 I am sorry if the problem has been addressed before, but i 
 would like to know how is everyone dealing with SPAMCOP's 
 bounce and autoresponder's issue. Despite of userchk, bounces 
 are possible due to small things like over-quota (which is 
 common problem for us running thousands of domain). Also 
 Auto-responder are somehting that cannot be ignored and 
 people do use them.
 
 All i can find is the BOUNCEQUEUE patch, which is not 
 feasible for us in correct situation.
 
 So i would be thankful, if everyone shares his way to deal 
 with this issue.
 
 Regards,
 Tanmay 
 
 
 
  http://clients.rediff.com/signature/track_sig.asp  
 


RE: [vchkpw] vacation messages

2005-07-11 Thread Andrew Preece


-Original Message-
From: Tom Collins [mailto:[EMAIL PROTECTED] 
Sent: Saturday, July 09, 2005 2:30 PM
To: vchkpw@inter7.com
Tom Collins Wrote:
they could add a program to the .qmail-default file for the 
domain to check for a vacation message before handing off to 
vdelivermail for delivery.

That's exactly what I was thinking about doing. 


Billy Newsom Wrote:
 you could let your users into qmailadmin. 

The reason I don't want to use a totally separate interface for managing
vacations is because our user administration is already done though some
custom secure web scripts and I don't want to add another place where
administration of the email accounts could take place.

(I mean, how many vactions do they take in a year  :)
A lot ;) 
The thing is that some of the salespeople/management travel frequently to
places where checking their email isn't the easiest job in the world, so
they just don't do it. Usually it's because of a very remote job site where
internet access is expensive/impractical. 

I'm going to talk to my boss about qmail-admin, and see what he thinks,
because it would be a heck of a lot easier than all this other stuff. 

Thanks for all your help!
- Andrew



Re: [vchkpw] authdaemond and MySQL server has gone away

2005-07-11 Thread Matt Simerson


You might want to make sure that MySQL is started before authdaemond.  
Edit /usr/local/etc/rc.d/courier-authdaemond.sh and add this line:


REQUIRE: LOGIN mysql-server

To understand REQUIRE a little better, cd /usr/local/etc/rc.d and  
grep for REQUIRE in the startup files. It's purpose should become  
obvious.


http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ 
configtuning-rcng.html
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ 
configtuning-starting-services.html


Matt

On Jun 22, 2005, at 8:34 PM, Billy Newsom wrote:

I have been having a strange issue with authdaemond ever since it  
split into a seperate auth port.  I am running FreeBSD 5.4, net- 
qmail, vpopmail, Courier-IMAP, and using a mysql backend to  
vpopmail.  The only authentication package I use or need is the  
vchkpw.  Most or all of these are pretty late versions of these  
programs.


Well, what seems to be the problem is during a server *reboot*
1. authdaemond boots up, using an rc.d script (FreeBSD's autoexec  
files)

2. I think this is before mysql is loaded.
3. auth requests come in to the IMAP server almost immediately.
4. ALL AUTHs FAIL until I do the following.

When I get to the root shell a few hours later, I can get AUTHs  
working by restarting the daemons (I frantically restart imap,  
authdaemond, and mysql).  But, by the way, the authdaemond script  
is broken, and I have to stop and start it (typing /usr/local/etc/ 
rc.d/courier-authdaemond.sh restart only stops the daemon).


At this stage, all AUTHs now work!  Yeah!  But what is going on?   
During the AUTH failures, nobody can login, and everyone has to  
retype their mail passwords (Mozilla, for example, resets the IMAP  
password)


Here is what mysql logs said.  Notice, it appears that mysql  
started *AFTER* the first AUTH attempt.


050601 02:28:45  mysqld started
050601  2:28:49  InnoDB: Started; log sequence number 0 43740
/usr/local/libexec/mysqld: ready for connections.
Version: '4.1.11'  socket: '/tmp/mysql.sock'  port: 3306  FreeBSD  
port: mysql-server-4.1.11_1


Here is my mail and debug log.  I tried to put in spaces just to  
show different user login attempts.


Jun  1 02:28:40 ibm authdaemond: modules=authvchkpw, daemons=5
Jun  1 02:28:40 ibm authdaemond: Installing libauthvchkpw
Jun  1 02:28:40 ibm authdaemond: Installation complete: authvchkpw
Jun  1 02:28:41 ibm imapd: Connection, ip=[192.168.0.11]
Jun  1 02:28:41 ibm authdaemond: received auth request,  
service=imap, authtype=login

Jun  1 02:28:41 ibm authdaemond: authvchkpw: trying this module
Jun  1 02:28:41 ibm authdaemond: vchkpw: user does not exist
Jun  1 02:28:41 ibm authdaemond: authvchkpw: REJECT - try next module
Jun  1 02:28:41 ibm authdaemond: FAIL, all modules rejected
Jun  1 02:28:41 ibm imapd: LOGIN FAILED, user=test, ip=[192.168.0.11]


Jun  1 02:28:42 ibm pop3d: Connection, ip=[192.168.0.18]
Jun  1 02:28:42 ibm authdaemond: received auth request,  
service=pop3, authtype=login

Jun  1 02:28:42 ibm authdaemond: authvchkpw: trying this module
Jun  1 02:28:42 ibm authdaemond: vchkpw: user does not exist
Jun  1 02:28:42 ibm authdaemond: authvchkpw: REJECT - try next module
Jun  1 02:28:42 ibm authdaemond: FAIL, all modules rejected
Jun  1 02:28:42 ibm pop3d: LOGIN FAILED, user=tester, ip= 
[192.168.0.18]


Jun  1 02:28:44 ibm pop3d: Connection, ip=[192.168.0.17]
Jun  1 02:28:44 ibm authdaemond: received auth request,  
service=pop3, authtype=login

Jun  1 02:28:44 ibm authdaemond: authvchkpw: trying this module
Jun  1 02:28:44 ibm authdaemond: vchkpw: user does not exist
Jun  1 02:28:44 ibm authdaemond: authvchkpw: REJECT - try next module
Jun  1 02:28:44 ibm authdaemond: FAIL, all modules rejected
Jun  1 02:28:44 ibm pop3d: LOGIN FAILED, user=ppp, ip=[192.168.0.17]

Jun  1 02:28:44 ibm imapd: Connection, ip=[127.0.0.1]
Jun  1 02:28:44 ibm imapd: LOGOUT, ip=[127.0.0.1]

Jun  1 02:28:45 ibm pop3d: Connection, ip=[192.168.0.9]
Jun  1 02:28:45 ibm authdaemond: received auth request,  
service=pop3, authtype=login

Jun  1 02:28:45 ibm authdaemond: authvchkpw: trying this module
Jun  1 02:28:45 ibm authdaemond: vchkpw: user does not exist
Jun  1 02:28:45 ibm authdaemond: authvchkpw: REJECT - try next module
Jun  1 02:28:45 ibm authdaemond: FAIL, all modules rejected
Jun  1 02:28:45 ibm pop3d: LOGIN FAILED, user=, ip=[192.168.0.9]

Jun  1 02:28:46 ibm imapd: Disconnected, ip=[192.168.0.11], time=5

Jun  1 02:28:46 ibm pop3d: Connection, ip=[192.168.0.6]
Jun  1 02:28:46 ibm authdaemond: received auth request,  
service=pop3, authtype=login

Jun  1 02:28:46 ibm authdaemond: authvchkpw: trying this module
Jun  1 02:28:46 ibm authdaemond: vchkpw: user does not exist
Jun  1 02:28:46 ibm authdaemond: authvchkpw: REJECT - try next module
Jun  1 02:28:46 ibm authdaemond: FAIL, all modules rejected
Jun  1 02:28:46 ibm authdaemond: vmysql: sql error[3]: MySQL server  
has gone away

Jun  1 02:28:46 ibm pop3d: LOGIN FAILED, user=jjj, ip=[192.168.0.6]

Jun  1 

[vchkpw] Problems with maildrop + vpopmail with mysql auth

2005-07-11 Thread William Marques

Hi list,

I'm in troubles since I configure vpopmail to use mysql backend.
When I try to use maildrop with some of my virtual users, it says 
invalid user...

i.e:
#echo teste |/usr/local/bin/maildrop -d [EMAIL PROTECTED]
#Invalid user specified.

how can I configure maildrop to know where to find the virtual users in 
the mysql backend?

Is it possible?
Any sugestions will be very welcome.

Thanks in advance,

--
William Henrique Siqueira Marques
[EMAIL PROTECTED]



RE: [vchkpw] Problems with maildrop + vpopmail with mysql auth

2005-07-11 Thread Charles J. Boening
I call maildrop from .qmail on a per user basis

.qmail:
  |maildrop mailfilter



 

 -Original Message-
 From: William Marques [mailto:[EMAIL PROTECTED] 
 Sent: Monday, July 11, 2005 4:27 PM
 To: Lista vpopmail
 Subject: [vchkpw] Problems with maildrop + vpopmail with mysql auth
 
 Hi list,
 
 I'm in troubles since I configure vpopmail to use mysql backend.
 When I try to use maildrop with some of my virtual users, it 
 says invalid user...
 i.e:
 #echo teste |/usr/local/bin/maildrop -d 
 [EMAIL PROTECTED] #Invalid user specified.
 
 how can I configure maildrop to know where to find the 
 virtual users in the mysql backend?
 Is it possible?
 Any sugestions will be very welcome.
 
 Thanks in advance,
 
 --
 William Henrique Siqueira Marques
 [EMAIL PROTECTED]
 
 
 


Re: [vchkpw] Problems with maildrop + vpopmail with mysql auth

2005-07-11 Thread Remo Mattei
create a script that uses vuserinfo and if that finds it then you can
run the maildrop option. I use mysql as backend and I do not have any
problems with maildrop.

remo
On Mon, 2005-07-11 at 20:26 -0300, William Marques wrote:
 Hi list,
 
 I'm in troubles since I configure vpopmail to use mysql backend.
 When I try to use maildrop with some of my virtual users, it says 
 invalid user...
 i.e:
 #echo teste |/usr/local/bin/maildrop -d [EMAIL PROTECTED]
 #Invalid user specified.
 
 how can I configure maildrop to know where to find the virtual users in 
 the mysql backend?
 Is it possible?
 Any sugestions will be very welcome.
 
 Thanks in advance,
 


Re: RE: [vchkpw] How do you handle spamcop

2005-07-11 Thread Tanmaya Anand

Hello David,

Thanks for the patch. Can you give me the download URL too :)

Regards,
Tanmaya 


On Mon, 11 Jul 2005 David Hubbard wrote :
There's a patch called bounceroutes which basically allows you
to define artificial routes for bounce messages in a file
called bounceroutes using the same format as smtproutes,
including defaults.

Use that patch, set up a separate server and add
:1.2.3.4
to the file, effectively telling your system to send all bounce
messages to the bounce server so it is the one that ends up
blacklisted. That way only spamcop users won't receive their
legitimate email.

David

  -Original Message-
  From: Tanmaya Anand [mailto:[EMAIL PROTECTED]
  Sent: Monday, July 11, 2005 9:38 AM
  To: vchkpw@inter7.com
  Subject: [vchkpw] How do you handle spamcop
 
  Hi All,
 
  I am sorry if the problem has been addressed before, but i
  would like to know how is everyone dealing with SPAMCOP's
  bounce and autoresponder's issue. Despite of userchk, bounces
  are possible due to small things like over-quota (which is
  common problem for us running thousands of domain). Also
  Auto-responder are somehting that cannot be ignored and
  people do use them.
 
  All i can find is the BOUNCEQUEUE patch, which is not
  feasible for us in correct situation.
 
  So i would be thankful, if everyone shares his way to deal
  with this issue.
 
  Regards,
  Tanmay
 
 
 
  http://clients.rediff.com/signature/track_sig.asp
 






RE: RE: [vchkpw] How do you handle spamcop

2005-07-11 Thread David Hubbard
From: Tanmaya Anand [mailto:[EMAIL PROTECTED] 
 
 Hello David,
 
 Thanks for the patch. Can you give me the download URL too :)
 
 Regards,
 Tanmaya  
 

http://marc.theaimsgroup.com/?l=qmailm=111289555302985w=2

David