Re: [vchkpw] disable_smtp / no_smtp gid flag smtp-auth question

2004-11-23 Thread Steve
On Mon, 22 Nov 2004 17:20:15 -0800, Tom Collins wrote:
 On Nov 22, 2004, at 3:30 PM, Rick Macdougall wrote:
 Tom Collins wrote:
 On Nov 22, 2004, at 12:01 PM, Steve wrote:
 Please could someone tell me exactly what is the use of the
 disable_smtp  no_smtp gid flag ? I ask that because I use
 qmail + vpopmail (5.4.7) + smtp-auth, and the above settings
 don't have any effect when I connect with an authenticated
 user to my smtp server... I can still send emails even with
 the no_smtp bit flag set.

 It's supposed to work.
 If you look at the user with vuserinfo, does it show the flag
 set?

 Hi,

 You (not you Tom) might want the no_relay flag, not the no_smtp
 flag.

 NO_RELAY is to disable POP-before-SMTP and doesn't affect SMTP AUTH.


Of course I have tested with this flag too (no_relay), and effectively it 
doesn't have any effect on smtp auth...




Re: [vchkpw] disable_smtp / no_smtp gid flag smtp-auth question

2004-11-23 Thread Steve
On Mon, 22 Nov 2004 17:20:15 -0800, Tom Collins wrote:
 On Nov 22, 2004, at 3:30 PM, Rick Macdougall wrote:
 Tom Collins wrote:
 On Nov 22, 2004, at 12:01 PM, Steve wrote:
 Please could someone tell me exactly what is the use of the
 disable_smtp  no_smtp gid flag ? I ask that because I use
 qmail + vpopmail (5.4.7) + smtp-auth, and the above settings
 don't have any effect when I connect with an authenticated
 user to my smtp server... I can still send emails even with
 the no_smtp bit flag set.

 It's supposed to work.
 If you look at the user with vuserinfo, does it show the flag
 set?

 Hi,

 You (not you Tom) might want the no_relay flag, not the no_smtp
 flag.

 NO_RELAY is to disable POP-before-SMTP and doesn't affect SMTP AUTH.


My problem is solved, I'm very sorry folks, it was coming from my startup 
script :-( In fact, with the smtp-auth patch from http://www.mcmilk.de/qmail/ , 
the FQDN is still needed just after qmail-smtpd ... it's very confusing !!

So now with
tcpserver -v -H -R -x /etc/tcp.smtp.cdb -c70 -u 89 -g 89 0 smtp \ 
/var/qmail/bin/qmail-smtpd my.domain.com /home/vpopmail/bin/vchkpw /bin/true 
21
all is working perfectly, like expected.

I thank you all anyway :)





[vchkpw] Custom Maildir Structure

2004-11-23 Thread Robin Bowes
Hi,
I use bincimap with vpopmail and use the IMAPDir structure which looks 
like this:

domains
 |
 +-domain
|
+-user
|
+-IMAPDir
|   |
|   +-INBOX - ../Maildir
|
+-Maildir
   |
   +-new
   |
   +-cur
   |
   +-tmp
Is it possible to configure vpopmail (i.e. vadduser) and, by extension, 
qmailadmin to create this structure automatically when I new user is added?

i.e. Does vpopmail support the concept of a skel directory like the 
adduser command uses /etc/skel ?

Thanks,
R.
--
http://robinbowes.com


RE: [vchkpw] Custom Maildir Structure

2004-11-23 Thread Jeremy Eder
 
-Original Message-
From: Robin Bowes [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 23, 2004 7:40 AM
To: [EMAIL PROTECTED]
Subject: [vchkpw] Custom Maildir Structure

Hi,

I use bincimap with vpopmail and use the IMAPDir structure which looks 
like this:

domains
  |
  +-domain
 |
 +-user
 |
 +-IMAPDir
 |   |
 |   +-INBOX - ../Maildir
 |
 +-Maildir
|
+-new
|
+-cur
|
+-tmp

Is it possible to configure vpopmail (i.e. vadduser) and, by extension, 
qmailadmin to create this structure automatically when I new user is added?

i.e. Does vpopmail support the concept of a skel directory like the 
adduser command uses /etc/skel ?

Thanks,

R.
-- 
http://robinbowes.com



I know of a patch currently under development (very near done, must be
translated to English) for this exact function.
Coder calls it /etc/skel functionality for vpopmail.

If anyone else knows of another patch/method, please post.

I will post a link to the patch when it's complete.
Also, I understand it will be submitted to Inter7 for their review...

Best Regards,

Jeremy Eder
Hi-Tek Data Corp.
V: 516.797.8800
F: 516.797.8892 




[vchkpw] Courier-Imap patch to allow webmail access for specified IP's when no_imap or no_pop is specified

2004-11-23 Thread Rick Macdougall
Hi,
A little patch against preauthvchkpw.c to allow local imap and/or pop 
access even if no_pop or no_imap is set.

It used here to allow webmail access from localhost.
It is a patch against 3.0.8 but it is a small change and easily 
adjustable to other versions.

Based on Tom Collins code in vpopmail to allow the same thing.
Regards,
Rick
--- preauthvchkpw.c.ori Tue Nov 23 09:52:52 2004
+++ preauthvchkpw.c Tue Nov 23 09:55:42 2004
@@ -57,6 +57,15 @@
 static char User[256];
 static char Domain[256];

+/* IMAP connections from the following IPs will be classified as
+* web mail instead of IMAP.  On single-server networks, this
+* will typically be just 'localhost'.  For clusters, add the IP
+* addresses of all webmail servers.
+*/
+char *webmailips[] = { 127.0.0.1 };
+char*IpAddr;
+int i;
+
/* Make sure the auth struct is empty */
 memset(auth, 0, sizeof(auth));

@@ -92,6 +101,19 @@
dprintf(vchkpw: user does not exist);
return (-1);
}
+
+   /* Check for local connection and change imap or pop
+* to webmail
+   */
+
+if ( (IpAddr = get_remote_ip())  == NULL) IpAddr=;
+
+for (i = 0; i  (sizeof(webmailips)/sizeof(webmailips[0])); i++) {
+if (strcmp (IpAddr, webmailips[i]) == 0) {
+strcpy(service,webmail);
+break;
+}
+}

 /* Look at what type of connection we are trying to auth.
  * And then see if the user is permitted to make this type

Re: [vchkpw] Custom Maildir Structure

2004-11-23 Thread Tom Collins
On Nov 23, 2004, at 4:39 AM, Robin Bowes wrote:
Is it possible to configure vpopmail (i.e. vadduser) and, by 
extension, qmailadmin to create this structure automatically when I 
new user is added?

i.e. Does vpopmail support the concept of a skel directory like the 
adduser command uses /etc/skel ?
If you just need a particular directory structure, you can modify 
vpopmail.c's list of directories to create for each user:

 const char *dirnames[] = {Maildir, Maildir/new, Maildir/cur,
Maildir/tmp};
You'll have to manually add code before:
  /* set permissions on the user's dir */
  r_chown(., uid, gid);
To create the symlink from INBOX to ../Maildir.
There is a patch on SourceForge to add skel directory support to 
vpopmail, but we decided not to include it since it uses a system call 
to 'cp' to copy the files -- it would be better to do the copying 
within vpopmail itself.

--
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] autoresponder supposed to cause message loss?

2004-11-23 Thread David Hubbard
In a vpopmail 5.4.6 site with autoresponder 2.0.4,
the behavior we're seeing is that when a user
sets a vacation message, vpopmail sets up the autoresponder
with a 3 messages per day limit.  The .qmail file it
creates for that person has autoresponder on the first
line and then the Maildir delivery statement on the
second.  What we're seeing is that after the messages
from a given address exceed three, the autoresopnder
no longer mails, as expected, but the messages are no
longer delivered to the Maildir either, and the sender
is not notified.  Is there a way to override that 
behavior so messages are not lost?  Is this the
expected behavior even or is something else incorrect?
If I reverse the order in the .qmail file it works as
intended but I'd rather not patch vpopmail for all of
our servers and then remember to do that for the future.

Thanks,

David


[vchkpw] just noticed something with chkuser ....

2004-11-23 Thread Jeremy Kitchen
mail from: 
571 sorry, sender address has invalid format (#5.7.1 - chkuser)

HUH?

this is fixed in a newer version I hope?

-Jeremy

-- 
Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies, Inc.
  [EMAIL PROTECTED] ++ www.inter7.com ++ 866.528.3530 ++ 815.776.9465 int'l
  kitchen @ #qmail #gentoo on EFnet IRC ++ scriptkitchen.com/qmail
 GnuPG Key ID: 481BF7E2 ++ jabber:[EMAIL PROTECTED]


pgpujR638cnqe.pgp
Description: PGP signature


Re: [vchkpw] just noticed something with chkuser ....

2004-11-23 Thread Jeremy Kitchen
On Tuesday 23 November 2004 04:53 pm, Rick Macdougall wrote:
 Jeremy Kitchen wrote:
  mail from: 
  571 sorry, sender address has invalid format (#5.7.1 - chkuser)
 
  HUH?
 
  this is fixed in a newer version I hope?

 Hi,

 Is CHKUSER_ENABLE_NULL_SENDER_WITH_TCPREMOTEHOST defined in your config ?

  From the manual

 CHKUSER_ENABLE_NULL_SENDER_WITH_TCPREMOTEHOST 2.0.5   defined
 Enables accepting null sender  from hosts which have a name
 associated to their IP

oh, and we don't do reverse dns lookups.. that would explain it.  This is on 
as default or something?  Why is this even in chkuser?  heh...

-Jeremy

-- 
Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies, Inc.
  [EMAIL PROTECTED] ++ www.inter7.com ++ 866.528.3530 ++ 815.776.9465 int'l
  kitchen @ #qmail #gentoo on EFnet IRC ++ scriptkitchen.com/qmail
 GnuPG Key ID: 481BF7E2 ++ jabber:[EMAIL PROTECTED]


pgpADSsJnFCXH.pgp
Description: PGP signature


Re: [vchkpw] just noticed something with chkuser ....

2004-11-23 Thread Rick Macdougall
Jeremy Kitchen wrote:
mail from: 
571 sorry, sender address has invalid format (#5.7.1 - chkuser)
HUH?
this is fixed in a newer version I hope?
Hi,
Is CHKUSER_ENABLE_NULL_SENDER_WITH_TCPREMOTEHOST defined in your config ?
From the manual
CHKUSER_ENABLE_NULL_SENDER_WITH_TCPREMOTEHOST 	2.0.5 	defined 	
Enables accepting null sender  from hosts which have a name 
associated to their IP

Regards,
Rick


Re: [vchkpw] just noticed something with chkuser ....

2004-11-23 Thread Rick Macdougall

Jeremy Kitchen wrote:
On Tuesday 23 November 2004 04:53 pm, Rick Macdougall wrote:
CHKUSER_ENABLE_NULL_SENDER_WITH_TCPREMOTEHOST   2.0.5   defined
Enables accepting null sender  from hosts which have a name
associated to their IP

oh, and we don't do reverse dns lookups.. that would explain it.  This is on 
as default or something?  Why is this even in chkuser?  heh...
It's on by default as far as I can tell from his web page.  As to why 
it's in chkusr, I have no idea :)

Just trying to be helpful.
Regards,
Rick


Re: [vchkpw] autoresponder supposed to cause message loss?

2004-11-23 Thread Tom Collins
On Nov 23, 2004, at 11:01 AM, David Hubbard wrote:
Is there a way to override that
behavior so messages are not lost?  Is this the
expected behavior even or is something else incorrect?
If I reverse the order in the .qmail file it works as
intended but I'd rather not patch vpopmail for all of
our servers and then remember to do that for the future.
It's a bit of a mess.
What we really need are two different programs -- one as an 
autoresponder, and one as a vacation responder.  They need to bounce 
messages differently and exit differently.

I thought that someone had updated vdelivermail at one point to handle 
autoresponder's exit codes and not drop mail.  I guess not.

I'd like to change QmailAdmin so that it puts the email address first, 
and then the autorespond program delivery.  Unfortunately, 
check_user_forward_vacation() (the code that decodes the .qmail file) 
is a huge mess and expects the autorespond line to come first.

I'll see if I can find time to rewrite that function.  The fix to 
correctly write the .qmail file is trivial.  I'll see if I can get it 
into the next release.

--
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] just noticed something with chkuser ....

2004-11-23 Thread Remo Mattei
I had the same problem I had to make sure that the patch was applied
correctly otherwise it will not accept your bounce messages.

Remo
- Original Message - 
From: Jeremy Kitchen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 23, 2004 5:08 PM
Subject: Re: [vchkpw] just noticed something with chkuser