This is a discussion on Re: Identity mappings in virtual_alias_maps and per-user transport within the mailing.postfix.users forums, part of the Mail Servers and Related category; On Wed, Oct 06, 2004 at 11:32:36AM +0800, Yusuf Goolamabbas wrote: > > This is correct. > > &...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
On Wed, Oct 06, 2004 at 11:32:36AM +0800, Yusuf Goolamabbas wrote:
> > This is correct. > > > > > However this didn't work and virtual_alias_maps did not do validation > > > for domains listed in relay_domains. > > > > Define "did not work" by showing your configuration, relevant table > > entries and relevant logs. > > Did not work is defined as postfix did not reject email for users not > listed in virtual_alias_maps > > relay_domains = example.com > virtual_alias_maps = hash:/etc/postfix/rewrite > transport_maps = hash:/etc/postfix/transport Where is the relay_recipient_maps setting? Users listed in virtual_alias_maps don't need to be listed in relay_recipient_maps: IF virtual accepted this is not the same as IF not in virtual rejected that is only true for virtual_alias_domains. > > /etc/postfix/rewrite > usera@example.com usera@branch.example.com > > /etc/postfix/transport > branch.example.com smtp:[localhost] > example.com smtp:[localhost] > example.org smtp:[localhost] > > mail from:<usera@example.org> > 250 Ok > rcpt to:<usera@example.com> > 250 Ok > data > 354 End data with <CR><LF>.<CR><LF> > sdfs > . > 250 Ok: queued as 6B41F1EDA85C > mail from:<usera@example.org> > 250 Ok > rcpt to:<userb@example.com> > 250 Ok > data > 354 End data with <CR><LF>.<CR><LF> > dsfs > . > 250 Ok: queued as EA5A11EDA85C > > If I add the following line to my config then unknown users are rejected > relay_recipient_maps = $virtual_alias_maps > This is correct. A => B is equivalent to: not B => not A and is NOT equivalent to: not A => not B -- Viktor. Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the "Reply-To" header. To unsubscribe from the postfix-users list, visit http://www.postfix.org/lists.html or click the link below: <mailto:majordomo@postfix.org?body=unsubscribe%20p ostfix-users> |