On Sun, 2003-12-14 at 20:05, Patrick B�rjesson wrote:
> Any postfix-gurus here? Thought I'll just post the question and see if
> someone might have mercy on me and answer it =)
> 
> So... Say I have a unresolvable hostname (e.g. host.mydomain.com)
> because of being inside an unaccessible intranet. The intranet has a
> smtp-server which relays mail for us inside the intranet. The problem is
> now that I want all the mail that is send from my machine which don't
> have a domain in the to-address to be rewritten so that it uses
> $myhostname instead of $myorigin. 
> 
> I can't set $myorigin to $myhostname as the smtp-servers outside the
> intranet will try to resolve the envelope-address (which would be
> host.mydomain.com) and fail, which mean that they'll reject the mail.
> And if I set $myorigin to $mydomain and change nothing else postfix will
> rewrite all the to-addresses that has no domain (e.g. "root") to
> <username>@$mydomain which will send the mails going from my daemons to
> the useraccount on our gateway (not something you want to do if you
> don't want to piss the admin off). So the best solution that I can think
> of is to make trivial-rewrite append $myhostname to the unqualified
> to-addresses instead of $myorigin, but I can't seem to find if and how
> this can be done... 
> Another choice I have is to make a virtual map with all the local
> addresses that should go to local addresses on my machine, but this
> seems risky as if I forget an address then those mails will go to the
> gateway... 
> 
> I'm hoping for someone to give me a possible solution for this dilemma.
> 
> Thanks in advance.
> 
> Patrick B�rjesson

I'm certainly not a guru, but I recall there is a smart forwarding
option with postfix, essentially other than that it can smart-forward
emails to external addresses to an externally accessible smtp server.


-- 
Tom Wesley

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to