On Fri, Jan 28, 2011 at 05:34:20PM -0500, Michael Orlitzky wrote:
> On 01/28/2011 03:28 PM, Ralf Hildebrandt wrote:
> > * Michael Orlitzky <mich...@orlitzky.com>:
> > 
> >> I tried with transport_maps:
> >>
> >>   example.com  local:
> >>
> >> and local_transport = error:... and got this (http3.viabit.com 
> >> is myorigin):
> >>
> >>   Jan 28 15:05:25 http3 postfix/error[20737]: 24944A302DF:
> >>   to=<memb...@http3.viabit.com>, orig_to=<memb...@example.com>,
-------------------^^^^^^^^^^^^^^^^

This domain, your $myorigin, is the transport used, not the one you 
have set for example.com.

Do not use unqualified addresses as lookup results unless you are 
certain where they are going. Apparently mydestination includes 
$myorigin, and your virtual_alias_maps rewrote memb...@example.com to 
"members". With example.com in transport_maps, leave it alone.

This whole thing could be simpler with "mydestination = example.com" 
and remove the local_transport and transport_maps settings.

> >>   relay=none, delay=2.7, delays=2.7/0/0/0, dsn=5.0.0,
> >>   status=bounced(Local delivery is disabled.)
> >>
> >> The more I think about it, the more I think it should have 
> >> worked. I'll try again once things slow down a bit (5pm).

No, the domain of the final rewritten address is the one which 
should be in your transport_maps.

> > postconf transport_maps 
> > is showing what?
> 
> # postconf transport_maps
> transport_maps = hash:/etc/postfix/maps/transport_maps
> 
> # cat /etc/postfix/maps/transport_maps
> example.com                   local:
> 
> # ls /etc/postfix/maps/transport_maps.db
> -rw-r--r-- 1 root root 12K 2011-01-28 15:02
> /etc/postfix/maps/transport_maps.db
> 
> Same error:
> 
>   Jan 28 17:31:43 http3 postfix/error[4847]: C998730C669:
>   to=<memb...@http3.viabit.com>, orig_to=
>   <memb...@example.com>, relay=none,
>   delay=0.02, delays=0/0.01/0/0.01, dsn=5.0.0, status=bounced (Local
>   delivery is disabled.)
> 
> 
> Full postconf -n:
[irrelevant parts snipped]

> alias_database = hash:/etc/mail/aliases

That's not used. This will break Mailman's ability to manage 
alias_maps.

> alias_maps = hash:/var/lib/mailman/data/aliases

> local_recipient_maps =

This isn't a good idea in this case. Leave local_recipient_maps at 
default and let Mailman manage your alias_maps.

> local_transport = error:Local delivery is disabled.

As per above, might not be needed.

> mydomain = viabit.com
> myhostname = http3.viabit.com
> mynetworks_style = host

You have not set mydestination, thus getting the default. Why?

> transport_maps = hash:/etc/postfix/maps/transport_maps

As per above, might not be needed.

> virtual_alias_maps = hash:/etc/postfix/maps/virtual_alias_maps,
> hash:/var/lib/mailman/data/virtual-mailman

If the list domain is in mydestination, there is no need for any 
virtual aliasing of Mailman addresses.
-- 
    Offlist mail to this address is discarded unless
    "/dev/rob0" or "not-spam" is in Subject: header

Reply via email to