Archiving Mail
Julian Field
mailscanner at ecs.soton.ac.uk
Fri Nov 8 15:20:23 GMT 2002
At 13:49 08/11/2002, you wrote:
>Julian,
>
>When putting these parameters in the ruleset the email is still getting
>forwarded because it matches.
>
>ie.
>
>FromTo: alex at domain.com no
>FromTo: *@domain.com archive at domain.com
>
>email to alex at domain.com is still getting forwarded.
Unfortunately the Archive Mail parameter collects all the
addresses+directories from matching rules. The *@domain.com will cause
alex at domain.com to be archived to archive at domain.com.
I envisioned people potentially wanting some addresses to be archived in
more than 1 place, not specific users not being archived at all.
Add having "not" as part of the address to match wouldn't help either, as
"not alex at domain.com" would be true for "jim at otherdomain.com", so you would
end up archiving *all* your mail.
You really need some way to specify a "nowhere" result which over-rides all
the other results. Perhaps some "magic value" such as "none", which would
cause it to immediately make the whole result blank. But then if we get a
virus called "none" we might be in trouble making up the "Viruses To
Delete" list. Guess I could use something wacky like "*none*" but it
doesn't exactly sound like a good solution, does it? Looks like a right
hack to me :-(
> > At 04:22 08/11/2002, you wrote:
> > >There is an option in MailScanner.conf after version 4.02-1. Can't
> > >remember the name of the option though.
> >
> > # When you quarantine an entire message, do you want to store it as
> > # raw mail queue files (so you can easily send them onto users) or
> > # as human-readable files (header then body in 1 file)?
> > Quarantine Whole Messages As Queue Files = no
> >
> > >Rulesets are configured top to bottom. So put a line that says
> > >
> > >notme at domain.com no
> > >@domain.com /var/archive
> > >
> > >Or however something along those lines.
> >
> > Very nearly, you just forgot the direction off the front. So possibly
> you want
> > FromTo: notme at domain.com no
> > FromTo: *@domain.com /var/archive
> > FromTo: default no
> >
> > "FromTo:" will match any message coming from the address or going to it.
> > You will have to restart MailScanner (or kill -HUP all the processes) to
> > force it to re-read the configuration files and recompile the rulesets.
> >
> > >-----Original Message-----
> > >From: Alex Short [mailto:alex at IALEX.NET]
> > >Sent: Thursday, November 07, 2002 8:01 PM
> > >To: MAILSCANNER at JISCMAIL.AC.UK
> > >Subject: Re: Archiving Mail
> > >
> > >
> > >Ah yes, now i see it :)
> > >
> > >Two questions-- any way to save it in one file/message, (ie not qf+df)
> > >Also, is there a way to do *@domain.com /var/archive but not for
> > >notme at domain.com
> > >
> > >?
> > >
> > >Alex
> > >----- Original Message -----
> > >From: "S Mohan" <smohan at vsnl.com>
> > >To: <MAILSCANNER at JISCMAIL.AC.UK>
> > >Sent: Thursday, November 07, 2002 9:54 PM
> > >Subject: Re: Archiving Mail
> > >
> > >
> > > > In the archiving mail option, give a ruleset name. Say
> > > > /etc/MailScanner/rules/archive.rules. This file must have the
> > > > following entries.
> > > >
> > > > To: <emailid as user@* or *@domainname etc> emailid or directory.
> > > > From: similar as above.
> > > >
> > > > In this manner, you can copy incoming and out going mails for each
> > > > user or domain to email ids. If directory name is given, MailScanner
> > > > stores in qf+df format. If email id is given, the mail gets delivered
> > > > to the mailbox. You can use which ever is useful.
> > > >
> > > > Mohan
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK] On
> > > > Behalf Of Alex Short
> > > > Sent: Friday, November 08, 2002 3:34 AM
> > > > To: MAILSCANNER at JISCMAIL.AC.UK
> > > > Subject: Archiving Mail
> > > >
> > > >
> > > > For the archiving of mail feature, how can you archive some users and
> > > > not others. The only option i have seen is *where* to save the
> > > > archived email.
> > > >
> > > > Alex
> > > >
> > > >
> > > >
> >
> > --
> > Julian Field Teaching Systems Manager
> > jkf at ecs.soton.ac.uk Dept. of Electronics & Computer Science
> > Tel. 023 8059 2817 University of Southampton
> > Southampton SO17 1BJ
> >
> >
> >
--
Julian Field Teaching Systems Manager
jkf at ecs.soton.ac.uk Dept. of Electronics & Computer Science
Tel. 023 8059 2817 University of Southampton
Southampton SO17 1BJ
More information about the MailScanner
mailing list