[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: MTA experts: address rewriting depending on next hop



On Thu, Jul 23, 2009 at 11:32:43AM +0200, Siggy Brentrup wrote:
> Oops, this one slipped by me since I have moved the question to
> d-devel, sorry for not Ccing d-user.
> 
> On Wed, Jul 22, 2009 at 16:10 -0600, lee wrote:
> > On Tue, Jul 21, 2009 at 01:03:01PM +0200, Siggy Brentrup wrote:
> > > 
> > > Here's the question again: which one of the abundance of MTAs in
> > > Debian is capable of address rewriting depending on destination?  
> > 
> > Exim4 can do this.
> 
> Nope, cf thread on d-devel, should be in the archives. 

It will eventually do it automatically, see http://exim.org/exim-html-current/doc/html/spec_html/ch31.html

> > If I understand you right, you want to rewrite the addresses of mail
> > that is outgoing to hosts not on your LAN --- but you do not want to
> > rewrite the addresses of mail outgoing to other hosts on your LAN.
> 
> exactly, frankly spoken after >12 hours w/o useful response I didn't
> expect d-u to be the right place to ask this question.

You could try debian-isp. I'm not sure if you're supposed to be an ISP
to ask that question there, but there are probably people who know.

> > But then, why do you need to rewrite the addresses? 
> 
> Look at the Received: headers in my mails, afaict winnegan.fake is no
> valid domain outside my lan and using outside  would provoke harsh
> reactions.

Look at my headers: who cares? Unless you're an ISP or MSP or run the
servers for a company, nobody is going to mind. To actually run a
mail server to send *and* receive mail, you need a static IP.

> > Do you want to use one host that does address rewriting as a
> > smarthost, or do you want to do address rewriting on all hosts on
> > the LAN?
> 
> The smarthost is responsible for rewriting.

I didn't read it thoroughly, but it seems to me that this what the
automatic address rewriting of exim is for --- or can at least be used for.

But what you're looking for is header rewriting, not address
rewriting. You need to browse the exim documentation, there are many
ways to modify headers. Since you want to use a smarthost, mail from
the LAN that goes to outside the LAN is, seen from the smarhost,
incoming mail, and system filters can be applied to incoming
mail. System filters can modify headers. see http://exim.org/exim-html-current/doc/html/spec_html/ch43.html#SECTaddremheasys

> > > I'm not to lazy to read documentation, but if at all possible not for
> > > all MTAs.
> 
> > The documentation of Exim4 is outstanding. I haven't seen any better
> > for anything yet.
> 
> It's really good now but I switched to postfix >5 years ago and still
> don't see a reason to change my preferred MTA.

Maybe postfix can do it, I don't know postfix well enough to tell ---
I would think it can. But I'm sure that you can find a solution with
exim.


Reply to: