Virtualdomains

From QmailToaster
Revision as of 22:45, 15 March 2024 by Ebroch (talk | contribs) (Created page with "<u>'''virtualdomains'''</u> man '''qmail-send''' excerpt: List of virtual users or domains, one per line. A virtual user has the form <u>user</u>'''@'''<u>domain</u>:<u>prepend</u>, without any extra spaces. When '''qmail-send''' sees the recipient address <u>user</u>'''@'''<u>domain</u>, it converts it to <u>prepend</u>-<u>user</u>'''@'''<u>domain</u> and treats it as local. A virtual domain has the form <u>domain</u>:<u>prepend</u>. It applies to any recipient addr...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

virtualdomains


man qmail-send excerpt:

List of virtual users or domains, one per line. A virtual user has the form user@domain:prepend, without any extra spaces. When qmail-send sees the recipient address user@domain, it converts it to prepend-user@domain and treats it as local.

A virtual domain has the form domain:prepend. It applies to any recipient address at domain. For example, if

 nowhere.mil:joe-foo

is in virtualdomains, and a message arrives for info@nowhere.mil, qmail-send will rewrite the recipient address as joe-foo-info@nowhere.mil and deliver the message locally.

virtualdomains may contain wildcards:

 .fax:uucp-fax
 :alias-catchall
 .nowhere.mil:joe-foo-host

virtualdomains may also contain exceptions: an empty prepend means that domain is not a virtual domain.

qmail-send handles virtualdomains after locals: if a domain is listed in locals, virtualdomains does not apply.