Re: [vchkpw] vpopmail or qmail problem?

2007-10-03 Thread Tom Collins

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Oct 2, 2007, at 7:19 PM, John Simpson wrote:
and knowing qmail like i do, i suspect there's nothing wrong with  
qmail-local except maybe some error or warning condition that it's  
silently ignoring, where we might wish it would complain about, so  
we know what's happening and can fix it.


My quick guess:  .qmail-bob-clamav is a blank file, when you really  
want a single line with # and nothing else.


Blank files are ignored; a file with a comment will be treated like  
delete.


If you want to go even further, take a look at the bouncesaying  
program that's a part of qmail.  You can use it to bounce messages  
for a particular address with a message of your choice.


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


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFHAyzLve7eT9VwhJURAqbSAJ9+ec4cQbhWgqc8pzq9hf+c6gXxFQCeJtj3
httVt1yz3q31XBSK/Rmmjmg=
=3+dY
-END PGP SIGNATURE-


Re: [vchkpw] vpopmail or qmail problem?

2007-10-03 Thread Tom Collins

On Oct 3, 2007, at 1:53 AM, Andy wrote:

jedi padawan.org # cat .qmail-kindred-clamav
| /var/vpopmail/bin/vdelivermail '' delete


There's your mistake.

What's happening is qmail-local hands the message off to vdelivermail  
(because you told it to), which looks for an account kindred-clamav  
(which it does not find), then an account named kindred (which it  
does) and then delivers to kindred.


domain.com/.qmail-alias files are only read/processed by qmail- 
local.  vdelivermail only looks at accounts (in whatever backend  
you're using) and possibly valias entries in a database.


Rick, can you put this somewhere in the documentation:

VDELIVERMAIL SHOULD ONLY APPEAR IN YOUR .qmail-default FILE.  IF YOU  
PUT IT ELSEWHERE, IT WILL NOT DO WHAT YOU EXPECT IT TO DO.


Solution:

echo #  .qmail-kindred-clamav

Or to bounce the email:

echo |/var/qmail/bin/bouncesaying 'Invalid account'  .qmail- 
kindred-clamav


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




Re: [vchkpw] vpopmail or qmail problem?

2007-10-03 Thread Rick Widmer



Tom Collins wrote:

On Oct 3, 2007, at 1:53 AM, Andy wrote:

jedi padawan.org # cat .qmail-kindred-clamav
| /var/vpopmail/bin/vdelivermail '' delete


There's your mistake.

What's happening is qmail-local hands the message off to vdelivermail 
(because you told it to), which looks for an account kindred-clamav 
(which it does not find), then an account named kindred (which it does) 
and then delivers to kindred.


domain.com/.qmail-alias files are only read/processed by qmail-local.  
vdelivermail only looks at accounts (in whatever backend you're using) 
and possibly valias entries in a database.


Rick, can you put this somewhere in the documentation:

VDELIVERMAIL SHOULD ONLY APPEAR IN YOUR .qmail-default FILE.  IF YOU PUT 
IT ELSEWHERE, IT WILL NOT DO WHAT YOU EXPECT IT TO DO.


Solution:

echo #  .qmail-kindred-clamav

Or to bounce the email:

echo |/var/qmail/bin/bouncesaying 'Invalid account'  
.qmail-kindred-clamav



already done...

from README.vdelivermail

In summary... the .qmail-default of every virtual domain MUST contain 
ONLY a single line that executes vdelivermail.  The ONLY place you 
should EVER call vdelivermail is from the .qmail-default file of a 
vpopmail based virtual domain.


Updated documentation should probably be added to the list for version 6.

Rick


Re: [vchkpw] vpopmail or qmail problem?

2007-10-03 Thread Andy
Tom Collins ([EMAIL PROTECTED]) wrote:
 On Oct 3, 2007, at 1:53 AM, Andy wrote:
 jedi padawan.org # cat .qmail-kindred-clamav
 | /var/vpopmail/bin/vdelivermail '' delete
 
 There's your mistake.
 
 What's happening is qmail-local hands the message off to vdelivermail  
 (because you told it to), which looks for an account kindred-clamav  
 (which it does not find), then an account named kindred (which it  
 does) and then delivers to kindred.

Awesome, thanks for spotting this for me.  I didn't know how
vdelivermail worked, and since my default option was to delete mail I
figured the same syntax would work for my situation, so I just copied
the .qmail-default file.

No more spam!  Thank you!

Andy.


[vchkpw] vpopmail or qmail problem?

2007-10-02 Thread Andy
Hey,

I'm running netqmail-1.05 and vpopmail-5.4.16 on Gentoo, but I don't
believe this Gentoo specific (if it is, apologies in advance).

My problem is that for one of my domains I can't seem to get qmail to
follow the right .qmail file. I have an account, e.g. bob, which is
located in /home/vpopmail/domains/example.org/bob and I setup a
.qmail-bob-default in /home/vpopmail/domains/example.org which delivers
to the bob account. This lets me use any email address in the format
[EMAIL PROTECTED] and it will all end up in the same account. Its
perfect for one-time email addresses you need to see or emails that
might get spammed (like mailing lists).

So I setup one such address, [EMAIL PROTECTED] (clamav mailing
list) and soon enough it started to get spam to it, so I thought i'd
ditch it. Here's my problem, if I setup .qmail-bob-clamav (which will
delete emails) qmail doesn't use it, it still uses .qmail-bob-default
(so I still get the spam).

Am I missing something obvious? I always thought -default was checked
last and I can't see why its not using the exact match on
.qmail-bob-clamav

At first I thought it was because valias was enabled and it was using
aliases/forwards in mysql, but I disabled that option and it hasn't made
a difference.  I've even ditched mysql options completely and it
still doesn't work.

Thanks in advance.
Andy.


Re: [vchkpw] vpopmail or qmail problem?

2007-10-02 Thread Christopher Chan



Am I missing something obvious? I always thought -default was checked
last and I can't see why its not using the exact match on
.qmail-bob-clamav


There was some discussion of enabling such support in vpopmail. If you 
look in your assign file, you will find that your address will become 
domain-bob and qmail-local will be told to look for dot files in 
/home/vpopmail/domains/domain. You are missing the effect of the virtual 
domains in qmail and vpopmail's assign entries.


Re: [vchkpw] vpopmail or qmail problem?

2007-10-02 Thread John Simpson

On 2007-10-02, at 1928, Christopher Chan wrote:



Am I missing something obvious? I always thought -default was checked
last and I can't see why its not using the exact match on
.qmail-bob-clamav


There was some discussion of enabling such support in vpopmail.


i'm not sure, but i suspect the discussion you're thinking of had  
to do with .qmail files within the MAILBOX (i.e. siblings of the  
Maildir folder) rather than in the domain's directory (i.e. one  
level up from the mailbox.) those would have to be processed by  
vdelivermail, while the .qmail files in the domain directory itself  
are processed by qmail-local, before vdelivermail is ever executed.


If you look in your assign file, you will find that your address  
will become domain-bob and qmail-local will be told to look for dot  
files in /home/vpopmail/domains/domain. You are missing the effect  
of the virtual domains in qmail and vpopmail's assign entries.


for messages sent to bob-clamav@, qmail-local looks for the  
following files in the domain's directory:


.qmail-bob-clamav
.qmail-bob-default
.qmail-default
.qmail

as for the original question, i'd have to look at things by hand to  
tell for sure, but it sounds like qmail is skipping the .qmail-bob- 
clamav file for some reason. and knowing qmail like i do, i suspect  
there's nothing wrong with qmail-local except maybe some error or  
warning condition that it's silently ignoring, where we might wish it  
would complain about, so we know what's happening and can fix it.  
maybe the filename is wrong, the .qmail-bob-clamav file isn't  
readable to the vpopmail user, or something... i would need to see  
the UN-EDITED contents, ownerships, and permissions of the users/ 
assign, .qmail-bob-clamav, .qmail-bob-default, and .qmail-default  
files, along with the actual headers (again not edited, hiding domain  
names doesn't serve any purpose) of a message which was incorrectly  
delivered.



| John M. Simpson---   KG4ZOW   ---Programmer At Large |
| http://www.jms1.net/ [EMAIL PROTECTED] |

| http://video.google.com/videoplay?docid=-1656880303867390173 |





PGP.sig
Description: This is a digitally signed message part


Re: [vchkpw] vpopmail or qmail problem?

2007-10-02 Thread Christopher Chan

John Simpson wrote:

On 2007-10-02, at 1928, Christopher Chan wrote:



Am I missing something obvious? I always thought -default was checked
last and I can't see why its not using the exact match on
.qmail-bob-clamav


There was some discussion of enabling such support in vpopmail.


i'm not sure, but i suspect the discussion you're thinking of had to 
do with .qmail files within the MAILBOX (i.e. siblings of the 
Maildir folder) rather than in the domain's directory (i.e. one level 
up from the mailbox.) those would have to be processed by 
vdelivermail, while the .qmail files in the domain directory itself are 
processed by qmail-local, before vdelivermail is ever executed.


I believe that is the one yes so it appears I have the details wrong and 
mixed up what is wrong with Andy's setup :-P