On Sat, May 19, 2012 at 7:18 PM, mohan s <[email protected]> wrote:
> Hi All....
>
> We have installed webmail in our Centos server using our
> static IP. Thanks to all of you for your valuable suggestions.
> Now we would like to have the following functionality : Each
> email that is being sent out or coming in to be CC d to an admin email., so
> that we can check the content of each email. Plus we need to filter email
> with attachments having certain extention or ablove a certain size . How do
> we implement these features.? Any help is welcome
>
These are not answerable by a mailing list.
If you are willing to do commercial transaction then mail me offlist
and I can help.
Okay I will try to do my best in this mail.
For the BCC of each mail transiting the mail server there is a Postfix
configuration
option(in case you use postfix instead of qmail which every guy and his brother
in law runs), called always_bcc:
always_bcc (default: empty)
Optional address that receives a "blind carbon copy" of each message
that is received by the Postfix mail system.
Note: if mail to the BCC address bounces it will be returned to the
sender.
Note: automatic BCC recipients are produced only for new mail. To
avoid mailer loops, automatic BCC recipients are not generated after
Postfix forwards mail internally, or after Postfix generates mail
itself.
Now, in order to do mail deep inspection to look at MIME type of
attachments and block
attachments beyond a certain size...the latter is quite easy. It is
the postfix
mailbox_message_size parameter I think. No big deal.
To look at each attachment and filter requires a different method. Because mail
comes in as MIME encoded and base64 encoded, this will require on the
fly MIME decoding and then filtering.
I am sure there will be some third party tool to do this but I have
never done it.
What I do however is display the attachments by decoding the MIME in
the mail Queue.
That is easy. Filtering requires active participation in mail traffic.
Yes, I got it.
Postfix comes with body_check third party executables you can invoke
on each mail.
This will slow things down but that is what you need.
With an appropriate filter program invoked in /etc/postfix/master.cf,
you can achieve
your goal.
Kerio is an excellent commercial mail server offering. It is expensive
but I think it
will be good.
My goal is to create a Kerio like mail server suite replete with
clients, calender, tasks
and notes integration.
If I were to do it single handed it could easily take me a year. But I
am going to do it.
-Girish
--
Gayatri Hitech
http://gayatri-hitech.com
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc