我想通过 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 无效。我怎么能做到这一点?警告有什么问题?
Ps 抱歉英语不好,但我是波兰语