2 msgPostfix SASL Help
6 msgSlowing down postfix
2 msgneed help deciphering a line
4 msgPostfix SMTP server: errors from something.net[...
4 msg2.5.0-RC and 2.6 should recognize FreeBSD 8
9 msgPostfix not following my access file.
3 msgpostfix logs delay, delays, dsn
3 msgBest way to shutdown postfix prior to servicing...
1 msgthe bounce process hangs a mail (?)
3 msgmessages destined for content_filter stuck in d...
2 msgDomain in username
5 msgmissing authentication on recipient
5 msgpostfixadmin
5 msgcheck_policy_service before reject_rbl_client
9 msgMXBackup via LDAP
5 msgheader and body check exemptions

Relay recipient maps and relocated users
\ Erwan David (21 Jan 2008)
. \ Erwan David (21 Jan 2008)
. . \ (Wietse Venema) (21 Jan 2008)
. . . \ Erwan David (21 Jan 2008)
. . . . \ (Wietse Venema) (21 Jan 2008)

4 msgmail forwarding loop :: SPAM
3 msgtransport_maps how to match mx's
2 msgWhere/when to insert a missing Message-ID
Subject:Re: Relay recipient maps and relocated users
Group:Postfix-users
From:(Wietse Venema)
Date:21 Jan 2008


 
Erwan David:
> Le Mon 21/01/2008, Wietse Venema disait
> > Erwan David:
> > > Le Mon 21/01/2008, Moi Maison disait
> > > > I'd like to use the relocated maps on front server.
> > > >
> > > > But when I send a message to a relocated user (whose address does nort
> > > > exist anymore on backend server, thus is no more in
> > > > relay_recipient_maps) I get the standard error message:
> > > >
> > > > Recipient address rejected: User unknown in relay recipient table (in
> > > > reply to RCPT TO command)
> > > >
> > > > instead of the relocated message.
> > >
> > > Adding the relocated map to relay_recipient_maps, it works.
> >
> > Hmm. Which Postfix version is this?
> >
> > When I add an address to relocated_maps (and their domain to
> > relay_domains) then Postfix will reject the recipient without
> > relay_recipient_maps, or with an empty relay_recipient_maps.
> >
> > rcpt to:<foo>
> > 550 5.1.6 <foo>: Recipient address rejected: User has moved to bar
> >
> > This is with the client not in mynetworks, and with machines at
> > work.
> >
> > Wietse
> >
> > /etc/postfix/main.cf:
> > relay_domains = porcupine.org
> > relocated_maps = hash:/etc/postfix/relocated
> >
> > /etc/postfix/relocated:
> > foo bar
> >
>
> That's postfix 2.3.8
> It may also come from my reject_unlisted_recipient high in the
> smtpd_restrictions.

The relocated_maps response is reported while rejecting a non-existent
recipient. In fact, the relocated_maps result has precedence over
relay_recipient_maps:

The logic is (file smtpd_check.c, function check_rcpt_maps):

1) search the recipient canonical maps
2) search the global canonical maps
3) search the virtual alias maps
4) report "user has moved" from relocated_maps, "user unknown
in virtual alias table" and other things that resolve to
the error: delivery agent
5) search local_recipient_maps, virtual_mailbox_maps or
relay_recipent_maps depending on the recipient domain.

So the only explanation I can come up with is that you are
using tables in multiple and/or otherwise unexpected places.

Wietse


© 2004-2008 readlist.com