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.


[vchkpw] Unwanted Local Delivery

2006-05-19 Thread Andy BIERLAIR
Hi,

Let's say you have to vpopmail domains: domaina.com, domainb.com with 2
respective email addresses: [EMAIL PROTECTED], [EMAIL PROTECTED]

When A wants to email B it goes locally. Now let's suppose domainb.com has a
different MX record to his company's exchange server but he forgets to
delete the domainb.com from the vpopmail domains. Domaina.com will never see
the MX because it thinks domainb.com is local, although it isn't.

How can I force vpopmail/qmail to deliver it to the right MX instead to a
local zombie domain?

Thanks a lot.

Andy



RE: [vchkpw] Unwanted Local Delivery

2006-05-19 Thread Andy BIERLAIR
Title: Ingo Claro








So you say
that there is no option to simply switch off local delivery and treat
everything as coming from the outside? I guess I have to live with that :)



How would I
do the script based idea below realtime based? I mean, each time an email is
sent from the smtp.





Thanks,



Andy











From: Ingo Claro [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 19, 2006 18:12
To: vchkpw@inter7.com
Subject: Re: [vchkpw] Unwanted
Local Delivery





to get only the domains that don't matches you should
do:

host -t MX $i | egrep
mail1.thiscouldbeme.com|mail2.thiscouldbemetoo.com  /dev/null
21 || echo $i


regards,




 
  
  
  
  
  
  
  
  Ingo Claro F.
  Gerente de Operaciones
  [EMAIL PROTECTED]
  (+56-2) 43 00 155
  
  
  
  Certificado ISO 9001:2000
  
 






Michael Krieger escribió: 

for i in `cat /var/qmail/control/{more,}rcpthosts`; do
 host -t MX $i | egrep
mail1.thiscouldbeme.com|mail2.thiscouldbemetoo.com 21 ||
echo $i
done

Done- will echo everything that does not include your _expression_ in its MX
record. If it has no matches, grep exits 1 and will trigger the
echo. If it matches at least one, then you're set. You can make
more complex expressions or do more tests if you'd like.

-M

Tom Collins [EMAIL PROTECTED]
wrote: 

On May 19, 2006, at 12:46
AM, Andy BIERLAIR wrote:
 How can I force vpopmail/qmail to deliver it to the right MX instead 
 to a
 local zombie domain?

You can't.

You possibly need to write an auditing program that goes through the 
domains in your rcpthosts and morercpthosts and makes a list of domains 
that don't list you as an MX.

--
Tom Collins - [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/
Vpopmail: http://vpopmail.sf.net/










RE: [vchkpw] Unwanted Local Delivery

2006-05-19 Thread Andy BIERLAIR
I am hosting a few hundred domains on that email server and people come and
go. Most people who leave won't drop you a note and the domain stays in
vpopmail.

Even if most of you would say that it is not my fault, it is my
responsibility to guarantee that the email trafic goes where it belongs to.
Today someone almost killed me when he said that he's not getting any mail
from our customers. I immediately knew why: 4 months (!!) ago he had his MX
redirected to his homeserver (MS Exchange) and forgot to tell me that he
doesn't need the mail domain. So he had a few hundred unread messages in a
zombie mailbox that wasn't supposed to be there. Customers don't always
accept technical reasons and that's why I am looking what I can do to make
everybody happy...


Andy

-Original Message-
From: Tom Collins [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 19, 2006 21:24
To: vchkpw@inter7.com
Subject: Re: [vchkpw] Unwanted Local Delivery

On May 19, 2006, at 11:13 AM, Andy BIERLAIR wrote:
 So you say that there is no option to simply switch off local delivery 
 and treat everything as coming from the outside? I guess I have to 
 live with that :)
  
 How would I do the script based idea below realtime based? I mean, 
 each time an email is sent from the smtp.

It will be very difficult to do what you're trying to accomplish, with 
little benefit.

Your server is set up to host email for a particular domain.  If email 
for that domain is delivered to your box, then you should accept it.

It can be delivered locally (someone using your server for smtp relay 
with pop-before-smtp or SMTP AUTH sends to the domain in question).  
This is the version you're trying to catch.

Another SMTP server on the Internet could deliver it to you (this 
should only happen if you're listed as an MX host for the domain).  So 
this one isn't a problem.

Why is it so important for you to do this on your server?  If you're 
hosting someone's email, and they move their email hosting to another 
provider without telling you, is it really your fault if your server 
still accepts their email?

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/




[vchkpw] vpopmail ldap storage

2004-12-17 Thread Andy Masiar
Hi,

I've set up vpopmail with ldap storage and it's working great.
However, I'd like it to store the domain and user information in a
different distinguished name.

For example, right now user information is stored in uid=john,
ou=test.com,o=vpopmail

How would I go about storing it in
uid=john,ou=Users,ou=OxObjects,dc=example,dc=org

It looks like I would have to change the source code, but it seems
pretty simple.

As a side note, I'm trying to integrate www.open-xchange.org into vpopmail.

Thank you for your help.

Andy


[vchkpw] Maildir Size

2004-03-20 Thread Andy BIERLAIR
Hi,

I'm using vpopmail 5.4.3 with mysql.

Something that I am missing is the current maildir size of the pop3 account
(vuserinfo in shell mode and vpopmail table in mysql).

Also have I noticed, that vuserinfo [EMAIL PROTECTED] does not deliver any
kind of current maildir size when the mail is in NOQUOTA modus. In quota
modus you only see percentage, which is nice, but an additionl current
maildir size would be great. For statistical reasons I would peronally like
such a feature.

My question: is such a feature planned for any future release? Is there
already an exisiting feature available and have I just been overseeing it?

Thank you.


Andy




[vchkpw] clamav in .qmail-default

2004-01-31 Thread Andy BIERLAIR
Hi,

is it possible to use clamav as a pipe in .qmail-default and not with
qmail-scanner.pl.
I would like to use it that way, in order to enable/disable some domains
from virus scanning.

Thanks,

Andy BIERLAIR
root eSolutions sàrl



smime.p7s
Description: S/MIME cryptographic signature


RE: [vchkpw] clamav in .qmail-default

2004-01-31 Thread Andy BIERLAIR
Hello,

Thank you for your message.
This is spamassassin you were talking about. I need the same solution for
clamav, or can you handle clamav with spamc too?


Andy BIERLAIR

-Original Message-
From: Ken Jones [mailto:[EMAIL PROTECTED] 
Sent: Saturday, January 31, 2004 18:26
To: [EMAIL PROTECTED]
Subject: Re: [vchkpw] clamav in .qmail-default

On Saturday 31 January 2004 9:52 am, Andy BIERLAIR wrote:
 Hi,

 is it possible to use clamav as a pipe in .qmail-default and not with
 qmail-scanner.pl.
 I would like to use it that way, in order to enable/disable some domains
 from virus scanning.

Sure, you can call it like this:

| spamc -f -u [EMAIL PROTECTED] | /home/vpopmail/bin/vdelivermail '' delete

Ken Jones



smime.p7s
Description: S/MIME cryptographic signature


RE: [vchkpw] Multiple Independent Pipes

2004-01-28 Thread Andy BIERLAIR
Correct me if I am wrong:

If you do this in a .qmail: (one line, no line break)

| script1.pl | script2.pl
(here the result piped into script2.pl depends on the output of script1.pl)

That's different from: (two lines, one line break)

| script1.pl
| script2.pl
(here both deliver independent results)

Correct?


Andy

-Original Message-
From: Jeremy Kitchen [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 28, 2004 07:48
To: [EMAIL PROTECTED]
Subject: Re: [vchkpw] Multiple Independent Pipes

On Mon, 2004-01-26 at 09:33, Andy BIERLAIR wrote:
 Hello,
 
 I am looking for a solution to make multiple independent pipes in qmail
with
 vpopmail. Usually you do independent pipes like this:
 
 .qmail-default
 
 | /usr/local/bin/a-selfmade-script.pl
 | /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox
 
 Now imagine a-self-script.pl breaks and the output is empty. The result
will
 be no delivery.

nope.

they are seperate delivery instructions, try this:

|cat -  /dev/null
|forward [EMAIL PROTECTED]

now, with your theory, nothing will be forwarded to [EMAIL PROTECTED],
when in fact, the entire message will be :)

however, if the perl script 'breaks' it should exit 111 to report
temporary failure so it will be tried again, unless errors are simply to
be ignored.

man dot-qmail

-Jeremy

-- 
Jeremy Kitchen
Systems Administrator
[EMAIL PROTECTED]
Kitchen @ #qmail on EFNet - Join the party!
.
Inter7 Internet Technologies, Inc.
www.inter7.com
866.528.3530 toll free
847.492.0470 int'l
847.492.0632 fax
GNUPG key ID: 93BDD6CE



smime.p7s
Description: S/MIME cryptographic signature


[vchkpw] Multiple Independent Pipes

2004-01-26 Thread Andy BIERLAIR
Hello,

I am looking for a solution to make multiple independent pipes in qmail with
vpopmail. Usually you do independent pipes like this:

.qmail-default

| /usr/local/bin/a-selfmade-script.pl
| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox

Now imagine a-self-script.pl breaks and the output is empty. The result will
be no delivery.

It there a way to treat incoming mail with two pipes independently? One
Input - 2 or more outputs. I hope you get my point.

Thanks for helping.

Regards,

Andy BIERLAIR
root eSolutions sàrl



smime.p7s
Description: S/MIME cryptographic signature


[vchkpw] dot-qmail in virtual user directory

2002-11-18 Thread Andy Bradford
Folks,

Is there a reason why vdelivermail will deliver to

/home/vpopmail/domains/domain.dom/user/.qmail

but it won't deliver to

/home/vpopmail/domains/domain.dom/user/.qmail-test

Thanks

Andy
--
GnuPG ID 0xA63888C9 (D2DA 68C9 BB2B 26B4 8204  2219 A43E F450 A638 88C9)
[---[system uptime]]
  2:44pm  up 169 days, 23:03,  2 users,  load average: 1.00, 1.00, 1.00




[vchkpw] vdelivermail and dot-qmail in virtual user directory.

2002-11-16 Thread Andy Bradford
Folks,

I think that the way  vdelivermail handles dot-qmail files is incorrect,
or I've  missed something  in the  documentation. I  have a  system with
--enable-qmail-ext=y,  however, dot-qmail  files in  the virtual  user's
directory are not read. For example, if I create:

/home/vpopmail/domains/domain.dom/andy/.qmail

vdelivermail will execute the instructions  in there just fine, however,
if I then create:

/home/vpopmail/domains/domain.dom/andy/.qmail-test

It  will not  even  consider  that file  and  instead  will execute  the
instructions  in  the  original  .qmail file  in  that  directory.  This
seems  incorrect to  me. If  it is  going to  support a  .qmail file  in
domains/domain.dom/user, why doesn't it  support extensions in that same
directory?

Yes, I am aware that

/home/vpopmail/domains/domain.dom/.qmail-andy-test

does work,  but I  find this less  intuitive and not  in line  with what
dot-qmail implements.

Andy
-- 
GnuPG ID 0xA63888C9 (D2DA 68C9 BB2B 26B4 8204  2219 A43E F450 A638 88C9)
[---[system uptime]]
  1:41pm  up 167 days, 22:01,  6 users,  load average: 1.16, 1.36, 1.50






RE: [vchkpw] Spamassassin per user (MySQL)

2002-11-16 Thread Andy BIERLAIR
First intersting thing would probably be the integration of .qmail files
from each user into mysql and maybe even .qmail-default

e.g.

~vpopmail/domain/postmaster/.qmail
~vpopmail/domain/any_user/.qmail

My primary objective is getting rid of all the flat files (except the
Maildir of course)



Andy






RE: [vchkpw] Spamassassin per user (MySQL)

2002-11-16 Thread Andy BIERLAIR
I think there is a difference between
.qmail
.qmail-default
.qmail-aliasname

.qmail files are not supported in MySQL as far as I know.
It's only .qmail-aliasname that is supported (for aliases and
forwards)
-- see valias table in mysql

.qmail files are always located in a users directory.

I use .qmail (user based) and .qmail-default (domain wide) to configure
the way incoming emails are being checked (with or w/o spamassassin,
etc...). 

Unfortunatley this is still being done through shell and that's what I
am trying to get rid of (hopefully totally) with a pure PHP frontend.

Correct me if I'm wrong with the .qmail statement


Andy






[vchkpw] Spamassassin per user (MySQL)

2002-11-15 Thread Andy BIERLAIR
I combine Spamassassin with MySQL and it seems to work just fine on a
domain-wide installation. My .qmail-default (for domain-wide filtering)
looks like this:

/usr/local/bin/spamc -f -u $EXT@$HOST | /home/vpopmail/bin/vdelivermail
'' bounce-no-mailbox

This is OK, but I would like to have it differently:

1. Have it user based and just using it domain-wide if the domain
administrator wishes to (to reduce the overhead)

2. User based I would like to get rid of flat .qmail files and JUST use
MySQL to check wether a specific user want to be filtered and if yes
then get the spamfilter settings.

Normally it would be quite simple to have Step 1 configured, but since I
want to migrate vpopmail totally into MySQL (for different PHP Frontends
and other administrative purpose) this might be a little bit more
complicated.

If there is no straightforward solution on that issue, is it possible to
set the domain-wide spamassassin config (
/etc/mail/spamassassin/local.cf ) NOT to check spam by default and then
override these settings per user from MySQL? In that case I could leave
.qmail-default as it is and still having a user based filtering.

Has anyone worked with that so far? I know that this is not the usual
way to user Spamassassin but there might be people out there who have
the same thoughts about MySQL ease as I.

Thanks for giving clues.


Andy





[vchkpw] Authentication based on alias names

2002-09-04 Thread Andy Johnson


Is it possible to have users authenticate using their alias names? I've
scoured the net in hopes of finding some patch or hack, only to come up
empty handed. I've got the mysql authentication module enabled. I was
wondering if anyone has tried, or if its feasible to have vchkpw check
against aliases in the event the username does not match. If anyone has any
ideas please let me know.

-Andy Johnson





Pop logging to MySQL

2001-12-04 Thread Andy Abshagen

I have vpopmail 5.0 running with logging to MySQL.  However the
Timestamp field contains numbers like 1007484409.  Is there a way to
decipher that to an actual time and date?

Thanks
Andy Abshagen
System Administrator
Data-Vision, Inc.
www.d-vision.com, [EMAIL PROTECTED]
219-243-2125 x306, 888-925-8625




using .qmail-default to forward an entire domain to a single user

2000-11-03 Thread Andy Abshagen

We are trying to setup qmail with qmailadmin and vpopmail to allow
forwarding of an entire domain (via .qmail-default I would assume) to a
single email account which does not exist on our server.  We have many
domains which we do this for.  My original thought was to create a user say
info and then setup forwarding for that account to the correct  place.
However when I set them as the catch-all account in qmail admin it does a
delivery directly to the mailbox.
Well after finding out this didn't work I tried changing qmailadmin and
vpopmail to put email addresses into .qmail-default instead of direct
deliveries.  However again this poses a problem for the domains that
actually have pop accounts on the server.  It for some reason totally
ignores them and delivers everything to the default account.  Which then
tries to deliver to itself and is returned back to the sender as having a
circular loop.
Is there some other way of doing this that I'm missing?  If so please
explain.

Andy




Re: Problem with C program for Signup

2000-08-23 Thread andy

Harsha-

Like previously mentioned, it's a problem with permissions.  Your web
server is probably running as the user "nobody" and you need root
permissions to add a user.  The quickest and (somewhat) safe method to do
this is to get the package called "sudo" and give the user "nobody" rights
to run vadduser.

-Andy
[EMAIL PROTECTED]

[EMAIL PROTECTED] writes:

 Hi,
 
 I have written a C program to create a s new user on a vpopmail domain,
 which is run from the command line. This works fine.
 
 Now I need to let a user signup himself by cliacking a link "Sign me up
 now". The sign up page has four text fields - UserID, password1, password2
 and the user's RealName. Up on submit the values are posted to a C progam
 (almost similar to the above mentioned) which takes the parameters
 correctly.
 
 But strangely in this case, the function vadduser fails to add the user to
 the specified domain. It should have worked. I could'nt figure out why its
 failing.
 
 The parameters are...
 vadduser(userid, domain, password, realname);
 
 Can any body tell me why??
 
 sincerely,
 Harsha