Hi everyone,
 

I have a question regarding attachments and redirects with mailproc.tab.

 

Here is the problem; 

 

[EMAIL PROTECTED] has a mailproc  which redirects to [EMAIL PROTECTED]

 

If someone sends an email WITH A PROHIBITED ATTACHMENT extension (such as
..exe, .bat, etc, etc) to [EMAIL PROTECTED], gmail refuses the email saying
the attachment is blocked, that is fine.

 

How can I block and stop the redirection of emails with such extensions
before mailproc.tab kicks in?

 

I understand that I must write a filter, that is no problem, but where to
place it?

 

I think the filter order is:

 

1.       filters.pre-data.tab

2.       filters.post-rcpt.tab

3.       filters.post-data.tab

4.       filters.in.tab

5.       mailproc.tab

 

Of course I could place it in filters.in.tab but it would be ran everytime
someone receives a message, which is not efficient and I think would slow
down the server, I would need it run only if someone has a mailproc.tab.

 

Can someone point me to the right direction? I think placing the script
inside mailproc.tab for each of my users that has one would be a pain in the
ass.

 

Maybe the best solution would be to place it inside filters.in.tab and do a
check like:

 

If(file_exists(“/var/MailRoot/domains/mydomain.com/user/mailproc.tab”))

{

//Script here

}

 

What does the gurus think?

 

Thanks in advance

 

-fred

 

 


-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]

Reply via email to