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 BrookingsGnuPG 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-


[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!



[vchkpw] valias and mysql

2009-05-12 Thread Bob Hutchinson
I have recently upgraded vpopmail from vpopmail-5.4.18 to vpopmail-5.4.27 and 
have configured it to use mysql. I am running a stock shupp toaster.
vconvert converted the popboxes just fine, but the .qmail-xxx aliases have 
remained where they are and work OK. Qmailadmin was recompiled afterwards and 
now cannot see the .qmail files.
Is there a utility to convert the .qmail files and what happens to the more 
complex ones, or should I just recompile vpopmail without --enable-valias?
Any suggestions welcome ;-)


-- 
-
Bob Hutchinson
Midwales dot com
-

!DSPAM:4a0953e732684219510808!



Re: [vchkpw] valias questions

2009-01-08 Thread lc . americo
2009/1/8 Wouter van der Schagt 

> Good morning all,
>
> First of all, happy new year!
> Second, I have some questions about valias. I understand the syntax is:
>
> valias -i  
>
> 1. Does the alias have to be a domain on the server and is checking to see
> if this is the case enforced? Or do i have to manually add it to the
> morercpthosts file as well?
>
> 2. If I want to add multiple aliases for the same destination do I issue
> the same command twice (or more) or can i add it in one command?
>
> 3. When adding an alias, does the popbox have to exist if it is a local
> domain?
>
> 4. How does valias work together with .qmail- files?
>
> Sincerely,
> - Wouter van der Schagt
>
>
> 
>
>


!DSPAM:4965ce6532674051639483!


Re: [vchkpw] valias questions

2009-01-08 Thread Camille Ollié

Wouter van der Schagt a écrit :

Good morning all,

First of all, happy new year!
Second, I have some questions about valias. I understand the syntax is:

valias -i  

1. Does the alias have to be a domain on the server and is checking to 
see if this is the case enforced? Or do i have to manually add it to the 
morercpthosts file as well?


2. If I want to add multiple aliases for the same destination do I issue 
the same command twice (or more) or can i add it in one command?


3. When adding an alias, does the popbox have to exist if it is a local 
domain?


4. How does valias work together with .qmail- files?

Sincerely,
- Wouter van der Schagt



Hello,

1 - I may misunderstand, but when you create an alias, the alias domain 
must be hosted by your MX server. The destination domain can be anyone else.


2 - Never tried ^^

3 - I don't understand this point.

4 - Vpopmail is writing a .qmail-alias in the directory of the real 
mailbox (ie .qmail-norep in the postmaster directory) which contain the 
destination address as this : &u...@domain.com


Hope this help you

--
Camille Ollié
www.forum-pc.net / www.scoot-boost.com
Elfrier  @ EU-Kirin Tor

!DSPAM:4965c19d32674270911242!



[vchkpw] valias questions

2009-01-07 Thread Wouter van der Schagt

Good morning all,

First of all, happy new year!
Second, I have some questions about valias. I understand the syntax is:

valias -i  

1. Does the alias have to be a domain on the server and is checking to see 
if this is the case enforced? Or do i have to manually add it to the 
morercpthosts file as well?


2. If I want to add multiple aliases for the same destination do I issue the 
same command twice (or more) or can i add it in one command?


3. When adding an alias, does the popbox have to exist if it is a local 
domain?


4. How does valias work together with .qmail- files?

Sincerely,
- Wouter van der Schagt


!DSPAM:49659f0132671282735280!



Re: [vchkpw] valias / extension address question

2005-02-23 Thread Leto Tokarev
> > Now emails sent to [EMAIL PROTECTED] getting delivered to 
> > [EMAIL PROTECTED]
> > How can I prevent this?
> 
> Mail sent to 'user-name' should go into that box.  Mail to 
> 'user-anythingelse' will go to user.

Nope. 'user-name' box always empty, getting no mail.
 
> > I'd like to have [EMAIL PROTECTED] higher preference, or similar.
> 
> It should be.  If you send an email directly to [EMAIL PROTECTED], 
> is it going to [EMAIL PROTECTED]

Yes.
The --disable-qmail-ext option cures the problem or course. 



Leto



Re: [vchkpw] valias / extension address question

2005-02-22 Thread Tom Collins
On Feb 22, 2005, at 7:00 AM, Leto Tokarev wrote:
[EMAIL PROTECTED] valias -s [EMAIL PROTECTED]
[EMAIL PROTECTED] -> [EMAIL PROTECTED]
Does this have anything to do with the problem you're having below?  
Mail sent to 'x' will go to 'user'.

I have another box, named
[EMAIL PROTECTED]
Now emails sent to [EMAIL PROTECTED] getting delivered to 
[EMAIL PROTECTED]
How can I prevent this?
Mail sent to 'user-name' should go into that box.  Mail to 
'user-anythingelse' will go to user.

I'd like to have [EMAIL PROTECTED] higher preference, or similar.
It should be.  If you send an email directly to [EMAIL PROTECTED], 
is it going to [EMAIL PROTECTED]

--
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] valias / extension address question

2005-02-22 Thread Leto Tokarev
> I'd like to have [EMAIL PROTECTED] higher preference, or similar.

Sorry:

vpopmail 5.4.9 with --enable-qmail-ext



Leto



[vchkpw] valias / extension address question

2005-02-22 Thread Leto Tokarev
Hi!


Scenario:

[EMAIL PROTECTED] valias -s [EMAIL PROTECTED]
[EMAIL PROTECTED] -> [EMAIL PROTECTED]

I have another box, named   

[EMAIL PROTECTED]

Now emails sent to [EMAIL PROTECTED] getting delivered to [EMAIL PROTECTED]
How can I prevent this?

I'd like to have [EMAIL PROTECTED] higher preference, or similar.

TIA;;



Leto



Re: [vchkpw] valias

2005-01-07 Thread Tom Collins
On Jan 5, 2005, at 7:08 AM, mkinikoglu wrote:
so how can i create an alias in valias table for this type .qmail 
alias?
Use vpopmail's valias program.
Or, create it directly in the table.  Note that domain name shouldn't 
include '@', and the alias line needs to start with "|" if it's a 
program delivery.

listname - group.com - |/home/sympa/queue [EMAIL PROTECTED]
--
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] valias

2005-01-05 Thread mkinikoglu
hi all

 

i use mysql +vpopmail.

i have valias table and it works.

 

in qmail i have an alias file like this

# cat .qmail-listname

|/home/sympa/bin/queue listname@mynetgrup.com

 

so how can i create an alias in valias table for this type .qmail
alias?

 

is it possible to create a row like this : 

 

listname - @group.com - /home/sympa/queue [EMAIL PROTECTED]

 

i tried it but it didn't work. is there anyway to do this?

 

thanks

 



Ömür boyu değişmeyecek email adresinizi şimdi
alın: Mynet Email Plus





[vchkpw] valias questions....

2004-08-20 Thread shadowplay.net
issue two...

the system does not forward mail to 
multiple recipients of
an alias listed in the valias table... 

eg... 
table data of ... 

somealias domain.com./Maildir
somealias   domain.com  [EMAIL PROTECTED]
somealias domain.com[EMAIL PROTECTED]

most notably it never arrives in the ./Maildir
no errors are reported

this is the equivelent of a multi line 
.qmail-somealias file 

with the contents of ... 
./Maildir
[EMAIL PROTECTED] 
[EMAIL PROTECTED]

how would one go about adding a valias record that 
accomidates delivery to the popaccount
and forwarding to other acounts

kenneth gf brown




Re: [vchkpw] valias catch-all

2004-05-16 Thread Tom Collins
On May 16, 2004, at 4:22 PM, Ewan Bain wrote:
On Friday 14 May 2004 9:40 pm, Tom Collins wrote:
On May 14, 2004, at 10:20 AM, Ewan Bain wrote:
I'm trying to use valias to setup a catch-all address. I've tried
several
different ways and the mail always bounces. Is it possible to setup a
catch-all with valias? Is so how?
The catchall is in .qmail-default.  Delivery is handled by 
qmail-local,
and vdelivermail (and the valiases it processes) are not involved.
I can't believe I actually wrote that.
vdelivermail is most definitely involved in catchall delivery.
I guess what I was trying to say was that adding a valias for user 
'default' won't work.  The catchall user must be specified as the 
second parameter to vdelivermail in the .qmail-default file.

--
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] valias catch-all

2004-05-16 Thread Rick Widmer

Ewan Bain wrote:
On Friday 14 May 2004 9:40 pm, Tom Collins wrote:
On May 14, 2004, at 10:20 AM, Ewan Bain wrote:
I'm trying to use valias to setup a catch-all address. I've tried
several
different ways and the mail always bounces. Is it possible to setup a
catch-all with valias? Is so how?
The catchall is in .qmail-default.  Delivery is handled by qmail-local,
and vdelivermail (and the valiases it processes) are not involved.

Maybe I'm not understanding or I didn't make myself clear. If I understand 
correctly, qmail will look in the users home directory for a .qmail file 
matching the address it would normally find nothing so uses the 
.qmail-default file. This then runs vdelivermail which checks for a virtual 
user to deliver the mail to. This could either be a vpopmail Mailbox or a 
valias address in the valias table (I'm using MySQL). In what order are these 
checked? If vdelivermail finds nothing qmail will then look at what comes 
next in the .qmail-default file and in this case bounce the mail. I know I 
can add an address to the .qmail-default file to act as a catch all but it 
would be easier to add a catch all to the valias table and have vdelivermail 
deal with it like any other valias. Is this possible? I've tried "default", " 
",  "*" and nothing works.
Forget qmail.  It has nothing to do with catchall account handling. 
Catchall status is a parameter to the vdelivermail program commonly 
called in the file .qmail-default.  Its legal values are:

   delete
   bounce-no-mailbox
   /path/to/a/Maildir
   [EMAIL PROTECTED]
.qmail-default
-
!/path/to/vdelivermail '' CATCHALL_OPTION
-
There is no wildcard support in valias.



Re: [vchkpw] valias catch-all

2004-05-16 Thread Ewan Bain
On Friday 14 May 2004 9:40 pm, Tom Collins wrote:
> On May 14, 2004, at 10:20 AM, Ewan Bain wrote:
> > I'm trying to use valias to setup a catch-all address. I've tried
> > several
> > different ways and the mail always bounces. Is it possible to setup a
> > catch-all with valias? Is so how?
>
> The catchall is in .qmail-default.  Delivery is handled by qmail-local,
> and vdelivermail (and the valiases it processes) are not involved.
>

Maybe I'm not understanding or I didn't make myself clear. If I understand 
correctly, qmail will look in the users home directory for a .qmail file 
matching the address it would normally find nothing so uses the 
.qmail-default file. This then runs vdelivermail which checks for a virtual 
user to deliver the mail to. This could either be a vpopmail Mailbox or a 
valias address in the valias table (I'm using MySQL). In what order are these 
checked? If vdelivermail finds nothing qmail will then look at what comes 
next in the .qmail-default file and in this case bounce the mail. I know I 
can add an address to the .qmail-default file to act as a catch all but it 
would be easier to add a catch all to the valias table and have vdelivermail 
deal with it like any other valias. Is this possible? I've tried "default", " 
",  "*" and nothing works.

Thanks,
Ewan.




Re: [vchkpw] valias catch-all

2004-05-14 Thread Tom Collins
On May 14, 2004, at 10:20 AM, Ewan Bain wrote:
I'm trying to use valias to setup a catch-all address. I've tried 
several
different ways and the mail always bounces. Is it possible to setup a
catch-all with valias? Is so how?
The catchall is in .qmail-default.  Delivery is handled by qmail-local, 
and vdelivermail (and the valiases it processes) are not involved.

--
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] valias catch-all

2004-05-14 Thread Ewan Bain
Hi,

I'm trying to use valias to setup a catch-all address. I've tried several 
different ways and the mail always bounces. Is it possible to setup a 
catch-all with valias? Is so how?

Thanks,
Ewan.


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-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
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-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."
> 



[vchkpw] valias problem with .qmail-default files

2004-05-05 Thread Jason 'XenoPhage' Frisvold
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."


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


[vchkpw] valias support for qmailadmin (was qmailadmin 1.2.0 and mysql problem)

2004-02-01 Thread Tom Collins
On Feb 1, 2004, at 10:07 AM, Jeff Koch wrote:
Are these versions of vpopmail and qmailadmin supposed to have 
compatible Mysql support ? or could we have done something wrong in 
the install/compile/configuration?
You are correct that the release version of QmailAdmin 1.2.0 did not 
properly support valiases in MySQL.

The good news is that I have working code going into QmailAdmin 1.2.1 
which completely supports it.  ACIS Pty Ltd in Australia sponsored 
development of the code, and have been using it for about 2-3 weeks.  
Since QmailAdmin was in "release candidate" status, I couldn't add the 
changes to that release.

I'll try to get it pushed into CVS soon, and make a pre-release of 
1.2.1 available in the next few days.

I also wrote a program for vpopmail called "dotqmail2valias" that will 
convert .qmail-alias style aliases to valias table entries.  That will 
be going into 5.4.1 (but I need to get 5.4.0 out first).

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter handheld Network Tester: http://sniffter.com/


Re: [vchkpw] valias and mysql Can't find .qmail text

2003-11-23 Thread Tom Collins
On Saturday, November 22, 2003, at 03:41  PM, Ron Dyck wrote:
I've setup vpopmail 5.3.29 with --enable-mysql=y and --enable-valis=y. 
I
have setup QmailAdmin and manage the forwards/alias from it.

Now I'm looking for the .qmail data. I see a valias table in the 
vpopmail db
but it's empty. There is a functioning forward setup but I can't find a
.qmail file anywhere.

Exactly how does .valias change the default setup?
Qmailadmin isn't compatible with valias code in vpopmail at this time.  
It still uses .qmail-user files in the domain directory for aliases and 
forwards.

In addition to switching to valiases in qmailadmin, there probably 
needs to be a tool to convert the old-style aliases over to valiases.

--
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] valias and mysql Can't find .qmail text

2003-11-22 Thread Ron Dyck
I've setup vpopmail 5.3.29 with --enable-mysql=y and --enable-valis=y. I
have setup QmailAdmin and manage the forwards/alias from it.

Now I'm looking for the .qmail data. I see a valias table in the vpopmail db
but it's empty. There is a functioning forward setup but I can't find a
.qmail file anywhere.

Exactly how does .valias change the default setup?

ron

==
Ron Dyck
Webbtech
www.webbtech.net
==





Re: [vchkpw] valias

2003-10-15 Thread Tom Collins
On Friday, October 24, 2003, at 04:56  AM, Remo Mattei wrote:
I have this problem with valias any suggestion :-)

italy1.com new 181 --> valias -i [EMAIL PROTECTED] 
[EMAIL PROTECTED]
italy1.com new 182 --> valias -i [EMAIL PROTECTED] [EMAIL PROTECTED]
Error: alias [EMAIL PROTECTED] -> [EMAIL PROTECTED] already exists.
italy1.com new 183 --> valias -s italy1.com
[EMAIL PROTECTED] -> [EMAIL PROTECTED]
That was a bug fixed in 5.3.28 (see bug tracker 807935).  There were 
many other bug fixes as well, so you might want to upgrade to it.

You could also just download valias.c from the cvs repository to 
replace your current version, then recompile and reinstall it.

--
Tom Collins  -  [EMAIL PROTECTED]
Note: The Tom Logic offices will be closed October 23 to November 18.
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/



[vchkpw] valias

2003-10-15 Thread Remo Mattei
I have this problem with valias any suggestion :-)

italy1.com new 181 --> valias -i [EMAIL PROTECTED] [EMAIL PROTECTED]
italy1.com new 182 --> valias -i [EMAIL PROTECTED] [EMAIL PROTECTED]
Error: alias [EMAIL PROTECTED] -> [EMAIL PROTECTED] already exists.
italy1.com new 183 --> valias -s italy1.com
[EMAIL PROTECTED] -> [EMAIL PROTECTED]


when I try to add the new alias it tells me that it's already there!! If I
delete them all and I flip that then I cannot add hotelclitunno since it
tells me it already exists...


Remo Mattei
Network Security Engineer
cell 801-209-8554
email [EMAIL PROTECTED]

<>

Re: [vchkpw] Valias and maildrop/vdelivermail, and valias bug?

2003-10-02 Thread Tom Collins
On Thursday, October 2, 2003, at 01:52  AM, Robin Bowes wrote:
On my system (5.3.20), valias can return several aliases, particularly 
for ezmlm mailing lists, e.g.:

This will most likely cause problems with your script.
In the script, he isn't using the output of valias, but is checking the 
exit code to see if the alias exists.  Note that the first version of 
valias to set exit codes will be in the 5.3.28 release (planned for 
later today).

--
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] Valias and maildrop/vdelivermail, and valias bug?

2003-10-02 Thread Jeff Hedlund
Jonathan Viney wrote:
I have been pondering this problem for a few days now and can't seem to
find a solution. I am trying to implement per user spam/virus prefs
using maildrop as the delivery agent. It is all working apart from two
problems, aliases ad catchall.
It looks like you are calling the maildrop script from the 
.qmail-default file in the domain, is that correct?

Another solution is to call maildrop from each user's .qmail file.  That 
way, you can avoid having to deal with aliases and the catchall 
altogether.  If you've seen my maildrop filter floating around, I avoid 
using the $EXT variable, instead I break apart the path -- since the 
.qmail file is contained in the .../vpopmail/domains/domain.com/user 
folder, you can get the $EXT and $HOST from the path instead of relying 
on those variables.

Is there a reason you are not calling maildrop from each user's .qmail file?

Jeff
--
  /\  /\  ......[EMAIL PROTECTED]
 /  \/  \ a t r i x  .  .  .  .  .  .  .   (770) 794-7233
 s o f t w a r e  i n c  ......   http://www.matrixsi.com



RE: [vchkpw] Valias and maildrop/vdelivermail, and valias bug?

2003-10-02 Thread Robin Bowes
Jonathan Viney  wrote on 01 October 2003 13:43:
> I am still wondering about the catchall stuff though. If I can check
> valias as well then I could use something like:
>
> VPOP="| ~vpopmail/bin/vdelivermail '' bounce-no-mailbox"
> VHOME=`~vpopmail/bin/vuserinfo -d [EMAIL PROTECTED]
> if ($RETURNCODE != 0) {
>   VALIAS=`~vpopmail/bin/valias -s [EMAIL PROTECTED]
>   if ($RETURNCODE != 0) {
>   VDOMHOME=`~vpopmail/bin/vdominfo -d $HOST`
>   exception {
>   # this .catchall file could have the line
>   # to "! "
>   include "$VDOMHOME/.catchall"
>   }
>   # if the .catchall file didn't exist then bounce with
>   # vdelivermail so msg includes bounce details
>   to "$VPOP"
>   }
> }

On my system (5.3.20), valias can return several aliases, particularly for ezmlm 
mailing lists, e.g.:

[EMAIL PROTECTED] -> |/usr/bin/ezmlm-reject 
'/home/vpopmail/domains/robinbowes.com/acoustics'
[EMAIL PROTECTED] -> |/usr/bin/ezmlm-issubn 
'/home/vpopmail/domains/robinbowes.com/acoustics'
'/home/vpopmail/domains/robinbowes.com/acoustics/digest' '/home/vpopmail/domains/robin
[EMAIL PROTECTED] -> bowes.com/acoustics/allow' 
'/home/vpopmail/domains/robinbowes.com/acoustics/mod' || { echo "Sorry, only
subscribers may post. If you are a subscriber, please f
[EMAIL PROTECTED] -> orward this message to [EMAIL PROTECTED]
m to get your new address included (#5.7.2)"; exit 100 ; }
[EMAIL PROTECTED] -> |/usr/bin/ezmlm-send 
'/home/vpopmail/domains/robinbowes.com/acoustics'
[EMAIL PROTECTED] -> |/usr/bin/ezmlm-warn 
'/home/vpopmail/domains/robinbowes.com/acoustics' || exit 0
lrwxrwxrwx1 vpopmail vchkpw 54 Aug 12  2002 .qmail-acoustics -> 
/home/vpopmail/domains/robinbowes.com/acoustics/editor
lrwxrwxrwx1 vpopmail vchkpw 55 Aug 12  2002 .qmail-acoustics-default ->
/home/vpopmail/domains/robinbowes.com/acoustics/manager
lrwxrwxrwx1 vpopmail vchkpw 53 Aug 12  2002 .qmail-acoustics-owner ->
/home/vpopmail/domains/robinbowes.com/acoustics/owner
lrwxrwxrwx1 vpopmail vchkpw 55 Aug 12  2002 
.qmail-acoustics-return-default ->
/home/vpopmail/domains/robinbowes.com/acoustics/bouncer

This will most likely cause problems with your script.

R.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.522 / Virus Database: 320 - Release Date: 29/09/2003




Re: [vchkpw] Valias and maildrop/vdelivermail, and valias bug?

2003-10-01 Thread Jonathan Viney
Hi,

> What if valias exited with -1 if it's an invalid alias?  I just changed  
> it to do so in the CVS repository, and it will be in 5.3.28.
> 

Cheers, most appreciated :).

I am still wondering about the catchall stuff though. If I can check
valias as well then I could use something like:

VPOP="| ~vpopmail/bin/vdelivermail '' bounce-no-mailbox"
VHOME=`~vpopmail/bin/vuserinfo -d [EMAIL PROTECTED]
if ($RETURNCODE != 0) {
VALIAS=`~vpopmail/bin/valias -s [EMAIL PROTECTED]
if ($RETURNCODE != 0) {
VDOMHOME=`~vpopmail/bin/vdominfo -d $HOST`
exception {
# this .catchall file could have the line 
# to "! "
include "$VDOMHOME/.catchall"
}
# if the .catchall file didn't exist then bounce with
# vdelivermail so msg includes bounce details
to "$VPOP"
}
}

I'll have a play around and try to get this working tomorrow.

This does seem odd to me though.., none of the maildrop scripts I have
seen seem to deal with aliases!

Thanks,

Jonathan





Re: [vchkpw] Valias and maildrop/vdelivermail, and valias bug?

2003-09-30 Thread Tom Collins
On Monday, September 29, 2003, at 11:35  PM, Jonathan Viney wrote:
The problem is that if I put 'to "! "' in the if statement it
will bounce for aliases (because vuserinfo doesn't check if the email  
is
an alias). I could run valias -s  but the valias exit code is
always 0 even if it is an invalid alias.
What if valias exited with -1 if it's an invalid alias?  I just changed  
it to do so in the CVS repository, and it will be in 5.3.28.

So, does anyone know how to make catchalls and aliases work nicely with
maildrop?
Also, I think I found a bug in valias (w/ MySQL). If I run the  
following
commands this is what I get:
That's a known bug (#807935).  I caused it when adding the feature to  
check for existing aliases.  It's fixed in the CVS and will be in  
5.3.28 (to be released sometime this week).  SourceForge's CVS server  
is staying up to date, so you can preview the ChangeLog and other files  
to see what's changed for upcoming releases.

Diff for the insert bug:

http://cvs.sourceforge.net/viewcvs.py/vpopmail/vpopmail/ 
valias.c.diff?r1=1.1&r2=1.2

Diff for the non-zero exit code (may not be available for 24 hours):

http://cvs.sourceforge.net/viewcvs.py/vpopmail/vpopmail/ 
valias.c.diff?r1=1.2&r2=1.3

--
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] Valias and maildrop/vdelivermail, and valias bug?

2003-09-29 Thread Jonathan Viney
Hi,

I have been pondering this problem for a few days now and can't seem to
find a solution. I am trying to implement per user spam/virus prefs
using maildrop as the delivery agent. It is all working apart from two
problems, aliases ad catchall.

Maildrop script (partial):

VPOP="| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox"
# Get home directory to deliver to
VHOME=`/home/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED]

# If it wasn't a valid user, deliver again with vdelivermail 
# in case it is an alias
if ($RETURNCODE != 0)
{
to "$VPOP"
}

The problem is that if I put 'to "! "' in the if statement it
will bounce for aliases (because vuserinfo doesn't check if the email is
an alias). I could run valias -s  but the valias exit code is
always 0 even if it is an invalid alias.

So, does anyone know how to make catchalls and aliases work nicely with
maildrop?

Also, I think I found a bug in valias (w/ MySQL). If I run the following
commands this is what I get:

[EMAIL PROTECTED]:~# /home/vpopmail/bin/valias -s cat.net
[EMAIL PROTECTED]:~# /home/vpopmail/bin/valias -i [EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]:~# /home/vpopmail/bin/valias -i [EMAIL PROTECTED]
[EMAIL PROTECTED]
Error: alias [EMAIL PROTECTED] -> [EMAIL PROTECTED] already exists.
[EMAIL PROTECTED]:~# /home/vpopmail/bin/valias -i [EMAIL PROTECTED]
[EMAIL PROTECTED]
Error: alias [EMAIL PROTECTED] -> [EMAIL PROTECTED] already exists.
[EMAIL PROTECTED]:~# /home/vpopmail/bin/valias -s cat.net
[EMAIL PROTECTED] -> [EMAIL PROTECTED]

valias won't let me add any more than 1 alias to the domain or so it
seems. The valias table shows:

mysql> select * from valias;
+---+-++
| alias | domain  | valias_line|
+---+-++
| dog   | cat.net | [EMAIL PROTECTED] |
+---+-++


Is this a bug or am I missing something?

Cheers,
Jonathan




RE: [vchkpw] valias + mysql

2003-08-03 Thread Shane Chrisp
> 
> I haven't done anything with valiases, but wouldn't you need 
> to include 
> "Maildir" in the path?  Try 
> "/home/vpopmail/domains/domain.com/user/Maildir/".
> 

Yes you are right, however adding the Maildir in the path still 
produces the same result. Its certainly not a big issue as it
works with an email address.

Shane




Re: [vchkpw] valias + mysql

2003-08-03 Thread Tom Collins
On Sunday, August 3, 2003, at 03:15  PM, Shane Chrisp wrote:
but if
you try to deliver
to a directory in the form of /home/vpopmail/domains/domain.com/user/ 
I get
a
Aack,_child_crashed._(#4.3.0).
I haven't done anything with valiases, but wouldn't you need to include 
"Maildir" in the path?  Try 
"/home/vpopmail/domains/domain.com/user/Maildir/".

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



[vchkpw] valias + mysql

2003-08-03 Thread Shane Chrisp
Hi,

I have been trying to get valias to work with mysql and I have found that if
you forward to
an email address ie: [EMAIL PROTECTED] in the valias table it works fine, but if
you try to deliver
to a directory in the form of /home/vpopmail/domains/domain.com/user/ I get
a 
Aack,_child_crashed._(#4.3.0). I have tried this on versions 5.3.20 .21 and
.23. I will work
around this by using the [EMAIL PROTECTED] format, but if anyone has any idea's I
would love to 
hear them.

As a side note, im now running 5.3.23 and it seems to be working well.


Regards

Shane Chrisp
2000 Computers & Networks
3/161 Amazon Drive, Beechboro, W.A. 6063,  Australia.
Ph. +61 8 9377 7677  Fax. +61 8 9377 7540
mob. 0412 409 856
Web. http://www.2000cn.com.au




[vchkpw] valias and vuserinfo

2003-07-23 Thread Remo Mattei
Hello guys I am looking to get information for aliases what command do I
need to get it going, I have a script that will check if a user exist if it
doesn't then it will forward to another box but if it does then it will
deliver the mail locally. Therefore, I uses vuserinfo but I am not sure how
would I check that with aliases. Thanks for any suggestions.



Remo Mattei
Network Security Engineer
cell 801-209-8554
email [EMAIL PROTECTED]

<>

[vchkpw] valias bugs w/patch

2003-07-14 Thread Ole Gjerde
Hi everybody,

I found that there are a couple of serious logic errors in the
valias/vdelivermail code.  In 3 seperate places the return code from
deliver_mail is not checked.  That means that if a valias is local and
can't be delivered, the mail will go into the ether.  Bad stuff.

Patch is attached. Where the return value is currently checked, a
vexit(100) is used.  I use vexit(111) instead, since in my opinion those
are temporary errors and the email shouldn't actually bounce.  Also, I
think MOST of the vexits in vdelivermail.c should be defers.  The only
time it should bounce would be when there is no configured recipient.
Any system error, looping, etc should defer it so when the sysadmin
fixes it the email gets delivered. Other opinions may differ, but that's
mine :)

Ole Gjerde

diff -ur vpopmail-5.3.20-orig/vdelivermail.c vpopmail-5.3.20-new/vdelivermail.c
--- vpopmail-5.3.20-orig/vdelivermail.c	2003-04-05 10:17:15.0 -0600
+++ vpopmail-5.3.20-new/vdelivermail.c	2003-07-11 14:30:26.0 -0500
@@ -279,7 +279,14 @@
 found = 1;
 
 /* deliver the mail */
-deliver_mail(tmpstr, "NOQUOTA");
+int ret = deliver_mail(tmpstr, "NOQUOTA");
+if (ret == -2) {
+printf("system error\n");
+vexit(111);
+} else if (ret == -3) {
+printf("mail is looping");
+vexit(111);
+}
 
 /* Get the next alias for this [EMAIL PROTECTED] */
 tmpstr = valias_select_next();
@@ -301,7 +308,14 @@
 found = 1;
 
 /* deliver the mail */
-deliver_mail(tmpstr, "NOQUOTA");
+int ret = deliver_mail(tmpstr, "NOQUOTA");
+if (ret == -2) {
+printf("system error\n");
+vexit(111);
+} else if (ret == -3) {
+printf("mail is looping\n");
+vexit(111);
+}
 
 /* Get the next alias for this [EMAIL PROTECTED] */
 tmpstr = valias_select_next();
@@ -748,7 +762,14 @@
  */
 if ( strcmp( qmail_line, tmpbuf) == 0 ) continue;
 
-deliver_mail(qmail_line, "NOQUOTA");
+int ret = deliver_mail(qmail_line, "NOQUOTA");
+if (ret == -2) {
+printf("system error\n");
+vexit(111);
+} else if (ret == -3) {
+printf("mail is looping\n");
+vexit(111);
+}
 return_value = 1;
 }
 


[vchkpw] valias usage?

2003-05-31 Thread Dave Richardson - Lists
I'm on vpopmail 5.2.1 with mysql and valias enabled.
I *thought* that valias would allow incoming mail to "[EMAIL PROTECTED]" 
to be delivered to "[EMAIL PROTECTED]" on the local vpopmail system. 
Documentation is a little sparse on this product.

Am I correct in what valias does?
If Yes, how do I implement the exmaple alias above?



[vchkpw] valias problems

2003-03-25 Thread rich



Hi I am having 
troubles with valias, its not sending correctly and I'm =not sure why. here 
are some of my logs=20@40003e80fb9107c4078c status: local 3/10 
remote 0/20@40003e80fb9107c40b74 new msg 
246437@40003e80fb9107c40f5c info msg 246437: bytes 11490 from 
=<[EMAIL PROTECTED]> qp 19581 uid 89@40003e80fb9238bf0fbc 
delivery 277435: success: 
=/home/vpopmail/domains/portwarellc.com,anonymous,portwarellc.com/@40003e80fb9238bf2344 
status: local 2/10 remote 0/20@40003e80fb9238bf272c delivery 277436: 
success: 
=/home/vpopmail/domains/portwarellc.com,anonymous,portwarellc.com/@40003e80fb9238bf2efc 
status: local 1/10 remote 0/20@40003e80fb9238bf32e4 starting delivery 
277438: msg 246452 to local =[EMAIL PROTECTED]@40003e80fb9238bf3ab4 status: local 2/10 
remote 0/20@40003e80fb9238bf6d7c end msg 
246440@40003e80fb9238f513dc end msg 246451@40003e80fb9239272444 
starting delivery 277439: msg 246442 to local =[EMAIL PROTECTED]@40003e80fb92392737cc status: local 3/10 
remote 0/20@40003e80fb9239273bb4 new msg 
246439@40003e80fb9239273f9c info msg 246439: bytes 13905489 from 
=<[EMAIL PROTECTED]> qp 19593 uid 89its being sent to 
[EMAIL PROTECTED][EMAIL PROTECTED] bin]# cat 
/home/vpopmail/domains/portwarellc.com/.qmail-info=20[EMAIL PROTECTED]


[vchkpw] valias questions

2002-11-11 Thread Ron Culler
Has valias (mysql) be integrated with qmailadmin yet?

I know its the wrong list but I'm posting to both to get a response..

Sorry 
Ron 



**
The Firelan(tm) Virus Scanning Service has scanned this email for viruses, vandals 
and malicious content.
http://www.firelan.net
**





[vchkpw] valias-wildcard fix

2002-10-19 Thread Bill Shupp
I think I have a fix for valias wildcard processing (i.e.  
listname-default) in vdelivermail.  Can people that use valias help 
test?

http://shupp.org/patches/wildcard.diff

This patch was done against vpopmail 5.3.8, but might work on earlier 
versions.

NOTE:  This does NOT add wildcard support to the ext feature.  Please 
test with --enable-ext=n.

Cheers,

Bill Shupp




[vchkpw] valias and maildrop question

2002-10-15 Thread John C

I am trying to add a line into the valias table which calls maildrop.

When I add a user with underscores(_) in their name to the table, the
maildrop script is not run.
If I add a user with only letters and/or numbers in their username,
everything works fine.

Any ideas why?  Is there a limitation to valias here?

By they way, dot qmail files with an underscore and this particular maildrop
setup work.  When moved to the database it ceases to work.


Here is an example:


mysql> select * from valias;
+--+-+--
---+
| alias| domain  | valias_line
|
+--+-+--
---+
| teddy_tester | knology.net | | /var/qmail/bin/preline /usr/bin/maildrop
storeSpam.filter |  Does not work
| teddytester  | knology.net | | /var/qmail/bin/preline /usr/bin/maildrop
storeSpam.filter |  Works
+--+-+--
---+
2 rows in set (0.00 sec)


John Councilman
Knology Systems Engineer