Re: [vchkpw] Variable for current delivery address???

2004-12-11 Thread Tom Collins
On Dec 10, 2004, at 5:22 PM, Casey Allen Shobe wrote:
I'm just manually specifying the --user argument in the .qmail files, 
and
everything seems to be working properly now.
That reminds me, I have a patch from David Steinberg that will include 
the user's email address in the spamcommand that QmailAdmin inserts 
into .qmail files, allowing you to do something like | preline -f 
/usr/local/bin/maildrop -d [EMAIL PROTECTED].

I haven't gotten around to adding it yet, but it will be going in soon.
--
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] Variable for current delivery address???

2004-12-10 Thread Casey Allen Shobe
On Thursday 09 December 2004 23:06, Rick Macdougall wrote:
 Yes shell escaping like that does work in maildroprc, or at least 30 of
 my servers think it does :)

Hmm, I tested it out and it _does_ work now.  I must not have been specifying 
the path properly before or something.

I'm just manually specifying the --user argument in the .qmail files, and 
everything seems to be working properly now.

It's a bit of a mystery to me though...if I send myself mail to 
[EMAIL PROTECTED], $EXT is cshobe and $HOST is osss.net, but I get some spam 
where $EXT and $HOST are set to casey and aixos.net - very strange.  Also 
strange is that it will sometimes be allcaps instead of lower-case.

Ahh well, all is working well now.

Cheers,
-- 
Casey Allen Shobe - Open Source Software Solutions
  [EMAIL PROTECTED] - http://osss.net


Re: [vchkpw] Variable for current delivery address???

2004-12-09 Thread Rick Macdougall

Casey Allen Shobe wrote:
Hi all, I have a rather important and hopefully rather easy to address 
question:

I use both dspam and maildrop in conjunction with qmail+vpopmail.
dspam is set up like so:
   # cat /var/vpopmail/domains/osss.net/.qmail-cshobe
   | /usr/bin/dspam --user [EMAIL PROTECTED] --deliver=innocent,spam --mode=teft
DSpam then calls `maildrop -d vpopmail` as the local delivery agent, and in 
the maildroprc file, I have the following:
   DOMAIN=tolower($HOST)
   USERNAME=tolower($EXT)
   VHOME=/var/vpopmail/domains/$DOMAIN/$USERNAME
   include $VHOME/.mailfilter

As you can see, both use the $HOST and $EXT environment variables set by 
qmail.  This makes everything work fine and well, most of the time.

The problem is that I have username aliases, as well as domain aliases.
So sometimes $EXT is 'casey' and $HOST is 'aixos.net', but the delivery 
address is still [EMAIL PROTECTED]

I need to find a way to get variables set for the actual delivery address, 
because this scenario will break both maildrop (which I've hacked around by 
adding symlinks in /var/vpopmail) and dspam (which treats every distinct 
--user argument as a separate user account.

How can this be done?  Many thanks in advance for any advice.

Hi,
VHOME=`/home/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED]
Regards,
Rick


Re: [vchkpw] Variable for current delivery address???

2004-12-09 Thread Casey Allen Shobe
On Thursday 09 December 2004 21:01, Rick Macdougall wrote:
 Casey Allen Shobe wrote:
 DOMAIN=tolower($HOST)
 USERNAME=tolower($EXT)
 VHOME=/var/vpopmail/domains/$DOMAIN/$USERNAME
 VHOME=`/home/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED]

No, the above are identical in that $EXT and $HOST is the recipient address, 
which can be an alias, NOT the delivery address, which is the problem.  For 
another, shell escaping like that does not work in maildroprc.  I need a 
variable set to the delivery address, rather than the recipient address.

Cheers,
-- 
Casey Allen Shobe - Open Source Software Solutions
  [EMAIL PROTECTED] - http://osss.net


Re: [vchkpw] Variable for current delivery address???

2004-12-09 Thread Rick Macdougall

Casey Allen Shobe wrote:
On Thursday 09 December 2004 21:01, Rick Macdougall wrote:
Casey Allen Shobe wrote:
  DOMAIN=tolower($HOST)
  USERNAME=tolower($EXT)
  VHOME=/var/vpopmail/domains/$DOMAIN/$USERNAME
VHOME=`/home/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED]

No, the above are identical in that $EXT and $HOST is the recipient address, 
which can be an alias, NOT the delivery address, which is the problem.  For 
another, shell escaping like that does not work in maildroprc.  I need a 
variable set to the delivery address, rather than the recipient address.
Hi,
Yes shell escaping like that does work in maildroprc, or at least 30 of 
my servers think it does :)

Sorry, I lost the original reason of how you are piping to maildrop as 
an alias, not a real user since so much of your original email has been 
truncated.

Regards,
Rick


Re: [vchkpw] Variable for current delivery address???

2004-12-09 Thread Tom Collins
On Dec 9, 2004, at 2:10 PM, Casey Allen Shobe wrote:
No, the above are identical in that $EXT and $HOST is the recipient 
address,
which can be an alias, NOT the delivery address, which is the problem. 
 For
another, shell escaping like that does not work in maildroprc.  I need 
a
variable set to the delivery address, rather than the recipient 
address.
If you put the email address to forward to in the .qmail-alias file 
(instead of the Maildir), then it should work, as the message will be 
forwarded and re-processed.

We could add a feature to vdelivermail where it sets an environment 
variable to the Maildir it's delivering to, if that would be at all 
useful.

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