Removing attachments but delivering the message
Fabio Viero
fviero at gmail.com
Wed Oct 3 23:30:01 IST 2007
Great Julian, thanks for the help.
And as for credit cards, yes, non-international ones exists. The bad thing
about them is that they´re valid only inside your country ;)
On 10/3/07, Julian Field <MailScanner at ecs.soton.ac.uk> wrote:
>
> If you want to learn about Custom Functions, then take a look in
> /usr/lib/MailScanner/MailScanner/CustomFunctions and read the code
> samples in there.
>
> As for credit cards, I didn't realise that non-international credit
> cards existed, sorry.
>
> Fabio Viero wrote:
> > Sure that helps...i´ll be sending my MailScanner.conf ASAP
> >
> > In the meantime could you please direct me to some sort of tutorial
> > about writing Custom Functions? And by the way, i would by your book
> > but i don´t have an international credit card. I tried to look for it
> > at some of the best bookstores here in Brazil but couldn´t find your
> > book in any of these :(
> >
> > Thanks in advance Julian
> >
> > On 10/3/07, *Julian Field* <MailScanner at ecs.soton.ac.uk
> > <mailto:MailScanner at ecs.soton.ac.uk>> wrote:
> >
> > For the attachments, I'm not sure why you aren't still receiving the
> > "got the message but the attachment was too large" message, I
> > would have
> > to take a look at your system setup to see that one. As to making
> > it set
> > the attachment size limit depending on the subject, that could be
> done
> > with a very short Custom Function that looked at
> > "$message->{subject}"
> > to decide what value to return to the attachment limit configuration
> > setting.
> >
> > Hope that helps a bit,
> > Jules.
> >
> > Fabio Viero wrote:
> > > Hi Julian
> > >
> > > Thanks for your reply. I´ll try to be more specific and i also did
> > > some testing on what i think is the correct approach for my
> problem.
> > > Unfortunatelly i ran into some dificulties here.
> > >
> > > We have a system that sends a huge number of messages to a huge
> > number
> > > of distinct recipients on the internet and we receive a lot of
> > bounces
> > > (mailbox overquota, recipient does not exist and the like). We
> would
> > > like to drop these messages altogether. In some cases these
> > warnings
> > > are attachments and we also would like to drop these
> > attachments. See
> > > that i have a distinct list for messages i want to delete and for
> > > messages i want to drop the attachment. Differences between one
> and
> > > the other are done by the Subject field. In common they have the
> To:
> > > field
> > >
> > > What i did already:
> > > 1. Setup some MCP rules for the Subject. But i soon realized i
> > > couldn´t do that because while i can tell MS to drop MCP´s i
> > want to
> > > do that based on a specific To address. Should i do that by using
> a
> > > second body statement in the rule?
> > >
> > > 2. For the attachments, i followed your direction and created a
> > > ruleset that looks like the following:
> > > To: user at domain.com.br <mailto:user at domain.com.br>
> > <mailto:user at domain.com.br <mailto:user at domain.com.br>> 1
> > > FromOrTo: default -1
> > >
> > > No problem arose here, but i checked Mailwatch and the status of
> > the
> > > message told that the attachment was too large, that´s correct but
> i
> > > didn´t receive any message on the user mailbox. It seemed like the
> > > message was not delivered (although Mailwatch report told it was,
> i
> > > mean no spam, bad content or anything) and i have both the
> > message and
> > > the attach stored in the quarantine. Maybe here i´ll have a hard
> > > issue. How can i tell MS to remove an attachment based on its
> > message
> > > Subject field? Is it possible at all?
> > >
> > > Thanks a lot Julian
> > >
> > >
> > > On 10/3/07, *Julian Field* <MailScanner at ecs.soton.ac.uk
> > <mailto:MailScanner at ecs.soton.ac.uk>
> > > <mailto: MailScanner at ecs.soton.ac.uk
> > <mailto:MailScanner at ecs.soton.ac.uk>>> wrote:
> > >
> > > -----BEGIN PGP SIGNED MESSAGE-----
> > > Hash: SHA1
> > >
> > > Set the maximum attachment size to 1 byte and it will strip
> all
> > > attachments.
> > >
> > > Fabio Viero wrote:
> > > > Hi List
> > > >
> > > > Is there a way i can remove the attachment(s) from certain
> > specific
> > > > messages but still the delivering the message itself?
> > > >
> > > > Thanks is advance
> > > >
> > >
> > > Jules
> > >
> > > - --
> > > Julian Field MEng CITP
> > > www.MailScanner.info <http://www.MailScanner.info>
> > <http://www.MailScanner.info>
> > > Buy the MailScanner book at www.MailScanner.info/store
> > <http://www.MailScanner.info/store>
> > > < http://www.MailScanner.info/store>
> > >
> > > Need help customising MailScanner?
> > > Contact me!
> > > Need help fixing or optimising your systems?
> > > Contact me!
> > > Need help getting you started solving new requirements from
> > your boss?
> > > Contact me!
> > >
> > > PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415
> B654
> > >
> > >
> > > -----BEGIN PGP SIGNATURE-----
> > > Version: PGP Desktop 9.6.3 (Build 3017)
> > > Comment: (pgp-secured)
> > > Charset: ISO-8859-1
> > >
> > >
> wj8DBQFHA1VcEfZZRxQVtlQRAosVAJ9LxgUEDE6uT8HxQ9Niqxx8xnfNlQCfRlRC
> > > SAbwrvsoCxDGTiPuay89RRY=
> > > =Vr9N
> > > -----END PGP SIGNATURE-----
> > >
> > > --
> > > This message has been scanned for viruses and
> > > dangerous content by MailScanner, and is
> > > believed to be clean.
> > > For all your IT requirements visit www.transtec.co.uk
> > <http://www.transtec.co.uk>
> > > <http://www.transtec.co.uk>
> > >
> > > --
> > > MailScanner mailing list
> > > mailscanner at lists.mailscanner.info
> > <mailto:mailscanner at lists.mailscanner.info>
> > > <mailto:mailscanner at lists.mailscanner.info
> > <mailto:mailscanner at lists.mailscanner.info>>
> > > http://lists.mailscanner.info/mailman/listinfo/mailscanner
> > >
> > > Before posting, read http://wiki.mailscanner.info/posting
> > >
> > > Support MailScanner development - buy the book off the
> website!
> > >
> > >
> >
> > Jules
> >
> > --
> > Julian Field MEng CITP
> > www.MailScanner.info <http://www.MailScanner.info>
> > Buy the MailScanner book at www.MailScanner.info/store
> > <http://www.MailScanner.info/store>
> >
> > MailScanner customisation, or any advanced system administration
> help?
> > Contact me at Jules at Jules.FM <mailto:Jules at Jules.FM>
> >
> > PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
> > For all your IT requirements visit www.transtec.co.uk
> > <http://www.transtec.co.uk>
> >
> >
> > --
> > This message has been scanned for viruses and
> > dangerous content by MailScanner, and is
> > believed to be clean.
> > For all your IT requirements visit www.transtec.co.uk
> > <http://www.transtec.co.uk>
> >
> > --
> > MailScanner mailing list
> > mailscanner at lists.mailscanner.info
> > <mailto:mailscanner at lists.mailscanner.info>
> > http://lists.mailscanner.info/mailman/listinfo/mailscanner
> >
> > Before posting, read http://wiki.mailscanner.info/posting
> > <http://wiki.mailscanner.info/posting>
> >
> > Support MailScanner development - buy the book off the website!
> >
> >
>
> Jules
>
> --
> Julian Field MEng CITP
> www.MailScanner.info
> Buy the MailScanner book at www.MailScanner.info/store
>
> MailScanner customisation, or any advanced system administration help?
> Contact me at Jules at Jules.FM
>
> PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
> For all your IT requirements visit www.transtec.co.uk
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> For all your IT requirements visit www.transtec.co.uk
>
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
> Before posting, read http://wiki.mailscanner.info/posting
>
> Support MailScanner development - buy the book off the website!
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20071003/3c110322/attachment-0001.html
More information about the MailScanner
mailing list