- PR -

postfixのバーチャルドメイン設定

1
投稿者投稿内容
山田
会議室デビュー日: 2008/09/21
投稿数: 1
投稿日時: 2008-09-21 15:07
postfixで別ドメインのメールを受信するように設定をしましたが、受信できません。
(「abc@xxxxx.com」を「user@xxxxx.net」で受信したい)
送信したときに、下記のエラーメールが返ってきます。

This is the Postfix program at host smtp.xxxxx.net.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to <postmaster>

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

The Postfix program

<abc@xxxxx.com>: User unknown in virtual alias table

postfixの設定ファイルを記載します。
(FreeBSD5.5 , postfix-2.2.10_1,1)

どこが間違えているのか、教えていただけないでしょうか。
宜しくお願いします。

--------------------------------------------------------------------------
## main.cf ##
queue_directory = /var/spool/postfix
command_directory = /usr/local/sbin
daemon_directory = /usr/local/libexec/postfix
mail_owner = postfix
myhostname = smtp.xxxxx.net
mydomain = xxxxx.net
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,mail.$mydomain, www.$mydomain, ftp.$mydomain
local_recipient_maps = unix:passwd.byname $alias_maps
unknown_local_recipient_reject_code = 550
mynetworks_style = subnet
mynetworks = 192.168.0.0/24, 127.0.0.0/8
alias_maps = hash:/etc/mail/aliases
alias_database = hash:/etc/mail/aliases
home_mailbox = Maildir/
smtpd_banner = $myhostname ESMTP $mail_name
local_destination_concurrency_limit = 2
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/local/sbin/sendmail
newaliases_path = /usr/local/bin/newaliases
mailq_path = /usr/local/bin/mailq
setgid_group = maildrop
html_directory = no
manpage_directory = /usr/local/man
sample_directory = /usr/local/etc/postfix
readme_directory = no
transport_maps = hash:/etc/mail/transport
allow_mail_to_commands = alias,forward,include

receive_override_options = no_address_mappings
smtpd_sasl_auth_enable = no
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks,check_relay_domains,reject
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes

virtual_transport = virtual
virtual_mailbox_base = /home/virtual
virtual_maps = pgsql:/usr/local/etc/postfix/pgsql_vmaps.cf
virtual_mailbox_maps = pgsql:/usr/local/etc/postfix/pgsql_vmailbox.cf
virtual_mailbox_domains = pgsql:/usr/local/etc/postfix/pgsql_vmaildomains.cf
virtual_minimum_uid = 125
virtual_uid_maps = static:125
virtual_gid_maps = static:125

#virtual_alias_domains = xxxxx.com
virtual_alias_maps = hash:/usr/local/etc/postfix/virtual

--------------------------------------------------------------------------
#vi /usr/local/etc/postfix/virtual

xxxxx.com anything
abc@xxxxx.com user
def@xxxxx.com user


--------------------------------------------------------------------------
#postmap /usr/local/etc/postfix/virtual
#postfix reload
1

スキルアップ/キャリアアップ(JOB@IT)