Now that I seem to have postfix running ok on my replacement server
(going from Linux/Sendmail to Freebsd/Postfix), I have to convert all
of my "virtusertable" entries over to postfix. I've read through
https://www.postfix.org/VIRTUAL_README.html &
https://www.postfix.org/postconf.5.html &
https://www.postfix.org/virtual.5.html and my questions aren't
resolved...

Question 1: Am I correct that all (or most) of this be done with a
virtual_alias_maps table (i.e. hash:/usr/local/etc/postfix/virtual)?
If not, then: HOW?

Question set 2: Here's an excerpt (sanitized) of my "virtusertable".
Does this just go into my hash:/usr/local/etc/postfix/virtual as-is?
or what? Am I correct that this table needs to have all specific user
entries for a domain appear before the "@domain" entry for all other
users at that domain?

I've placed some "comments" above entries with specific questions &/or
explanations:

# Sendmail's Virtusertable

# should this be an alias? (I don't recall how/why/when it ended up in
my virtusertable)
[email protected]            [email protected]

# do all of the other entries just go into
hash:/usr/local/etc/postfix/virtual ???

# just wanting to block email to a local user
[email protected]            error:nouser 550 No such user here now or ever

# send all other email of mylocal.domain to a specific user here
@mylocal.domain                 [email protected]

# block all email to a specific user at a hosted domain
[email protected]            error:nouser 550 Getting too much spam
userid changed
# send all email to a specific user at a hosted domain to a user at
the local domain
[email protected]            [email protected]
# block all other email of a hosted domain
@hosted1.domain                    error:nouser 550 Getting too much
spam userid changed

# send all email for a hosted domain to some other email somewhere
@somehosted3.domain             [email protected]
# send email for a user at hosted domain to some other email somewhere
[email protected]         [email protected]
# send email for a user at hosted domain to some local alias
[email protected]         alocalalias

thanks for any help / guidance
Glenn
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to