Re: [vchkpw] Qmail smtp oddity with vpopmail and chkuser

2006-10-30 Thread DAve

Tom Collins wrote:

On Oct 27, 2006, at 7:06 AM, DAve wrote:

mail from: [EMAIL PROTECTED]
## At this point qmail-smtpd just sits and never responds 250 ok

The only difference is the colon after the mail from command. No colon 
and qmail-smtpd responds, a colon and it does not, ever. I narrowed it 
down to stock qmail works, and qmail + chkuser does not. It seems to 
make no difference which vpopmail I use. This is very odd to me 
because this configuration has passed millions of messages in the past 
two years. I see no reason why it should fail to respond to an 
incoming connection incorrectly now.


Just as an FYI, RFC821 says you need angle brackets around the email 
address (and no space after the colon).


Regardless, qmail-smtpd should come back.  I just tried your test on my 
system (Shupp Toaster) and it came back fine.




Yea, I normally use the full correct syntax, but I know my server do not 
require it so I generally type by habit, right or wrong. I did try a 
correct syntax and the results got even odder.


bash-2.05b# telnet 10.0.241.135 25
Trying 10.0.241.135...
Connected to ecluster5.
Escape character is '^]'.
220 smtp.tls.net UNAUTHORIZED USE WILL BE PROSECUTED! ESMTP
helo avhost1
250 smtp.tls.net UNAUTHORIZED USE WILL BE PROSECUTED!
mail from:[EMAIL PROTECTED]
^]
telnet quit
Connection closed.
bash-2.05b# telnet 10.0.241.135 25
Trying 10.0.241.135...
Connected to ecluster5.
Escape character is '^]'.
220 smtp.tls.net UNAUTHORIZED USE WILL BE PROSECUTED! ESMTP
helo avhost1
250 smtp.tls.net UNAUTHORIZED USE WILL BE PROSECUTED!
mail from[EMAIL PROTECTED]
^]
telnet quit
Connection closed.
bash-2.05b# telnet 10.0.241.135 25
Trying 10.0.241.135...
Connected to ecluster5.
Escape character is '^]'.
220 smtp.tls.net UNAUTHORIZED USE WILL BE PROSECUTED! ESMTP
helo avhost1
250 smtp.tls.net UNAUTHORIZED USE WILL BE PROSECUTED!
mail from [EMAIL PROTECTED]
^]
telnet quit
Connection closed.
bash-2.05b# telnet 10.0.241.135 25
Trying 10.0.241.135...
Connected to ecluster5.
Escape character is '^]'.
220 smtp.tls.net UNAUTHORIZED USE WILL BE PROSECUTED! ESMTP
helo avhost1
250 smtp.tls.net UNAUTHORIZED USE WILL BE PROSECUTED!
mail from [EMAIL PROTECTED]
250 ok
^]
telnet quit

Now only mail from [EMAIL PROTECTED] works. Noting else does. 
I am completely perplexed. I have made one more change, I scp'd over my 
sources for vpopmail from a working server and recompiled and 
reinstalled onto the failing server and the problem persisted.


I will try doing the same with qmail and chckuser next. Need to get some 
things done first. It is looking like the only difference will be 
FreeBSD versions.


DAve


--
Three years now I've asked Google why they don't have a
logo change for Memorial Day. Why do they choose to do logos
for other non-international holidays, but nothing for
Veterans?

Maybe they forgot who made that choice possible.


[vchkpw] Missing loop check in vdelivermail

2006-10-30 Thread Tom Collins
I was quite surprised to learn that vdelivermail from vpopmail 5.4.13  
and 5.4.17 (and probably most earlier releases) does not detect all  
mail loops.


The checks are all performed when parsing .qmail files and the like.   
In my particular situation, an Exchange server was picking up mail  
from my server (via POP), and deciding to re-distribute it to  
everyone in the To field (including the mailbox it picked mail  
from).  I ended up seeing messages in this mailbox with the same  
Delivered-To line repeated dozens of times.


I've added a simple fix, which is to check the address right at the  
start of main().  I've tested it, and it works.  I'd really like to  
rework the way Delivered-To headers are checked and added*, but don't  
have the time to get into it now.  For now, here's the patch if  
anyone wants to try it out.


--- vdelivermail-orig.c 2006-06-29 12:36:43.0 -0700
+++ vdelivermail.c  2006-10-28 08:17:42.0 -0700
@@ -111,8 +111,14 @@
  */
int main(int argc, char **argv)
{
+char loopcheck[255];
+
 /* get the arguments to the program and setup things */
 get_arguments(argc, argv);
+snprintf (loopcheck, sizeof(loopcheck), [EMAIL PROTECTED], TheUser,  
TheDomain);

+if ( is_looping( loopcheck ) == 1 ) {
+vexiterr (EXIT_BOUNCE, mail is looping);
+}

#ifdef VALIAS
 /* process valiases if configured */

--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/

* I think vdelivermail should insert 1, maybe 2 Delivered-To headers  
on each email.  The first should be the raw email address from qmail- 
local.  The second should be the catchall address (or non-ext  
address) of the mailbox that ultimately receives the email.  The  
ultimate delivery address would appear in the headers before the  
envelope address.




RE: [vchkpw] POP3 authentication - erratic vmysql auth problem - self solved

2006-10-30 Thread shadowplay.net



 

 On a new linux mailserver I was having an erratic problem 
 with mysql and 
 pop3 authentication.  Authentication works 90+% of the time. 
 However, using The Bat! and Outlook clients, I randomly see the 
 following authentication failure and the user must poll pop3 again - 
 which then succeeds.
 
 SOLUTION:
 In spite of what the qmailctl stat told me, I found that 
 increasing the 
 pop3 'run' file memory limit from 800 to 1200 appears to 
 suppress this issue.
 
 Any thoughts on why would be welcome.  Otherwise, one for 
 the archives... Thanks! Dave.
 

aside from 'the bat!' being a spamware client filtered by most 
mail daemons and spam solutions... on inbound mailservers... 
your clients are probably sending/reciving 
bigger spam attachments than normal
to longer lists...

u might also want to look at the number of cc's and bcc's those clients 
are sending... and if its inbound pop have you looked at the size of the 
pop mailboxes that they are attempting to check?

a good hit with 3 or 4 heavy emails will blow 8m pretty easy... 
remmember the mem limit is the size of the pop binaries \PLUS 
the mailbox size

kenneth gf brown 
ceo shadowplay.net