Thanks for your reply.
Yes, indeed, it works great. :]
I was missing to uncomment this two lines that makes sendmail to accept the
I'll tell you that what happened to me was a 'do it quickly' problem.
On the install instructions, you find:
Add the following rules to sendmail.cf, either in ruleset 98 (local hacks,
on RedHat systems) or right before the virtual user stuff in ruleset 0:
# Sanitize with procmail:
#R$* < @test.com. > $* $#procmail $@/etc/sanitizer.rc
# Sanitize without procmail:
#R$* < @test.com. > $* $#sanitize $@anomy $:$1<@test.com.CLEAN.>$2
R$* < @ $+ .CLEAN. > $* $1<@$2.>$3
R$* < @ $+ .CLEAN > $* $1<@$2.>$3
And What I did? Whell, im gonna use with PROCMAIL, so I uncommented the
procmail line, and commented everything else out, as if the two las lines
were part of the 'without procmail' code.
Now its fixed, and works really great.
The only thing missing to my undestanding now is: wich rule is processes
first? AND: if a file is refused by default in one rule, is it possible to
accept it in the next one? I explain my situation.
Im saniting a box that is used by folks that have very slow connection to
the internet. The support staff says that no one shoud get mpegs, jpgs,
gifs, unless its really necessary. TO allow authorized people to send
messages, the rule is simple:
filename.jpg : REFUSED
So, all files containing name.OK.ext will be accepted. My rules follows. I
refuse all the junk, but never accept the good mail!
file_list_1_scanner = 0
file_list_1_policy = save
# Coisa que gostariamos de receber...
file_list_2_scanner = 0
file_list_2_policy = accept
file_list_2 = (?i)\.(ok)\.*$
I have a problem in my rules, or should I change order of things?? Accept
first, then reject?
Thanks!! I very much appreciate your help.
Carlos Eduardo Vianna
----- Original Message -----
To: "Carlos Eduardo Vianna - SouthTech" <firstname.lastname@example.org>
Cc: "Bjarni R. Einarsson" <email@example.com>; <firstname.lastname@example.org>
Sent: Sunday, November 23, 2003 3:24 PM
Subject: Re: [anomy-list]: Installation WAS Re: Commercial Support
> F-Prot AVES: Bréfi breytt. | 42 HTML merki gerđ óvirk af
> öryggisnetinu. | Skýrsla:
> Ok, here's how I see how the .clean thing works (not in exactly this
> order, but . . .)
> When you get an email destined for the domain that you set up for
> Anomy, a .clean is appended to the address, and the sanitizer is used
> as the delivery agent.
> Anomy gets and cleans the message, and returns it to sendmail to be
> delivered to the .clean address. Sendmail then uses the second rule
> to strip the .clean, and deliver it locally (or wherever it should
> Since .clean is not a TLD (and is normally non-deliverable), this is a
> simple and elegant method to separate messages that have and have not
> been sanitized.
> On my (working) system, if a message is sent to a non-existant user,
> then I get the same type of bounce that you described below (with the
> Tha! t's because with the sanitizer, every message you get is really
> two messages.
> First its received, and delivered to the sanitizer, and then its
> re-sent by the Sanitizer, and relayed through localhost, to the
> The first message was destined for the actual email address, but WAS
> delivered to the sanitizer, which accepted it, so it did not bounce.
> The message sent by the sanitizer was then sent to the .clean
> address. Now, sendmail should have a rule to strip the .clean for
> delivery, but if the user does not exist (or maybe that rule), then
> the bounce gets the original destination address in it (with the
> Now, if the destination address really does exist (i.e. its
> deliverable, without the .clean), then you have another problem.
> Is it possible there is a typo in the rules you put into! sendmail.cf
> Take a look at the lines:
> R$* < @ $+ .CLEAN. > $* $1<@$2.>$3
> R$* < @ $+ .CLEAN > $* $1<@$2.>$3
> You should probably have both, and there needs to be a tab character
> between the "$*", and the "$1". Spaces will not do.
> No, you don't want to label the .clean as a local domain. The rule:
> R$* < @ $=w . > $* $#sanitize $@anomy $:$1<@$2.CLEAN.>$3
> already kinda does that, by sending mail destined to the $w domains to
> the "sanitize" delivery agent.
> BTW, you can change this line if you like, to sanitize mail to domains
> destined to a separate variable from $w.
> I do this on one mail server, which has several local domains, and
> also acts as a relay ! for some other domains of mine. I want those
> relayed domains sanitized as well, so I created an anomy variable,
> which has $w in it, as well as the other domains I want to sanitize.
> -----"Carlos Eduardo Vianna - SouthTech" <email@example.com> wrote:
> To: "Bjarni R. Einarsson" <firstname.lastname@example.org>
> From: "Carlos Eduardo Vianna - SouthTech" <email@example.com>
> Date: 11/23/2003 08:55AM
> cc: <firstname.lastname@example.org>
> Subject: Re: [anomy-list]: Installation WAS Re: Commercial Support
> Hello Bjarni and you all.
> Thank you very much for the reply. Ill check out the FProt package. Wo
> f-prot remembers my my BBS years. Os/2, Remote Acces, pascal coding, h
> e! he...
> great times :]
> I have installed Anomy in a server for testing, and faced an problem.
> When I
> send a message to someone in the sanitized domain, it gets back to me
> 550 Host Unknown. Just like:
> - I send email to email@example.com
> - I receive a messa saying that firstname.lastname@example.org does not e
> I see that the .clean is added in one of those rules that I do not fu
> understant (those that were put in sendmail.cf). Maybe im missing some
> like telling sendmail that dominio.com.br.clean is a local dom!
> ain that
> should be forwarded to dominio.com.br? Or something else?
> I appreciate your support. Thank you.
> Carlos Eduardo Vianna
> SouthTech TI
> ----- Original Message -----
> From: "Bjarni R. Einarsson" <email@example.com>
> To: "Carlos Eduardo Vianna - SouthTech" <firstname.lastname@example.org>
> Cc: <email@example.com>
> Sent: Friday, November 21, 2003 5:45 PM
> Subject: [anomy-list]: Re: Commercial Support
> > On 2003-11-21, 16:28:27 (-0200), Carlos Eduardo Vianna - SouthTech w
> > > Hello!
> > >
> > > Is there commercial support available?
> > If you&nbs!
> p;buy the F-Prot Antivirus mail server package for one of the
> > *nix operating systems, Anomy is included along with some docs and
> > helper scripts. FRISK Software (makes of F-Prot and my employers)
> > will provide commercial tech support for that bundle, the Anomy
> > stuff included.
> > --
> > Bjarni R. Einarsson PGP: 02764305, B7A3AB8
> > firstname.lastname@example.org -><- &!
> nbsp; http://bre.klaki.net/
> > Check out my open-source email sanitizer: http://mailtools.anomy.net
> > Spammers, please send lots of mail to: email@example.com
> > Was I helpful? Let others know:
> > http://svcs.affero.net/rm.php?r=Juggler
> 1. mailto:$@anomy