On 4/13/05, Aravind gv <[EMAIL PROTECTED]> wrote:

> Iam having a unique problem. I want to fetch all mails from my
> externel mailserver to linux box scan for virus and spam and then want
> to send it to internel MS Exchange Mail Server.
> i know by Fetchmail we can downlaod to linux box. But after that how
> to pass it to exchange server.

> > Today's Topics:

<snip *far* too much stuff>

please follow anuerin diaz' advice on trimming your email.  it's OK to use
digest mode if that's how you like reading mailing lists, but please don't
subject the rest of us to the digest.

things to try:

.forward
   create a .forward file in your home directory that contains the email address
   (internal) that you want to forward to.

then send mail to yourself (maybe spam, or something with a virus in it) at the 
external address, run fetchmail to fetch it, then check your exchange server 
to see if it's there already.  if it is, then .forward worked.  if it
isn't, then wait a
bit or look in the logs.  

i think this will work for you.  but i'm not clear on the sequence in
which things
happen at your SMTP server.  if it processes .forward BEFORE trying to 
scan for viruses and spam, then this won't work.  the email will get forwarded,
but it won't be spam/virus free.  at a previous job i had a system like this and
it worked well.  so if it doesn't work for you, you probably need to post SMTP
and virus/spam scanner configs so people can see why it might be failing.
email to 

if .forward doesn't work, then you can try procmail (man procmail, man
procmailex).
there, even if your SMTP server doesn't have mailscanner or similar support for
automatically checking for viruses and spam, you can do the checking in
procmail.  the config is more complicated than .forward, but you'll
manage. there
are lots of examples online.  google is your friend.

tiger

-- 
Gerald Timothy Quimpo http://bopolissimus.blogspot.com
[EMAIL PROTECTED] [EMAIL PROTECTED] 
Public Key: "gpg --keyserver pgp.mit.edu --recv-keys 672F4C78"
                         Mene sakhet ur-seveh
--
Philippine Linux Users' Group (PLUG) Mailing List
plug@lists.q-linux.com (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie

Reply via email to