настраиваю почту на linux.postfix+courier+mysql+ilohamail.существуют виртуальные и локальные пользователи.все работает.
осталось сделать пересылку писем на несуществующие домены одному пользователю.
mysql> select * from alias;
+---------+--------------------+
| address | goto |
+---------+--------------------+
| @qwe | test@server.domain |
+---------+--------------------+
2 rows in set (0.00 sec)
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
home_mailbox = Maildir/
html_directory = no
inet_interfaces = localhost
local_recipient_maps = unix:passwd.byname $alias_maps $virtual_mailbox_maps
luser_relay = test@server.domain
mail_owner = postfix
mail_spool_directory = /var/spool/mail
mydestination = $myhostname, localhost.$mydomain, localhost
mydomain = server.domain
myhostname = server.domain
mynetworks = 192.168.0.0/24, 127.0.0.0/8
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.4.3/README_FILES
relay_domains = $mydestination
sample_directory = /usr/share/doc/postfix-2.4.3/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
transport_maps = mysql:/etc/postfix/mysql-transport.cf
unknown_local_recipient_reject_code = 550
virtual_gid_maps = mysql:/etc/postfix/mysql-virtual-gid.cf
virtual_mailbox_base = /
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-maps.cf
virtual_minimum_uid = 500
virtual_uid_maps = mysql:/etc/postfix/mysql-virtual-uid.cf
при отправке на домен @qwe в логе:
Mar 12 16:40:16 server postfix/qmgr[12673]: 5B397205C4: from=<test@server.domain>, size=697, nrcpt=1 (queue active)
Mar 12 16:40:16 server postfix/qmgr[12673]: 92A7B205E0: from=<test@virtual.domain>, size=707, nrcpt=1 (queue active)
Mar 12 16:40:16 server postfix/smtp[12845]: 92A7B205E0: to=<qwe@qwe.server.domain>, orig_to=<qwe@qwe>, relay=none, delay=932, delays=931/0.09/0/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=qwe.server.domain type=MX: Host not found, try again)
Mar 12 16:40:16 server postfix/smtp[12847]: 0FB3B205DD: to=<qwe@qwe.server.domain>, orig_to=<qwe@qwe>, relay=none, delay=1144, delays=1144/0.09/0/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=qwe.server.domain type=MX: Host not found, try again)
помогите люди добрые)