我想通过admin@xxx.pl和admin@yyy.pl接收电子邮件我尝试这样做,但它显示警告:
root@debian2008:/home/wojtek# postalias hash:/etc/postfix/virtual
postalias: warning: /etc/postfix/virtual, line 1: name must be local
postalias: warning: /etc/postfix/virtual, line 2: name must be local
这是我的文件/ etc / postfix / virtual:
admin@xxx.pl : root
admin@yyy.pl : root
和/etc/postfix/main.cf:
myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP
biff = no
append_dot_mydomain = no
readme_directory = /usr/share/doc/postfix
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
virtual_alias_domains = xxx.pl,yyy.pl
virtual_alias_maps = hash:/etc/postfix/virtual
mail_owner = postfix
myhostname = debian2008
mydomain = yyy.pl
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = localhost, debian2008, xxx.pl, yyy.pl
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command =
mailbox_size_limit = 50000000
recipient_delimiter =
inet_interfaces = all
html_directory = /usr/share/doc/postfix/html
inet_protocols = all
home_mailbox = Maildir/
mail_spool_directory = /home/
admin@yyy.pl有效但admin@xxx.pl无效。我怎么能这样做?警告有什么问题?
P.s抱歉英语不好但是我很光彩
答案 0 :(得分:2)
您需要使用postmap
来创建别名地图,而不是postalias
,然后您的virtual
不应使用冒号作为分隔符:
admin@xxx.pl root
admin@yyy.pl root
除此之外,它应该有用。