[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rfc822 header canonicalization



Hola Tron,

apparently everything works like it used to... in fact, there was commented 
code in crossbar doing this, I just commented out the rewrite=internet and 
enabled the (old?) code...

Just in case someone else is interested, this patch to crossbar.cf does it:

--- crossbar.cf.ORI     Fri Oct 10 09:23:33 2003
+++ crossbar.cf Fri Oct 10 09:23:18 2003
@@ -54,12 +54,12 @@
 
        case $(channel $to) in
        smtp*)
-               #case "$(channel $from)" in
-               #smtp|smtpx)    # Address should be forwarded the way the arrive
-               #       rewrite=null ;;
-               #*)     rewrite=internet ;;
-               #esac
-               rewrite=internet
+               case "$(channel $from)" in
+               smtp|smtpx)     # Address should be forwarded the way the arrive
+                       rewrite=null ;;
+               *)      rewrite=internet ;;
+               esac
+               #rewrite=internet
                ;;
        error)  rewrite=null ;;
        local)  case "$(channel $from)" in



El 9 Oct 2003 a las 18:33, Carlos G Mendioroz escribió:

> Si todo está como era entonces, rewrite=null en crossbar.cf debería 
> arreglar la cosa...
> 
> (If all works like used to, rewrite=null in crossbar.cf should do)
> 
> Mariano Absatz wrote:
> 
> > Hi... I got no answer to this e-mail... so I'm trying to understand it by 
> > myself... with little success :-(
> > 
> > What I'm trying is to manage messages received from internet that pass-thru 
> > this server. I don't care (much) about locally generated messages (these are 
> > working fine) or locally addressed messages (there are not such, _everething_ 
> > goes somewhere else).
> > 
> > How do I avoid rewriting of rfc822 "From:" header when there's no domain in 
> > there?
> > 
> > At least a couple of pointers would be nice... I'm reading the "internet()" 
> > function in cf/crossbar.cf, but I don't know what to do.
> > 
> > The manual isn't too helpful either:
> > http://zmailer.org/zman/zref-router.shtml#ZMSHREF.WKE.CROSSBAR
> > :-(
> > 
> > I'd be greatly thankful for any pointers.
> > 
> > Regards.
> > 
> > El 3 Oct 2003 a las 11:12, Mariano Absatz escribió:
> > 
> > 
> >>Hi,
> >>
> >>I have a zmailer running as a border server (no local mailboxes), where I do 
> >>some anti-spam/anti-virus.
> >>
> >>Is there a way to avoid the RFC822 address headers from being canonicalized.
> >>
> >>That is, someone (probably a spammer) is sending a message with these 
> >>headers:
> >>
> >>From: some single words
> >>To: some user
> >>
> >>And then (after router canonicalizes them) they arrive as:
> >>
> >>From: some@my.domain.com, single@my.domain.com, words@my.domain.com
> >>To: some@my.domain.com, user@my.domain.com
> >>
> >>Now, lusers inside say that they're being spammed from outside with 
> >>my.domain.com addresses :-(
> >>
> >>Is there a way to avoid the header canonicalization from happening? (I don't 
> >>know how to zsh, so if it's easy, I'd like to have some concrete example :-)
> >>
> >>I'm using 2.99.56-pre9 taken from CVS on September 3.
> >>
> >>TIA.
> >>
> > 
> > 
> > --
> > Mariano Absatz
> > El Baby
> > ----------------------------------------------------------
> > Friends help you move. Real friends help you move bodies.
> > 
> > 
> > -
> > To unsubscribe from this list: send the line "unsubscribe zmailer" in
> > the body of a message to majordomo@nic.funet.fi
> > 
> 
> -- 
> Carlos G Mendioroz  <tron@huapi.ba.ar>  LW7 EQI  Argentina


--
Mariano Absatz
El Baby
----------------------------------------------------------
I have had a perfectly wonderful evening, but this wasn't this one.
      -- Groucho Marx


-
To unsubscribe from this list: send the line "unsubscribe zmailer" in
the body of a message to majordomo@nic.funet.fi