Thank you Wietse and Viktor

After experimenting it looks like my best choices are using either the transport map or the relocated map (instead of access map)

Both transport/relocated maps deal with the .forward/aliases issue.

The advantage of the relocated map is it does the address matching I want. I just have to put in one line with the username of the closed user and it covers all my possible local domains/destinations. The only disadvantage
I see is the error/reason message returned is a bit awkward with the
'User has moved to' being prepended to the "User account is closed"
message I have in the map.

With the transport map I have to do complex PCRE or have a separate line for each of my domains making for a map that is 5x longer than the relocated map. May cause a performance issue. On the plus side the error/reason message returned is better.

I was thinking of a third way by removing proxy:unix:passwd.byname
from local_recipient_maps and adding in a hash map with just the
"enabled" user accounts.  That would be take more effort though (both
add user at account creation and remove at account closure -- accounts
are NOT deleted) and I am not sure it would handle the .forward/aliases
issue.

Ultimately I am lazy so I am going to go with the relocated map

-- Paul Raines (http://help.nmr.mgh.harvard.edu)



The information in this e-mail is intended only for the person to whom it is 
addressed.  If you believe this e-mail was sent to you in error and the e-mail 
contains patient information, please contact the Mass General Brigham Compliance 
HelpLine at https://www.massgeneralbrigham.org/complianceline 
<https://www.massgeneralbrigham.org/complianceline> .
Please note that this e-mail is not secure (encrypted). If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately. Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail.
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to