Hello, I've been tasked with adding a few more domains for handling mail. This server has been running flawlessly for about 5 years (and survived many updates), but this will be my first implementation of virtual hosting, so before I actually start changing config settings, I thought I'd ask for clarification. I've read the virtual config docs, and I think I understand most everything (hopefully I won't find out otherwise) except...
Currently, I simply have our one domain referenced in mydomain, and have the hostname set accordingly (see postconf -n below), and am not using virtual_mailbox_domains. Does simply adding the additional domain example2.com in virtual_mailbox_domains allow me to use the additional hostname smtp.example2.com (in client configurations) for sending mail, assuming example2.com is listed in virtual_mailbox_domains and have appropriate DNS & MX records for the additional domain(s) pointed to the appropriate IP? Tia... ********************************** myhost ~ # postconf -n alias_maps = hash:/etc/mail/aliases, hash:/var/lib/mailman/data/aliases anvil_rate_time_unit = 360s anvil_status_update_time = 3600s bounce_size_limit = 1 broken_sasl_auth_clients = yes config_directory = /etc/postfix delay_warning_time = 15m home_mailbox = .maildir/ message_size_limit = 51200000 mydomain = example.com myhostname = smtp.example.com mynetworks = 127.0.0.0/8 parent_domain_matches_subdomains = recipient_delimiter = + relay_domains = relayhost = [mail.example3.com] smtp_fallback_relay = [smtp.example4.net] smtpd_hard_error_limit = 3 smtpd_recipient_limit = 100 smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, check_client_access cidr:/etc/postfix/allowed_clients.cidr, check_recipient_access hash:/etc/postfix/x-employees, check_sender_access hash:/etc/postfix/blocked_senders smtpd_sasl_auth_enable = yes smtpd_sasl_local_domain = $myhostname smtpd_tls_auth_only = yes smtpd_tls_cert_file = /etc/ssl/wildcard.crt smtpd_tls_key_file = /etc/ssl/wildcard.key smtpd_use_tls = yes transport_maps = hash:/etc/postfix/transport virtual_alias_maps = mysql:/etc/postfix/mysql_vam.cf, hash:/var/lib/mailman/data/virtual-mailman virtual_gid_maps = static:207 virtual_mailbox_base = /var/virtual/mail virtual_mailbox_limit = 51200000 virtual_mailbox_maps = mysql:/etc/postfix/mysql_vmm.cf virtual_minimum_uid = 207 virtual_uid_maps = static:207 myhost ~ #
