main.cfの設定例
【 [main.cf]の virtualドメイン(virtual alias)設定 】
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
myhostname = mail.XXXXXXX.com
mydomain = XXXXXXX.com
myorigin = $mydomain
inet_interfaces = $myhostname, localhost
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
local_recipient_maps = unix:passwd.byname $alias_maps
virtual_alias_maps = hash:/etc/postfix/virtual
unknown_local_recipient_reject_code = 450
mynetworks = 127.0.0.0/8
virtual_alias_domains = test1.XXXXXXX.com XXXXXXX.com test2.YYYYYYYY.com
alias_maps = hash:/etc/postfix/aliases
home_mailbox = Maildir/
smtpd_banner = $myhostname ESMTP unknown
allow_mail_to_files = alias,forward,include
allow_mail_to_commands = alias,forward,include
local_destination_concurrency_limit = 10
default_destination_concurrency_limit = 20
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
sample_directory = /usr/share/doc/postfix-2.4.5/samples
readme_directory = /usr/share/doc/postfix-2.4.5/README_FILES
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination