Re: [qmailadmin] Qmailadmin and .qmail files

2010-11-07 Thread Tom Collins
Take a look at user.c.  You'll want to grep for /autorespond to find the 
three spots where it writes to the .qmail file, and where it parses the 
contents of the qmail file.

If you modify those locations, you should be able to use your 
autorespond-script instead.

-Tom


On Nov 4, 2010, at 9:15 AM, William Olson wrote:

 What my issue here is where (or how) does qmailadmin modify the .qmail file? 
 I was looking at the source of qmailadmin (latest) and I was looking at both 
 autorespond.c and .h and I cannot figure this out. Another idea I had was to 
 have a wrapper around autorespond. I just wanted to get some ideas from all 
 of you.
 
 Please let me know if you need any additional information. Thank you for your 
 time.


!DSPAM:4cd6e88632711576610790!



[qmailadmin] Qmailadmin and .qmail files

2010-11-04 Thread William Olson
Hello,

I have been running the freebsdrocks.net website for several years now and I
have a client that is asking me if there is a way to tell the autoresponder
not to reply to spams. I did some digging and I found this artcile via
Google:

http://meepzor.com/packages/autoresponder/

I was looking at the examples at the bottom and then and I saw this:

- SNIP -
EXAMPLES

All of these examples are of usage in *.qmail* files, and assume that the *
autoresponder* script is invoked using the following single line in the *
.qmail* file:

*| /home/doe/autoresponder-script*

 This is because *.qmail* files cannot contain continuation lines.
Therefore, the examples show modifications to the
*autoresponder-script*file, not the
*.qmail* file proper.

If */home/doe/autoresponder-script* contains:
*#!/bin/sh
/home/doe/autoresponder \
--from=john@nowhere.com \
--no-reply-to=mailer-dae...@.* \
--ignore-header=X-Spam-Status:^yes \
--subject=On holiday (was: %s) \
--file=$HOME/vacation.txt*This will cause all messages received by the
account to get an response back, *unless* the incoming message came from a
MAILER-DAEMON address *or* the value of the *X-Spam-Status* header field
starts with the word 'yes'. The subject of the response will be altered; if
the original subject was Meeting Tuesday, the subject of the automatic
response would be On holiday (was: Meeting Tuesday). *Note:* If this is
the only entry in the *.qmail* file, no copy of the original message will be
kept. - SNIP -

I am interested MOST in the section that says
*--ignore-header=X-Spam-Status:^yes \
*

Basically the way the freebsdrocks setup works is when a user is created
(via the CLI or qmailadmin itself)  the files from ~vpopmail/skel are copied
to the users home dir. This includes a .qmail file (contents are | preline
-f /usr/local/bin/maildrop mailfilter ) and the mailfilter as well as a
Maildir with a .Spam folder in it. The way this works is if Spams come in
they are automagically filtered.

What my issue here is where (or how) does qmailadmin modify the .qmail file?
I was looking at the source of qmailadmin (latest) and I was looking at both
autorespond.c and .h and I cannot figure this out. Another idea I had was to
have a wrapper around autorespond. I just wanted to get some ideas from all
of you.

Please let me know if you need any additional information. Thank you for
your time.

Bill

http://www.goodcleanemail.com
http://www.freebsdrocks.net


!DSPAM:4cd2dc3a32714210113152!


[qmailadmin] Qmailadmin and .qmail files

2006-08-30 Thread shacky83
Hi.
I'm using Qmailadmin 1.2.9 and Vpopmail 5.4.9 on a server running Netqmail 1.05.
I created some mailbox and then I created some .qmail-myuser files in 
/home/vpopmail/domains/mydomain.com/ to make Procmail working with vpopmail 
users.
As I read on a Vpopmail+Procmail howto, I created some .qmail-myuser files with 
this content:

| preline /usr/bin/procmail -t 
/home/vpopmail/domains/mydomain.com/myuser/.procmailrc

The .procmailrc file contains some Procmail rules.

The problem is that now I can't manage the mailboxes in Qmailadmin, because I 
see all of them as forward, not as mailboxes like they are. I see the mailbox 
in the forward list in Qmailadmin with  preline /usr/bin/procmail -t 
/home/vpopmail/domains/mydomain.com/myuser/.procmailrc as destination.

How I can solve this problem?

Thank you very much and goodbye.



___
Prestiti da 15 istituti. Tan dal 5,90% per richieste entro il 15 Settembre. 
Servizio gratuito.
http://click.libero.it/mutuionline3