From: mouss (no email)
Date: Tue Aug 01 2006 - 19:04:17 EDT
Tony Nelson wrote:
> I have two mail servers that primarily serve as relays to our internal
> mail systems. The do the usual virus scanning, spam detection etc.
>
> When an e-mail comes in for it is re-written to
> via aliases and then delivered to our
> internal systems and that works just fine.
>
> My account actually lives on the primary mail relay and does not get
> delivered to our internal systems. Previously, I used a .forward on
> the backup server to get the mail delivered to the primary by
> specifying the actual server name in the forward. Trying this method
> in Postfix generates a bounce, which puzzles me.
>
> Jul 31 16:45:05 [postfix/local] 46AA030297DD:
> to=<>, orig_to=<>,
> relay=local, delay=0, status=bounced (mail forwarding loop for
> )
>
> Doing some research I found the relay_domains parameter and how to
> setup a backup mail server. Following those instructions, I no longer
> needed a .forward and all of my mail worked just fine, however; it
> appears that the mail for the rest of the users was not going through
> alias expansion and was all being forwarded to my primary mail relay
> for final delivery. In my current config that had the side effect of
> having it virus scanned, spam detected, etc for a second time.
>
while it is nice to describe the background, you should at some point
make clear what is the "current" situation and what is the problem with
this situation. I'm not certain to see what is your exact problem.
if it's about aliasing users in relay_domains, then use
virtual_alias_maps instead of alias_maps.
if it's about the forwarding loop, then you'll need to provide more
information.
> I'm not sure which way is the best way to go, and I really have no
> preference. I would just like to make it work.
Unless I am misunderstanding you, relay_domains together with either
virtual aliases or per recipient transports is a good way to go
(sometimes possibly with canonical rewrite of addresses if the final
server doesn't like them).
|
|
|