Ray Hauge | 2 Jun 22:57 2004

Autorespond Problem

Hello,

I've been trying to get our postfix/MySQL system to automatically 
respond to emails when sent certain individules.  Most of the people at 
my company are set up as virtual users on the server, not a local 
user... so I can't use a .mailfilter or .forward file.  So, I've just be 
creating different sections in the maildroprc file.  Here is the script 
that I've come up with so far to handle this task (obviously it's not 
working)

if (/^Delivered-To: test <at> address.com <mailto:test <at> address.com>/ && /^To: *.*test <at> address.com.*/)
{
  cc "| mailbot -t $HOME/autoresponse \
         -d $HOME/autoresponsedb -A 'From: test <at> address.com <mailto:test <at> address.com>' \
         -s 'AUTO RESPONSE - Out of the office.' -D 1 \
         /usr/local/sbin/sendmail -f ''"
}

I've also added

cc "!myemail <at> address.com"

inside the above IF statement, so I know that that section of code is firing correctly.  I've also made sure
all the paths and permissions are set appropriately.  I'm pretty much stuck at this point and any help would
be appreciated.

Thanks,
Ray

-------------------------------------------------------
(Continue reading)

p dont think | 2 Jun 23:20 2004

Re: Autorespond Problem

> I've been trying to get our postfix/MySQL system to automatically 
> respond to emails when sent certain individules.  Most of the people at 
> my company are set up as virtual users on the server, not a local 
> user... so I can't use a .mailfilter or .forward file. 

Why not?  I have the same setup and have a series of "home" directories 
for my virtual users that contain not much more than mail filter files. 
  They are *not* the same as local user /home/... directories, mind you.

  - Paul

-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
Ray Hauge | 2 Jun 23:23 2004

Re: Autorespond Problem

Well, I do have the "home" directory setup that you are talking about 
with just a Maildir folder that is not in the /home slice.  That part is 
working just fine though.  The problem I'm having is more with the 
autoreponder not being sent.  Even if I can use a .mailfilter or 
.forward file in their "home" directory, that still wouldn't fix my poor 
script ;)

Thanks,
Ray

p dont think wrote:

>> I've been trying to get our postfix/MySQL system to automatically 
>> respond to emails when sent certain individules.  Most of the people 
>> at my company are set up as virtual users on the server, not a local 
>> user... so I can't use a .mailfilter or .forward file. 
>
>
> Why not?  I have the same setup and have a series of "home" 
> directories for my virtual users that contain not much more than mail 
> filter files.  They are *not* the same as local user /home/... 
> directories, mind you.
>
>  - Paul
>
>

-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the one
(Continue reading)

John Angelmo | 3 Jun 12:33 2004
Picon

deleting mail with specifig attachments

instead of running a virus scanner on every mail how can I delete every 
mail with specific attatchments (.zip with password,.exe,.vbs and so on) 
within maildir before invoking my antivirus software?

/John

-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
Tony Earnshaw | 3 Jun 14:19 2004
Picon

Re: deleting mail with specifig attachments

tor, 03.06.2004 kl. 12.33 skrev John Angelmo:

> instead of running a virus scanner on every mail how can I delete every 
> mail with specific attatchments (.zip with password,.exe,.vbs and so on) 
> within maildir before invoking my antivirus software?

IMHO you should be doing this at MTA level before the mail is ever
accepted, not LDA level after the mail is accepted. I do it with Postfix
2.1 without any third-party software.

--Tonni

--

-- 

We make out of the quarrel with others rhetoric
but out of the quarrel with ourselves, poetry.

mail: tonye <at> billy.demon.nl
http://www.billy.demon.nl

-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
John Angelmo | 3 Jun 15:26 2004
Picon

Re: deleting mail with specifig attachments

Tony Earnshaw wrote:
> tor, 03.06.2004 kl. 12.33 skrev John Angelmo:
> 
> 
>>instead of running a virus scanner on every mail how can I delete every 
>>mail with specific attatchments (.zip with password,.exe,.vbs and so on) 
>>within maildir before invoking my antivirus software?
> 
> 
> IMHO you should be doing this at MTA level before the mail is ever
> accepted, not LDA level after the mail is accepted. I do it with Postfix
> 2.1 without any third-party software.
> 
> --Tonni
> 

Oh yes I agree but since we want the users to be able to costumize their 
protection in diffrent levels having it in the MTA level simply isn't 
possible with our setup

/John

-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
Devin Rubia | 3 Jun 15:59 2004
Picon

Re: Autorespond Problem

On Wed, Jun 02, 2004 at 02:23:34PM -0700, Ray Hauge wrote:
> 
> >>I've been trying to get our postfix/MySQL system to automatically 
> >>respond to emails when sent certain individules.  Most of the people 
> >>at my company are set up as virtual users on the server, not a local 
> >>user... so I can't use a .mailfilter or .forward file. 
> >
> >p dont think wrote:
> >
> >Why not?  I have the same setup and have a series of "home" 
> >directories for my virtual users that contain not much more than mail 
> >filter files.  They are *not* the same as local user /home/... 
> >directories, mind you.
>
> Well, I do have the "home" directory setup that you are talking about 
> with just a Maildir folder that is not in the /home slice.  That part is 
> working just fine though.  The problem I'm having is more with the 
> autoreponder not being sent.  Even if I can use a .mailfilter or 
> .forward file in their "home" directory, that still wouldn't fix my poor 
> script ;)

(Ugh, topposted - reformatted)

(The script in question)

if (/^Delivered-To: test <at> address.com <mailto:test <at> address.com>/ && /^To:
*.*test <at> address.com.*/)
{
 cc "| mailbot -t $HOME/autoresponse \
        -d $HOME/autoresponsedb -A 'From: test <at> address.com
(Continue reading)

Ray Hauge | 3 Jun 17:33 2004

Re: Autorespond Problem


>>>>I've been trying to get our postfix/MySQL system to automatically 
>>>>respond to emails when sent certain individules.  Most of the people 
>>>>at my company are set up as virtual users on the server, not a local 
>>>>user... so I can't use a .mailfilter or .forward file. 
>>>>        
>>>>
>>>p dont think wrote:
>>>
>>>Why not?  I have the same setup and have a series of "home" 
>>>directories for my virtual users that contain not much more than mail 
>>>filter files.  They are *not* the same as local user /home/... 
>>>directories, mind you.
>>>      
>>>
>>Well, I do have the "home" directory setup that you are talking about 
>>with just a Maildir folder that is not in the /home slice.  That part is 
>>working just fine though.  The problem I'm having is more with the 
>>autoreponder not being sent.  Even if I can use a .mailfilter or 
>>.forward file in their "home" directory, that still wouldn't fix my poor 
>>script ;)
>>    
>>
>Devin Rubia wrote:
>(Ugh, topposted - reformatted)
>
>(The script in question)
>
>if (/^Delivered-To: test <at> address.com/ && /^To: *.*test <at> address.com.*/)
>{
(Continue reading)

martin martin | 3 Jun 22:11 2004
Picon

Re: deleting mail with specifig attachments

How can I do that with qmail?

>From: Tony Earnshaw <tonye <at> billy.demon.nl>
>To: courier-maildrop <at> lists.sourceforge.net
>Subject: Re: [maildropl] deleting mail with specifig attachments
>Date: Thu, 03 Jun 2004 14:19:02 +0200
>MIME-Version: 1.0
>Received: from sc8-sf-list1.sourceforge.net ([66.35.250.206]) by 
>mc3-f39.hotmail.com with Microsoft SMTPSVC(5.0.2195.6824); Thu, 3 Jun 2004 
>05:30:43 -0700
>Received: from localhost ([127.0.0.1] helo=projects.sourceforge.net)by 
>sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30)id 1BVrJN-0003YC-3f; 
>Thu, 03 Jun 2004 05:27:09 -0700
>Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.12] 
>helo=sc8-sf-mx2.sourceforge.net)by sc8-sf-list1.sourceforge.net with esmtp 
>(Exim 4.30)id 1BVrIG-0003GU-VFfor courier-maildrop <at> lists.sourceforge.net; 
>Thu, 03 Jun 2004 05:26:00 -0700
>Received: from billy.demon.nl ([212.238.97.135])by 
>sc8-sf-mx2.sourceforge.net with esmtp (TLSv1:AES256-SHA:256)(Exim 4.30)id 
>1BVrIF-0001Fu-9wfor courier-maildrop <at> lists.sourceforge.net; Thu, 03 Jun 
>2004 05:26:00 -0700
>Received: from localhost (localhost [127.0.0.1])(using TLSv1 with cipher 
>DHE-RSA-AES256-SHA (256/256 bits))(No client certificate requested)by 
>billy.demon.nl (Postfix) with ESMTP id F1674408CAfor 
><courier-maildrop <at> lists.sourceforge.net>; Thu,  3 Jun 2004 14:19:14 +0200 
>(CEST)
>X-Message-Info: vAu4ZEtdRiis1nWGS3dAsFr8ymq40LtH
>X-Authenticated: tonye <at> billy.demon.nl
>In-Reply-To: <40BEFE77.1080506 <at> veidit.net>
>References: <40BEFE77.1080506 <at> veidit.net>
(Continue reading)

Jeremy Kitchen | 4 Jun 00:10 2004

Re: deleting mail with specifig attachments

this message is a testament for us anti-top-posters

On Thursday 03 June 2004 03:11 pm, martin martin wrote:
> > > instead of running a virus scanner on every mail how can I delete every
> > > mail with specific attatchments (.zip with password,.exe,.vbs and so
> > > on) within maildir before invoking my antivirus software?

> >IMHO you should be doing this at MTA level before the mail is ever
> >accepted, not LDA level after the mail is accepted. I do it with Postfix
> >2.1 without any third-party software.

> How can I do that with qmail?

qmail-scanner can do it.  http://qmail-scanner.sf.net

-Jeremy

--

-- 
Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies, Inc.
  jeremy <at> inter7.com ++ www.inter7.com ++ 866.528.3530 ++ 847.492.0470 int'l
        kitchen  <at>  #qmail #gentoo on EFnet ++ scriptkitchen.com/qmail

-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504

Gmane