Re: [vchkpw] how to do simple vpopmail delivery with filtering

2005-04-06 Thread Kurt Bigler
on 4/6/05 11:30 PM, Kurt Bigler <[EMAIL PROTECTED]> wrote:

> on 4/6/05 10:41 PM, Kurt Bigler <[EMAIL PROTECTED]> wrote:
> 
>> So with this change, you can now have the following line in your user/.qmail
>> file:
>> 
>> | myfilter | vdelivermail -d bounce-no-mailbox
> 
> Well, not quite.  You have to wrap this in a simple command, e.g.
> 
> | mywrapper
> 
> where mywrapper contains:
> 
> #!/bin/sh
> myfilter | vdelivermail -d bounce-no-mailbox

Never mind.  I guess what I originally wrote was correct.  Sorry.

-Kurt



Re: [vchkpw] how to do simple vpopmail delivery with filtering

2005-04-06 Thread Kurt Bigler
on 4/6/05 10:41 PM, Kurt Bigler <[EMAIL PROTECTED]> wrote:

> So with this change, you can now have the following line in your user/.qmail
> file:
> 
> | myfilter | vdelivermail -d bounce-no-mailbox

Well, not quite.  You have to wrap this in a simple command, e.g.

| mywrapper

where mywrapper contains:

#!/bin/sh
myfilter | vdelivermail -d bounce-no-mailbox

-Kurt



Re: [vchkpw] how to do simple vpopmail delivery with filtering

2005-04-06 Thread Kurt Bigler
on 4/5/05 5:41 PM, Kurt Bigler <[EMAIL PROTECTED]> wrote:

> on 4/5/05 6:28 AM, Kyle Wheeler <[EMAIL PROTECTED]> wrote:
> 
>> | preline yourfilter | maildir /path/to/vpopdomains/`echo $USER | tr A-Z
>> a-z`/`echo $EXT | tr A-Z a-z`/Maildir/
> 
> Thanks, that's great.
> 
>>> In the mean time, what is the best (simplest, most reliable) way to
>>> achieve this simplistic delivery functionality?
>> 
>> I think "maildir" (or "safecat") is what you want to use. If you think
>> the environment manipulation is a bit much, I agree, but them's the
>> breaks, at the moment.
> 
> Ok, but that's not too bad.  It just bugs me to have to install yet another
> package, just to do what vpopmail already knows how to do.
> 
> But thanks, that's what I needed to know!
> 
> But I have a question to the vpopmail developers:
> 
> If I were to implement this, as a option to vdelivermail, say:
> 
> -d  Deliver only.  Do not preline and skip all .qmail processing
> 
> would you find this to be something worth integrating?  I'm not sure that
> I'd have time now, but it seems worth asking the question.

I actually implemented this in my copy of vdelivermail.c.  It was actually
easier than I thought, and there were fewer issues, apparently, although I'm
not intimately familiar enough to know that I haven't missed something.

Here's what I did:

I tentatively reclaimed the unused there-for-compatibility command-line
argument 1.  If that argument equals '-d', intended to mean "Deliver Only"
(but could also mean Disable .qmail processing), then processing proceeds as
if the .qmail file did not exist, which I guess is just what Kyle Wheeler
was suggesting.  That appears to be all there is do it.

This change allows you do basic filtering in your .qmail files without
needing any of:

procmail
maildrop
maildir/safecat

In my book this is a very good thing.  It not only avoids the need for
dependencies on extra packages, but offers all the advantages that
vdelivermail already provides, including quota checking.  As README.quotas
says:

> NOTE: Non-system domain quotas are only enforcable when vdelivermail is the
> local delivery agent.  If you pipe your mail into anything else, like
> maildrop, then the non-system domain quota will be ignored.

So with this change, you can now have the following line in your user/.qmail
file:

| myfilter | vdelivermail -d bounce-no-mailbox

and it will not result in infinite vdelivermail recursion.  And so you can
have a pure-vpopmail solution for your QmailAdmin-enabled Spam Detection
option.

Here are the changes to vdelivermail.c in vpopmail-5.4.10 needed to
implement this:


==
--- vdelivermail.orig.c Wed Apr  6 05:07:36 2005
+++ vdelivermail.c  Wed Apr  6 05:15:06 2005
@@ -52,6 +52,7 @@
 struct vqpasswd *vpw;
 off_t message_size = 0;
 char bounce[AUTH_SIZE];
+char option[AUTH_SIZE];/*kkb*/
 int CurrentQuotaSizeFd;
 
 #ifdef QMAIL_EXT
@@ -177,6 +178,11 @@
 vexit(111);
 }
 
+   /*kkb begin*/
+   /* get the obsolete/option argument */
+strncpy(option, argv[1], sizeof(option));
+   /*kkb end*/
+
 /* get the last parameter in the .qmail-default file */
 strncpy(bounce, argv[2], sizeof(bounce));
 
@@ -733,6 +739,14 @@
  int deliver_err;

 chdir(dir);
+
+   /*kkb begin*/
+if ( strcmp(option, "-d") == 0 ) {
+
+/* feature disabled, so just return */
+return(-1);
+   }
+   /*kkb end*/
 
 /* format the file name */
 if ( (fs = fopen(".qmail","r")) == NULL ) {
==


It was probably eaiser for me to do that than it would have been to download
and make procmail, maildrop, or safecat!

If there's not something wrong with this that I'm missing, I'd love to see
this (or something similar) get integrated into vpopmail.

-Kurt



[vchkpw] domain does not exist

2005-04-06 Thread eka_pratania
dear all,
i use vqadmin for adding domain in qmail toaster 
admin,after i add new domain, let say : eka-p.net,then i 
try to add new user for that domain : [EMAIL PROTECTED] using 
Add Email Account, everything is fine until i check List 
Domains, and go to domain eka-p.net to check new user that 
i have created : [EMAIL PROTECTED] but vqadmin says domains 
eka-p.net does not exist and thereis no entry for my new 
account that i have created below name and alias/forward.

anyone can help me ?

regards,
eka pratania

Akses Internet TELKOMNet-Instan beri Diskon s.d. 50 % khusus untuk wilayah Jawa Timur.
Informasi selengkapnya di www.telkomnetinstan.com atau hub 0800-1-INSTAN (467826)
 


Re: [vchkpw] how to do simple vpopmail delivery with filtering

2005-04-06 Thread Tom Collins
By the way, I plan to revisit the vdelivermail code sometime (hopefully 
soon) and have it set the environment variables correctly, to match 
what qmail-local would set if it was a non-virtual domain.

This should make some of your .qmail and other scripts easier to 
write...

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
You don't need a laptop to troubleshoot high-speed Internet: 
sniffter.com



Re: [vchkpw] how to do simple vpopmail delivery with filtering

2005-04-06 Thread Kurt Bigler
on 4/6/05 6:04 AM, Kyle Wheeler <[EMAIL PROTECTED]> wrote:

> On Wednesday, April  6 at 02:50 AM, quoth danielcm:
>> 
>> I don't think it needs to be that complicated, all I have is:
>> | preline yourfilter | /usr/local/bin/maildir.sh  ./Maildir/
>> 
>> My maildir.sh file is:
>> exec /usr/bin/safecat "$1"/tmp "$1"/new
>> 
>> works for me since the .qmail file is in the users home directory.
> 
> Really? When I check out the environment from one of those .qmail files
> (e.g. by creating a qmail file containing:
> 
> | printenv > /tmp/env
> 
> That file contains the line:
> 
> PWD=/var/lib/vpopmail/domains/memoryhole.net

I had confirmed the behavior he was indicating by doing something like:

| (pwd; env) > /tmp/info

in the user/.qmail file and it confirmed that indeed the working directory
was set to the user directory, the one containing the ".qmail" file being
executed by vdelivermail.

The env output for me did not include any PWD variable.  I wonder who sets
the PWD variable on your system, and whether it can be relied on to match
what chdir sets.  Maybe this depends on which *nix you are using.

> Indicating that if I directed it to ./Maildir/ it would deliver to
> /var/lib/vpopmail/domains/memoryhole.net/Maildir/ which of course
> doesn't exist.
> 
> Just because the .qmail file is in the user's home directory doesn't
> mean it's PWD is the user's home directory.

Yes, "home directory" is not at all pertinent here, not for virtual domains.

> If vpopmail actually does
> deliver to /var/lib/vpopmail/domains/memoryhole.net/user/Maildir/ when I
> put ./Maildir/ into my user's .qmail file, then it's behaving
> incorrectly. The environment SHOULD be set identically to if the virtual
> user was a real user and qmail was doing the delivery.

The .qmail-whatever files in the domain directory are different.  For them
pwd shows the domain directory as the working directory.  But for the .qmail
file inside the user directory, vdelivermail is taking care of it, and the
vdelivermail.c code reveals that a chdir is done prior to reading the .qmail
file.  In fact it is opened simply via

fs = fopen(".qmail","r")

The current directory in effect before opening the .qmail file appears to
remain in effect while the file is processed.

-Kurt



[vchkpw] courier-authdaemond MySQL error

2005-04-06 Thread Jonathan Viney
Hi all,
I've noticed the following message turning up in the logs:
authdaemond: vmysql: sql error[3]: Lost connection to MySQL server 
during query

Anyone know exactly what causes this and/or how it can be fixed?
Cheers, Jonathan.


Re: [vchkpw] Switching from Mysql to Postgresql

2005-04-06 Thread Joshua Coucke



Ok, will do.
 
Josh

  - Original Message - 
  From: 
  Charles J. 
  Boening 
  To: vchkpw@inter7.com 
  Sent: Wednesday, April 06, 2005 1:59 
  PM
  Subject: RE: [vchkpw] Switching from 
  Mysql to Postgresql
  
  Thunderbird looks like it was trying to talk but didn't 
  like something the server said back to it.
   
  I used Thunderbird with qmail and a PostgreSQL backend 
  all the time.  I have many customers that do as well.  So we know it 
  should work.
   
  I wonder if it's some sort of LOGIN versus PLAIN versus 
  CRAM-MD5 issue?
   
  How about capturing to a file. 
  tcpdump -w smtp.cap
   
  Email that to me off-list and I'll check it 
  out.
   
   
  


From: Joshua Coucke 
[mailto:[EMAIL PROTECTED] Sent: Wednesday, April 06, 2005 
11:26 AMTo: vchkpw@inter7.comSubject: Re: [vchkpw] 
Switching from Mysql to Postgresql

I did a tcpdump while sending the last message 
with Outlook and the file is much larger than the try with 
Thunderbird.
 
Josh

  - Original Message - 
  From: 
  Joshua Coucke 
  To: vchkpw@inter7.com 
  Sent: Wednesday, April 06, 2005 1:23 
  PM
  Subject: Re: [vchkpw] Switching from 
  Mysql to Postgresql
  
  I just tried a tcpdump.
  I did tcpdump > tcp and then a grep 'smtp' 
  > smtp.
   
  Here are the contents of the smtp file.  
  Not exactly sure what all of that means.
   
  13:19:08.180829 IP firewall.softek.net.53711 
  > host2.aanow.net.smtp: S 1848408622:1848408622(0) win 65535 13:19:08.180963 IP host2.aanow.net.smtp > 
  firewall.softek.net.53711: S 783705716:783705716(0) ack 1848408623 win 
  5840 13:19:08.182335 IP 
  firewall.softek.net.53711 > host2.aanow.net.smtp: . ack 1 win 
  6553513:19:08.190878 IP host2.aanow.net.smtp > 
  firewall.softek.net.53711: P 1:32(31) ack 1 win 584013:19:08.192235 IP 
  firewall.softek.net.53711 > host2.aanow.net.smtp: P 1:19(18) ack 32 win 
  6550413:19:08.192381 IP host2.aanow.net.smtp > 
  firewall.softek.net.53711: . ack 19 win 584013:19:08.192524 IP 
  host2.aanow.net.smtp > firewall.softek.net.53711: P 32:163(131) ack 19 
  win 584013:19:08.194750 IP firewall.softek.net.53711 > 
  host2.aanow.net.smtp: P 19:34(15) ack 163 win 6537313:19:08.195155 IP 
  host2.aanow.net.smtp > firewall.softek.net.53711: P 163:221(58) ack 34 
  win 584013:19:08.196402 IP firewall.softek.net.53711 > 
  host2.aanow.net.smtp: P 34:112(78) ack 221 win 6531513:19:08.232661 IP 
  host2.aanow.net.smtp > firewall.softek.net.53711: P 221:312(91) ack 112 
  win 584013:19:08.234324 IP firewall.softek.net.53711 > 
  host2.aanow.net.smtp: P 112:115(3) ack 312 win 6522413:19:08.234526 IP 
  host2.aanow.net.smtp > firewall.softek.net.53711: P 312:421(109) ack 
  115 win 584013:19:08.272123 IP firewall.softek.net.53711 > 
  host2.aanow.net.smtp: P 115:121(6) ack 421 win 6511513:19:08.272268 IP 
  host2.aanow.net.smtp > firewall.softek.net.53711: P 421:505(84) ack 121 
  win 584013:19:08.272348 IP firewall.softek.net.53711 > 
  host2.aanow.net.smtp: R 121:121(0) ack 421 win 013:19:08.273044 IP 
  firewall.softek.net.53711 > host2.aanow.net.smtp: R 
  1848408743:1848408743(0) win 0
  Josh
  
- Original Message - 
From: 
Charles J. 
Boening 
To: vchkpw@inter7.com 
Sent: Wednesday, April 06, 2005 
12:55 PM
Subject: RE: [vchkpw] Switching 
from Mysql to Postgresql

backend shouldn't matter.  How about doing a 
packet capture (tcpdump) and seeing if Thunderbird is actually 
trying?  Sometimes things can happen so fast it may seem like it's 
not trying.
 
Also, how about TLS.  Doesn't Thunderbird try 
TLS by default?  How about turning that off?
 
 
Charlie
 
 
 

  
  
  From: Joshua Coucke 
  [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 06, 
  2005 9:06 AMTo: vchkpw@inter7.comSubject: Re: 
  [vchkpw] Switching from Mysql to Postgresql
  
  Well, oddly enough the problem with 
  sending email seems to be Thunderbird itself.  I can send email 
  from Outlook Express just fine when I use the lebanon-tn.com account 
  with it.  However, Thunderbird has a knee-jerk reaction of not 
  being able to connect to the smtp server.  It seems as though it 
  fails before it even tries.  Funny thing is that it does not do 
  this when Mysql is the backend instead of postgres.
   
  Joshua
  
- Original Message - 
From: 
Joshua 
Coucke 
To: vchkpw@inter7.com 
Sent: Wednesday, April 06, 2005 
10:04 

RE: [vchkpw] Switching from Mysql to Postgresql

2005-04-06 Thread Charles J. Boening



Thunderbird looks like it was trying to talk but didn't 
like something the server said back to it.
 
I used Thunderbird with qmail and a PostgreSQL backend all 
the time.  I have many customers that do as well.  So we know it 
should work.
 
I wonder if it's some sort of LOGIN versus PLAIN versus 
CRAM-MD5 issue?
 
How about capturing to a file. 
tcpdump -w smtp.cap
 
Email that to me off-list and I'll check it 
out.
 
 

  
  
  From: Joshua Coucke 
  [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 06, 2005 
  11:26 AMTo: vchkpw@inter7.comSubject: Re: [vchkpw] 
  Switching from Mysql to Postgresql
  
  I did a tcpdump while sending the last message 
  with Outlook and the file is much larger than the try with 
  Thunderbird.
   
  Josh
  
- Original Message - 
From: 
Joshua Coucke 
To: vchkpw@inter7.com 
Sent: Wednesday, April 06, 2005 1:23 
PM
Subject: Re: [vchkpw] Switching from 
Mysql to Postgresql

I just tried a tcpdump.
I did tcpdump > tcp and then a grep 'smtp' 
> smtp.
 
Here are the contents of the smtp file.  
Not exactly sure what all of that means.
 
13:19:08.180829 IP firewall.softek.net.53711 
> host2.aanow.net.smtp: S 1848408622:1848408622(0) win 65535 13:19:08.180963 IP host2.aanow.net.smtp > 
firewall.softek.net.53711: S 783705716:783705716(0) ack 1848408623 win 5840 
13:19:08.182335 IP 
firewall.softek.net.53711 > host2.aanow.net.smtp: . ack 1 win 
6553513:19:08.190878 IP host2.aanow.net.smtp > 
firewall.softek.net.53711: P 1:32(31) ack 1 win 584013:19:08.192235 IP 
firewall.softek.net.53711 > host2.aanow.net.smtp: P 1:19(18) ack 32 win 
6550413:19:08.192381 IP host2.aanow.net.smtp > 
firewall.softek.net.53711: . ack 19 win 584013:19:08.192524 IP 
host2.aanow.net.smtp > firewall.softek.net.53711: P 32:163(131) ack 19 
win 584013:19:08.194750 IP firewall.softek.net.53711 > 
host2.aanow.net.smtp: P 19:34(15) ack 163 win 6537313:19:08.195155 IP 
host2.aanow.net.smtp > firewall.softek.net.53711: P 163:221(58) ack 34 
win 584013:19:08.196402 IP firewall.softek.net.53711 > 
host2.aanow.net.smtp: P 34:112(78) ack 221 win 6531513:19:08.232661 IP 
host2.aanow.net.smtp > firewall.softek.net.53711: P 221:312(91) ack 112 
win 584013:19:08.234324 IP firewall.softek.net.53711 > 
host2.aanow.net.smtp: P 112:115(3) ack 312 win 6522413:19:08.234526 IP 
host2.aanow.net.smtp > firewall.softek.net.53711: P 312:421(109) ack 115 
win 584013:19:08.272123 IP firewall.softek.net.53711 > 
host2.aanow.net.smtp: P 115:121(6) ack 421 win 6511513:19:08.272268 IP 
host2.aanow.net.smtp > firewall.softek.net.53711: P 421:505(84) ack 121 
win 584013:19:08.272348 IP firewall.softek.net.53711 > 
host2.aanow.net.smtp: R 121:121(0) ack 421 win 013:19:08.273044 IP 
firewall.softek.net.53711 > host2.aanow.net.smtp: R 
1848408743:1848408743(0) win 0
Josh

  - Original Message - 
  From: 
  Charles J. 
  Boening 
  To: vchkpw@inter7.com 
  Sent: Wednesday, April 06, 2005 12:55 
  PM
  Subject: RE: [vchkpw] Switching from 
  Mysql to Postgresql
  
  backend shouldn't matter.  How about doing a 
  packet capture (tcpdump) and seeing if Thunderbird is actually 
  trying?  Sometimes things can happen so fast it may seem like it's 
  not trying.
   
  Also, how about TLS.  Doesn't Thunderbird try 
  TLS by default?  How about turning that off?
   
   
  Charlie
   
   
   
  


From: Joshua Coucke 
[mailto:[EMAIL PROTECTED] Sent: Wednesday, April 06, 
2005 9:06 AMTo: vchkpw@inter7.comSubject: Re: 
[vchkpw] Switching from Mysql to Postgresql

Well, oddly enough the problem with sending 
email seems to be Thunderbird itself.  I can send email from 
Outlook Express just fine when I use the lebanon-tn.com account with 
it.  However, Thunderbird has a knee-jerk reaction of not being 
able to connect to the smtp server.  It seems as though it fails 
before it even tries.  Funny thing is that it does not do this when 
Mysql is the backend instead of postgres.
 
Joshua

  - Original Message - 
  From: 
  Joshua 
  Coucke 
  To: vchkpw@inter7.com 
  Sent: Wednesday, April 06, 2005 
  10:04 AM
  Subject: [vchkpw] Switching from 
  Mysql to Postgresql
  
  Hey, this is Joshua Coucke (on my work 
  account)
   
  I have been able to get the email server 
  working on postgres like I said.  However, I can not send 
  messages.  I get an error message telling me that Thunderbird can 
  not connect to the SMTP server.
   
  When I check in the vlog table it has 

Re: [vchkpw] How do I unsubscribe?

2005-04-06 Thread Rick Macdougall

John McGivern wrote:
Hi All,
 
Sorry to bother you all about this but I really don't know how to unsubscribe from this list.  Do I just send an email saying unsubscribe in the subject field?
 
Thanks,
 
John McGivern
Hi,
From the message headers of each list email...
List-Post: 
List-Help: 
List-Unsubscribe: 
List-Subscribe: 
Regards,
Rick


Re: [vchkpw] How do I unsubscribe?

2005-04-06 Thread Chase Urich
> Sorry to bother you all about this but I really don't know how to unsubscribe 
> from this list.  

Send an email to: [EMAIL PROTECTED] 

It's in the headers of every message ... and usually is for most
mailing list (for future reference).

Chase
-- 
Computers are like air conditioners.  Both stop working, if you open
windows. -- Adam Heath


Re: [vchkpw] How do I unsubscribe?

2005-04-06 Thread Joshua Coucke
You can send a message to [EMAIL PROTECTED] to get a list of commands.
Or you can send an email to [EMAIL PROTECTED] if you have not 
changed your email address that you signed up with.

Josh
- Original Message - 
From: "John McGivern" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, April 06, 2005 1:26 PM
Subject: [vchkpw] How do I unsubscribe?

Hi All,
Sorry to bother you all about this but I really don't know how to 
unsubscribe from this list.  Do I just send an email saying unsubscribe in 
the subject field?

Thanks,
John McGivern



Re: [vchkpw] How do I unsubscribe?

2005-04-06 Thread Jeremy Kitchen
On Wednesday 06 April 2005 01:26 pm, John McGivern wrote:
> Hi All,
>
> Sorry to bother you all about this but I really don't know how to
> unsubscribe from this list.  Do I just send an email saying unsubscribe in
> the subject field?

read the headers of every message sent to you by the list.

-Jeremy

-- 
Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies, Inc.
[EMAIL PROTECTED] ++ 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]


pgpNdq9YvCl1t.pgp
Description: PGP signature


[vchkpw] How do I unsubscribe?

2005-04-06 Thread John McGivern
Hi All,
 
Sorry to bother you all about this but I really don't know how to unsubscribe 
from this list.  Do I just send an email saying unsubscribe in the subject 
field?
 
Thanks,
 
John McGivern


Re: [vchkpw] Switching from Mysql to Postgresql

2005-04-06 Thread Joshua Coucke



I did a tcpdump while sending the last message with 
Outlook and the file is much larger than the try with Thunderbird.
 
Josh

  - Original Message - 
  From: 
  Joshua 
  Coucke 
  To: vchkpw@inter7.com 
  Sent: Wednesday, April 06, 2005 1:23 
  PM
  Subject: Re: [vchkpw] Switching from 
  Mysql to Postgresql
  
  I just tried a tcpdump.
  I did tcpdump > tcp and then a grep 'smtp' 
  > smtp.
   
  Here are the contents of the smtp file.  Not 
  exactly sure what all of that means.
   
  13:19:08.180829 IP firewall.softek.net.53711 > 
  host2.aanow.net.smtp: S 1848408622:1848408622(0) win 65535 13:19:08.180963 IP host2.aanow.net.smtp > 
  firewall.softek.net.53711: S 783705716:783705716(0) ack 1848408623 win 5840 
  13:19:08.182335 IP 
  firewall.softek.net.53711 > host2.aanow.net.smtp: . ack 1 win 
  6553513:19:08.190878 IP host2.aanow.net.smtp > 
  firewall.softek.net.53711: P 1:32(31) ack 1 win 584013:19:08.192235 IP 
  firewall.softek.net.53711 > host2.aanow.net.smtp: P 1:19(18) ack 32 win 
  6550413:19:08.192381 IP host2.aanow.net.smtp > 
  firewall.softek.net.53711: . ack 19 win 584013:19:08.192524 IP 
  host2.aanow.net.smtp > firewall.softek.net.53711: P 32:163(131) ack 19 win 
  584013:19:08.194750 IP firewall.softek.net.53711 > 
  host2.aanow.net.smtp: P 19:34(15) ack 163 win 6537313:19:08.195155 IP 
  host2.aanow.net.smtp > firewall.softek.net.53711: P 163:221(58) ack 34 win 
  584013:19:08.196402 IP firewall.softek.net.53711 > 
  host2.aanow.net.smtp: P 34:112(78) ack 221 win 6531513:19:08.232661 IP 
  host2.aanow.net.smtp > firewall.softek.net.53711: P 221:312(91) ack 112 win 
  584013:19:08.234324 IP firewall.softek.net.53711 > 
  host2.aanow.net.smtp: P 112:115(3) ack 312 win 6522413:19:08.234526 IP 
  host2.aanow.net.smtp > firewall.softek.net.53711: P 312:421(109) ack 115 
  win 584013:19:08.272123 IP firewall.softek.net.53711 > 
  host2.aanow.net.smtp: P 115:121(6) ack 421 win 6511513:19:08.272268 IP 
  host2.aanow.net.smtp > firewall.softek.net.53711: P 421:505(84) ack 121 win 
  584013:19:08.272348 IP firewall.softek.net.53711 > 
  host2.aanow.net.smtp: R 121:121(0) ack 421 win 013:19:08.273044 IP 
  firewall.softek.net.53711 > host2.aanow.net.smtp: R 
  1848408743:1848408743(0) win 0
  Josh
  
- Original Message - 
From: 
Charles J. 
Boening 
To: vchkpw@inter7.com 
Sent: Wednesday, April 06, 2005 12:55 
PM
Subject: RE: [vchkpw] Switching from 
Mysql to Postgresql

backend shouldn't matter.  How about doing a 
packet capture (tcpdump) and seeing if Thunderbird is actually trying?  
Sometimes things can happen so fast it may seem like it's not 
trying.
 
Also, how about TLS.  Doesn't Thunderbird try TLS 
by default?  How about turning that off?
 
 
Charlie
 
 
 

  
  
  From: Joshua Coucke 
  [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 06, 
  2005 9:06 AMTo: vchkpw@inter7.comSubject: Re: 
  [vchkpw] Switching from Mysql to Postgresql
  
  Well, oddly enough the problem with sending 
  email seems to be Thunderbird itself.  I can send email from Outlook 
  Express just fine when I use the lebanon-tn.com account with it.  
  However, Thunderbird has a knee-jerk reaction of not being able to connect 
  to the smtp server.  It seems as though it fails before it even 
  tries.  Funny thing is that it does not do this when Mysql is the 
  backend instead of postgres.
   
  Joshua
  
- Original Message - 
From: 
Joshua 
Coucke 
To: vchkpw@inter7.com 
Sent: Wednesday, April 06, 2005 
10:04 AM
Subject: [vchkpw] Switching from 
Mysql to Postgresql

Hey, this is Joshua Coucke (on my work 
account)
 
I have been able to get the email server 
working on postgres like I said.  However, I can not send 
messages.  I get an error message telling me that Thunderbird can 
not connect to the SMTP server.
 
When I check in the vlog table it has this 
error "vchkpw-pop3: vpopmail user not found 
[EMAIL PROTECTED]:x.x.x.x"
 
Now the user is in the database, I can see 
it using phppgadmin and the vuserinfo command.  So why is 
vchkpw-pop3 not finding the user?
 
Thanks,
Joshua 
Coucke


Re: [vchkpw] Switching from Mysql to Postgresql

2005-04-06 Thread Joshua Coucke



I just tried a tcpdump.
I did tcpdump > tcp and then a grep 'smtp' > 
smtp.
 
Here are the contents of the smtp file.  Not 
exactly sure what all of that means.
 
13:19:08.180829 IP firewall.softek.net.53711 > 
host2.aanow.net.smtp: S 1848408622:1848408622(0) win 65535 13:19:08.180963 IP host2.aanow.net.smtp > 
firewall.softek.net.53711: S 783705716:783705716(0) ack 1848408623 win 5840 
13:19:08.182335 IP firewall.softek.net.53711 
> host2.aanow.net.smtp: . ack 1 win 6553513:19:08.190878 IP 
host2.aanow.net.smtp > firewall.softek.net.53711: P 1:32(31) ack 1 win 
584013:19:08.192235 IP firewall.softek.net.53711 > host2.aanow.net.smtp: 
P 1:19(18) ack 32 win 6550413:19:08.192381 IP host2.aanow.net.smtp > 
firewall.softek.net.53711: . ack 19 win 584013:19:08.192524 IP 
host2.aanow.net.smtp > firewall.softek.net.53711: P 32:163(131) ack 19 win 
584013:19:08.194750 IP firewall.softek.net.53711 > host2.aanow.net.smtp: 
P 19:34(15) ack 163 win 6537313:19:08.195155 IP host2.aanow.net.smtp > 
firewall.softek.net.53711: P 163:221(58) ack 34 win 584013:19:08.196402 IP 
firewall.softek.net.53711 > host2.aanow.net.smtp: P 34:112(78) ack 221 win 
6531513:19:08.232661 IP host2.aanow.net.smtp > firewall.softek.net.53711: 
P 221:312(91) ack 112 win 584013:19:08.234324 IP firewall.softek.net.53711 
> host2.aanow.net.smtp: P 112:115(3) ack 312 win 6522413:19:08.234526 IP 
host2.aanow.net.smtp > firewall.softek.net.53711: P 312:421(109) ack 115 win 
584013:19:08.272123 IP firewall.softek.net.53711 > host2.aanow.net.smtp: 
P 115:121(6) ack 421 win 6511513:19:08.272268 IP host2.aanow.net.smtp > 
firewall.softek.net.53711: P 421:505(84) ack 121 win 584013:19:08.272348 IP 
firewall.softek.net.53711 > host2.aanow.net.smtp: R 121:121(0) ack 421 win 
013:19:08.273044 IP firewall.softek.net.53711 > host2.aanow.net.smtp: R 
1848408743:1848408743(0) win 0
Josh

  - Original Message - 
  From: 
  Charles J. 
  Boening 
  To: vchkpw@inter7.com 
  Sent: Wednesday, April 06, 2005 12:55 
  PM
  Subject: RE: [vchkpw] Switching from 
  Mysql to Postgresql
  
  backend shouldn't matter.  How about doing a packet 
  capture (tcpdump) and seeing if Thunderbird is actually trying?  
  Sometimes things can happen so fast it may seem like it's not 
  trying.
   
  Also, how about TLS.  Doesn't Thunderbird try TLS by 
  default?  How about turning that off?
   
   
  Charlie
   
   
   
  


From: Joshua Coucke 
[mailto:[EMAIL PROTECTED] Sent: Wednesday, April 06, 2005 
9:06 AMTo: vchkpw@inter7.comSubject: Re: [vchkpw] 
Switching from Mysql to Postgresql

Well, oddly enough the problem with sending 
email seems to be Thunderbird itself.  I can send email from Outlook 
Express just fine when I use the lebanon-tn.com account with it.  
However, Thunderbird has a knee-jerk reaction of not being able to connect 
to the smtp server.  It seems as though it fails before it even 
tries.  Funny thing is that it does not do this when Mysql is the 
backend instead of postgres.
 
Joshua

  - Original Message - 
  From: 
  Joshua 
  Coucke 
  To: vchkpw@inter7.com 
  Sent: Wednesday, April 06, 2005 10:04 
  AM
  Subject: [vchkpw] Switching from 
  Mysql to Postgresql
  
  Hey, this is Joshua Coucke (on my work 
  account)
   
  I have been able to get the email server 
  working on postgres like I said.  However, I can not send 
  messages.  I get an error message telling me that Thunderbird can not 
  connect to the SMTP server.
   
  When I check in the vlog table it has this 
  error "vchkpw-pop3: vpopmail user not found 
  [EMAIL PROTECTED]:x.x.x.x"
   
  Now the user is in the database, I can see it 
  using phppgadmin and the vuserinfo command.  So why is vchkpw-pop3 
  not finding the user?
   
  Thanks,
  Joshua 
  Coucke


Re: [vchkpw] Switching from Mysql to Postgresql

2005-04-06 Thread Joshua Coucke



I don't think Thunderbird does TLS by 
default.  At least I have it turned off on mine.
 
Josh

  - Original Message - 
  From: 
  Charles J. 
  Boening 
  To: vchkpw@inter7.com 
  Sent: Wednesday, April 06, 2005 12:55 
  PM
  Subject: RE: [vchkpw] Switching from 
  Mysql to Postgresql
  
  backend shouldn't matter.  How about doing a packet 
  capture (tcpdump) and seeing if Thunderbird is actually trying?  
  Sometimes things can happen so fast it may seem like it's not 
  trying.
   
  Also, how about TLS.  Doesn't Thunderbird try TLS by 
  default?  How about turning that off?
   
   
  Charlie
   
   
   
  


From: Joshua Coucke 
[mailto:[EMAIL PROTECTED] Sent: Wednesday, April 06, 2005 
9:06 AMTo: vchkpw@inter7.comSubject: Re: [vchkpw] 
Switching from Mysql to Postgresql

Well, oddly enough the problem with sending 
email seems to be Thunderbird itself.  I can send email from Outlook 
Express just fine when I use the lebanon-tn.com account with it.  
However, Thunderbird has a knee-jerk reaction of not being able to connect 
to the smtp server.  It seems as though it fails before it even 
tries.  Funny thing is that it does not do this when Mysql is the 
backend instead of postgres.
 
Joshua

  - Original Message - 
  From: 
  Joshua 
  Coucke 
  To: vchkpw@inter7.com 
  Sent: Wednesday, April 06, 2005 10:04 
  AM
  Subject: [vchkpw] Switching from 
  Mysql to Postgresql
  
  Hey, this is Joshua Coucke (on my work 
  account)
   
  I have been able to get the email server 
  working on postgres like I said.  However, I can not send 
  messages.  I get an error message telling me that Thunderbird can not 
  connect to the SMTP server.
   
  When I check in the vlog table it has this 
  error "vchkpw-pop3: vpopmail user not found 
  [EMAIL PROTECTED]:x.x.x.x"
   
  Now the user is in the database, I can see it 
  using phppgadmin and the vuserinfo command.  So why is vchkpw-pop3 
  not finding the user?
   
  Thanks,
  Joshua 
  Coucke


RE: [vchkpw] Switching from Mysql to Postgresql

2005-04-06 Thread Charles J. Boening



backend shouldn't matter.  How about doing a packet 
capture (tcpdump) and seeing if Thunderbird is actually trying?  Sometimes 
things can happen so fast it may seem like it's not trying.
 
Also, how about TLS.  Doesn't Thunderbird try TLS by 
default?  How about turning that off?
 
 
Charlie
 
 
 

  
  
  From: Joshua Coucke 
  [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 06, 2005 
  9:06 AMTo: vchkpw@inter7.comSubject: Re: [vchkpw] 
  Switching from Mysql to Postgresql
  
  Well, oddly enough the problem with sending email 
  seems to be Thunderbird itself.  I can send email from Outlook Express 
  just fine when I use the lebanon-tn.com account with it.  However, 
  Thunderbird has a knee-jerk reaction of not being able to connect to the smtp 
  server.  It seems as though it fails before it even tries.  Funny 
  thing is that it does not do this when Mysql is the backend instead of 
  postgres.
   
  Joshua
  
- Original Message - 
From: 
Joshua 
Coucke 
To: vchkpw@inter7.com 
Sent: Wednesday, April 06, 2005 10:04 
AM
Subject: [vchkpw] Switching from Mysql 
to Postgresql

Hey, this is Joshua Coucke (on my work 
account)
 
I have been able to get the email server 
working on postgres like I said.  However, I can not send 
messages.  I get an error message telling me that Thunderbird can not 
connect to the SMTP server.
 
When I check in the vlog table it has this 
error "vchkpw-pop3: vpopmail user not found 
[EMAIL PROTECTED]:x.x.x.x"
 
Now the user is in the database, I can see it 
using phppgadmin and the vuserinfo command.  So why is vchkpw-pop3 not 
finding the user?
 
Thanks,
Joshua 
Coucke


Re: [vchkpw] Switching from Mysql to Postgresql

2005-04-06 Thread Joshua Coucke



Well, oddly enough the problem with sending email 
seems to be Thunderbird itself.  I can send email from Outlook Express just 
fine when I use the lebanon-tn.com account with it.  However, Thunderbird 
has a knee-jerk reaction of not being able to connect to the smtp server.  
It seems as though it fails before it even tries.  Funny thing is that it 
does not do this when Mysql is the backend instead of postgres.
 
Joshua

  - Original Message - 
  From: 
  Joshua Coucke 
  
  To: vchkpw@inter7.com 
  Sent: Wednesday, April 06, 2005 10:04 
  AM
  Subject: [vchkpw] Switching from Mysql to 
  Postgresql
  
  Hey, this is Joshua Coucke (on my work 
  account)
   
  I have been able to get the email server working 
  on postgres like I said.  However, I can not send messages.  I get 
  an error message telling me that Thunderbird can not connect to the SMTP 
  server.
   
  When I check in the vlog table it has this error 
  "vchkpw-pop3: vpopmail user not found 
  [EMAIL PROTECTED]:x.x.x.x"
   
  Now the user is in the database, I can see it 
  using phppgadmin and the vuserinfo command.  So why is vchkpw-pop3 not 
  finding the user?
   
  Thanks,
  Joshua 
Coucke


[vchkpw] Switching from Mysql to Postgresql

2005-04-06 Thread Joshua Coucke



Hey, this is Joshua Coucke (on my work 
account)
 
I have been able to get the email server working on 
postgres like I said.  However, I can not send messages.  I get an 
error message telling me that Thunderbird can not connect to the SMTP 
server.
 
When I check in the vlog table it has this error 
"vchkpw-pop3: vpopmail user not found 
[EMAIL PROTECTED]:x.x.x.x"
 
Now the user is in the database, I can see it using 
phppgadmin and the vuserinfo command.  So why is vchkpw-pop3 not finding 
the user?
 
Thanks,
Joshua Coucke


Re: [vchkpw] how to do simple vpopmail delivery with filtering

2005-04-06 Thread Kyle Wheeler
On Wednesday, April  6 at 02:50 AM, quoth danielcm:
> 
> On Apr 5, 2005, at 9:28 AM, Kyle Wheeler wrote:
> 
> >
> >
> >What you *want* is this:
> >
> >| preline yourfilter | maildir $vpophome/$domain/$user/Maildir/
> >
> >(maildir is from the safecat package)
> >
> >However, vpopmail steadfastly refuses to set up the environment for 
> >it's
> >.qmail processing in a convenient way (or even a qmail-compatible way),
> >so what you can do is approximate it like this (all on one line):
> >
> >| preline yourfilter | maildir /path/to/vpopdomains/`echo $USER | tr 
> >A-Z
> >a-z`/`echo $EXT | tr A-Z a-z`/Maildir/
> >
> >
> 
> I don't think it needs to be that complicated, all I have is:
> | preline yourfilter | /usr/local/bin/maildir.sh  ./Maildir/
> 
> My maildir.sh file is:
> exec /usr/bin/safecat "$1"/tmp "$1"/new
> 
> works for me since the .qmail file is in the users home directory.

Really? When I check out the environment from one of those .qmail files 
(e.g. by creating a qmail file containing:

| printenv > /tmp/env

That file contains the line:

PWD=/var/lib/vpopmail/domains/memoryhole.net

Indicating that if I directed it to ./Maildir/ it would deliver to 
/var/lib/vpopmail/domains/memoryhole.net/Maildir/ which of course 
doesn't exist.

Just because the .qmail file is in the user's home directory doesn't 
mean it's PWD is the user's home directory. If vpopmail actually does 
deliver to /var/lib/vpopmail/domains/memoryhole.net/user/Maildir/ when I 
put ./Maildir/ into my user's .qmail file, then it's behaving 
incorrectly. The environment SHOULD be set identically to if the virtual 
user was a real user and qmail was doing the delivery.

~Kyle
-- 
I would be delighted to offer any advice I can on understanding women. When
I have some I'll let you know.
-- Jean Luc Picard


signature.asc
Description: Digital signature