On Fri, Nov 04, 2022 at 09:21:45AM -0400, Bill Cole wrote:

> >  I updated these two file:
> >
> >  virtual_alias_domains
> >  virtual_alias_maps
> >
> >  and run postmap on the second.
> >
> >  Do i need to run "service postfix reload" for this change?

This depends on how urgent the change is.  If the OP wants to see the
change take effect immediately, a "reload" is recommended when lists of
domains or similar are configured directly in main.cf or in flat text
files.

> The reason for this is that you *probably* have virtual_alias_domains
> configured as a plain text file and virtual_alias_maps as a hash. The
> 'virtual' service is run on an as-needed basis for short periods, so
> changes will be seen without a reload (which is a function of the
> 'master' process.)'

The virtual(8) service has nothing to do with either parameter or
address rewriting at all, it is a delivery agent, and when used, looks
at:

    - virtual_mailbox_maps
    - virtual_mailbox_uid_maps
    - virtual_mailbox_gid_maps

to determine the location and ownership of the recipient's mailbox.

The parameters OP's parameters are used in

- smtpd(8): recipient validation
- cleanup(8): address rewriting
- trivial_rewrite(8): Resolving an address to an address class.

A reload is probably best when virtual_alias_domains is a literal list
and not an indexed table.

-- 
    Viktor.

Reply via email to