[vchkpw] valias problem

2011-01-20 Thread Igor Smitran

I am using vpopmail 5.4.32.
Few days ago i have noticed an error in valias.
If vpopmail is configured with --enable-valias then it doesn't do 
aliases right.


For example:
i...@domain.tld is an alias, there is no maildir for that account, and 
it is forwarded to someu...@domain.tld

info-someth...@domain.tld is a real account with maildir.

if vpopmail is configured to keep valias data in database then all 
emails sent to i...@domain.tld will be forwarded to someu...@domain.tld, 
but all emails to info-someth...@domain.tld will be forwarded to 
someu...@domain.tld too!


If vpopmail is configured to use .qmail files everything works as 
expected, no errors.


Igor

!DSPAM:4d37ef9a32711602115399!



Re: [vchkpw] valias problem

2011-01-20 Thread Matt Brookings
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 01/20/2011 02:17 AM, Igor Smitran wrote:
 if vpopmail is configured to keep valias data in database then all
 emails sent to i...@domain.tld will be forwarded to
 someu...@domain.tld, but all emails to info-someth...@domain.tld will
 be forwarded to someu...@domain.tld too!

Are you sure you do not have --enable-qmail-ext configured?
- -- 
/*
Matt Brookings m...@inter7.com   GnuPG Key FAE0672C
Software developer Systems technician
Inter7 Internet Technologies, Inc. (815)776-9465
*/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk04T4UACgkQIwet2/rgZyx30QCeLekxAhbOFEfYfEinmVUGmtwY
sQ8AnA51NZgwvw9FdNVL71cpdVNIV+8Q
=gTeQ
-END PGP SIGNATURE-


Re: [vchkpw] valias problem with .qmail-default files

2004-05-06 Thread Jason 'XenoPhage' Frisvold
On Wed, 2004-05-05 at 10:29, lola wrote:
 this is a known problem and afaik not solved yet.

Ugh.. I was afraid of that...

 here is my workaround which works for me:
 
 # no | here:
 
 VPOP=/home/vpopmail/bin/vdelivermail '' bounce-no-mailbox
 
 # user xfilter instead of to
 
 xfliter $VPOP
 EXITCODE=0
 exit

So, then, is this correct? :

VPOP=/home/vpopmail/bin/vdelivermail '' bounce-no-mailbox
VHOME=`/home/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED]

if (/^X-Spam-Status: *YES/)
{
# try delivering it to a Spam folder
exception {
# Check for an existing Spam folder, create one if it
does not exist
`if [ ! -d $VHOME/Maildir/.Spam/ ]; \
then \
   /usr/bin/maildirmake -f Spam $VHOME/Maildir; \
fi`
# Deliver the message to the Spam folder
xfilter $VHOME/Maildir/.Spam/
EXITCODE=0
exit
}
# ah well, I guess they'll just have to live with disappointment
exception {
xfilter $VPOP
EXITCODE=0
exit
}
}
else
{
exception {
xfilter $VPOP
EXITCODE=0
exit
}
}



-- 
---
Jason 'XenoPhage' Frisvold
Engine / Technology Programmer
[EMAIL PROTECTED]
RedHat Certified - RHCE # 803004140609871
MySQL Pro Certified - ID# 207171862
MySQL Core Certified - ID# 205982910
---
Something mysterious is formed, born in the silent void. Waiting alone
and unmoving, it is at once still and yet in constant motion. It is the
source of all programs. I do not know its name, so I will call it the
Tao of Programming.


signature.asc
Description: This is a digitally signed message part


Re: [vchkpw] valias problem with .qmail-default files

2004-05-06 Thread lola
using xfilter without the   works for me.

lola

 Von: Jason 'XenoPhage' Frisvold [EMAIL PROTECTED]
 Antworten an: [EMAIL PROTECTED]
 Datum: Thu, 06 May 2004 06:26:22 -0400
 An: [EMAIL PROTECTED]
 Betreff: Re: [vchkpw] valias problem with .qmail-default files
 
 On Wed, 2004-05-05 at 10:29, lola wrote:
 this is a known problem and afaik not solved yet.
 
 Ugh.. I was afraid of that...
 
 here is my workaround which works for me:
 
 # no | here:
 
 VPOP=/home/vpopmail/bin/vdelivermail '' bounce-no-mailbox
 
 # user xfilter instead of to
 
 xfliter $VPOP
 EXITCODE=0
 exit
 
 So, then, is this correct? :
 
 VPOP=/home/vpopmail/bin/vdelivermail '' bounce-no-mailbox
 VHOME=`/home/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED]
  
 if (/^X-Spam-Status: *YES/)
 {
   # try delivering it to a Spam folder
   exception {
   # Check for an existing Spam folder, create one if it
 does not exist
   `if [ ! -d $VHOME/Maildir/.Spam/ ]; \
   then \
  /usr/bin/maildirmake -f Spam $VHOME/Maildir; \
   fi`
   # Deliver the message to the Spam folder
   xfilter $VHOME/Maildir/.Spam/
   EXITCODE=0
   exit
   }
   # ah well, I guess they'll just have to live with disappointment
   exception {
   xfilter $VPOP
   EXITCODE=0
   exit
   }
 }
 else
 {
   exception {
   xfilter $VPOP
   EXITCODE=0
   exit
   }
 }
 
 
 
 -- 
 ---
 Jason 'XenoPhage' Frisvold
 Engine / Technology Programmer
 [EMAIL PROTECTED]
 RedHat Certified - RHCE # 803004140609871
 MySQL Pro Certified - ID# 207171862
 MySQL Core Certified - ID# 205982910
 ---
 Something mysterious is formed, born in the silent void. Waiting alone
 and unmoving, it is at once still and yet in constant motion. It is the
 source of all programs. I do not know its name, so I will call it the
 Tao of Programming.
 



Re: [vchkpw] valias problem with .qmail-default files

2004-05-06 Thread Jason 'XenoPhage' Frisvold

lola said:
 using xfilter without the   works for me.

*Doh* ..  :)

My biggest concern is how to continue to deliver the spam tagged mail to
the spam mailbox.. can this be done with xfilter or is there some
parameter I can send to vdelivermail to do this?

 lola

---
Jason 'XenoPhage' Frisvold
Engine / Technology Programmer
[EMAIL PROTECTED]
RedHat Certified - RHCE # 803004140609871
MySQL Pro Certified - ID# 207171862
MySQL Core Certified - ID# 205982910
---
Something mysterious is formed, born in the silent void. Waiting alone
and unmoving, it is at once still and yet in constant motion. It is the
source of all programs. I do not know its name, so I will call it the Tao
of Programming.


Re: [vchkpw] valias problem with .qmail-default files

2004-05-05 Thread lola
this is a known problem and afaik not solved yet.

here is my workaround which works for me:

# no | here:

VPOP=/home/vpopmail/bin/vdelivermail '' bounce-no-mailbox

# user xfilter instead of to

xfliter $VPOP
EXITCODE=0
exit



 Von: Jason 'XenoPhage' Frisvold [EMAIL PROTECTED]
 Antworten an: [EMAIL PROTECTED]
 Datum: Wed, 05 May 2004 10:16:38 -0400
 An: [EMAIL PROTECTED]
 Betreff: [vchkpw] valias problem with .qmail-default files
 
 Hi all,
 
 I seem to be having a problem with aliases and vpopmail.  I'm running
 vpopmail 5.4.1 and using the email-toaster as defined by Bill Shupp
 (www.shupp.org/toaster)
 
 The situation is this...  As a default install, vpopmail aliases seem
 to work ok.  However, I wanted to be able to automatically move any spam
 mail, tagged as spam by spamassassin, into a spam folder.  So, I
 modified the .qmail-default file in the domains/mydomain.com folder to
 this :
 
 #| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox
 | /usr/bin/maildrop /home/vpopmail/domains/mailfilter
 
 The first line is set that way to that chkusr works.  The second line
 sends the mail to a maildrop filter.  That filter looks like this :
 
 VPOP=| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox
 VHOME=`/home/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED]
 
 if (/^X-Spam-Status: *YES/)
 {
   # try delivering it to a Spam folder
   exception {
   # Check for an existing Spam folder, create one if it
 does not exist
   `if [ ! -d $VHOME/Maildir/.Spam/ ]; \
   then \
  /usr/bin/maildirmake -f Spam $VHOME/Maildir; \
   fi`
   # Deliver the message to the Spam folder
   to $VHOME/Maildir/.Spam/
   }
   # ah well, I guess they'll just have to live with disappointment
   exception {
   to $VPOP
   }
 }
 else
 {
   exception {
   to $VPOP
   }
 }
 
 
 It appears that any aliases are just being ignored when I have the
 qmail-default file set this way.  If I go into the domain with the
 aliases, and switch the qmail default so that it sends the mail to
 vdelivermail as opposed to maildrop, it works fine!  (even if the mail
 is forwarded to another domain with the original qmail-default file)
   In either case (success or failure), I get the following in my
 qmail log :
 
 delivery 2376: success: vdelivermail:_valiases_processed/did_0+0+1/
 
 Does anyone know how to fix this?  Placing the mail into a spam folder
 is extremely important for us and I cannot lose that functionality!  Any
 help would be greatly appreciated!  If you need me to provide more
 information, please let me know!
 
 Thanks!
 
 -- 
 ---
 Jason 'XenoPhage' Frisvold
 Engine / Technology Programmer
 [EMAIL PROTECTED]
 RedHat Certified - RHCE # 803004140609871
 MySQL Pro Certified - ID# 207171862
 MySQL Core Certified - ID# 205982910
 ---
 Something mysterious is formed, born in the silent void. Waiting alone
 and unmoving, it is at once still and yet in constant motion. It is the
 source of all programs. I do not know its name, so I will call it the
 Tao of Programming.