postfix abort check flush reload start status stop

pitfiend# postconf -m
btree
cdb
cidr
environ
hash
mysql
pcre
proxy
regexp
static
unix

pitfiend# postconf alias_maps
alias_maps = hash:/etc/aliases

pitfiend# postmap -q

main.cf

= /usr/local/etc/postfix/main.cf =

virtual_alias_maps = hash:/usr/local/etc/postfix/virtual
or more likely
virtual_alias_maps = cdb:/usr/local/etc/postfix/virtual

Do not specify virtual alias domain names in the main.cf
mydestination or relay_domains configuration parameters.

cavernoflostsouls.com

virtual_mailbox_domains = hash:/usr/local/etc/postfix/domains
virtual_mailbox_base = /var/mail/vhost
virtual_mailbox_maps = hash:/usr/local/etc/postfix/vmailbox
virtual_minimum_uid = 100
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
virtual_alias_domains = hash:/usr/local/etc/postfix/domains
virtual_alias_maps = hash:/usr/local/etc/postfix/virtual

If I don’t add cavernoflostsouls.com to relay_domains it get
Diagnostic-Code: smtp;554 5.7.1 : Relay access denied
If I do I get
Diagnostic-Code: X-Postfix; mail for cavernoflostsouls.com loops back to myself

relay_recipient_maps = hash:/usr/local/etc/postfix/relay_recipients ????

inet_interfaces = mail.imptech.net

mydestination List of domains that this mail system considers local.

myorigin The domain that is appended to any address that does not have a domain.

owner_request_special Give special treatment to owner-xxx and xxx-request addresses.

proxy_interfaces Other interfaces that this machine receives mail on by way of a proxy agent or network address translator.

#

  1. SEE ALSO
  2. cleanup(8), canonicalize and enqueue mail
  3. postmap(1), Postfix lookup table manager
  4. postconf(5), configuration parameters
  5. canonical(5), canonical address mapping

#
  1. README FILES
  2. Use “postconf readme_directory” or “postconf html_direc-
  3. tory” to locate this information.
  4. ADDRESS_REWRITING_README, address rewriting guide
  5. DATABASE_README, Postfix lookup table overview
  6. VIRTUAL_README, domain hosting guide