主题: 發信出現Recipient address rejected: User unknown in local recipient table

我用Ubuntu Server 9.10+ iRedMail 0.5.1 版本

更新完 安裝好後 試著去發信 會出現Recipient address rejected: User unknown in local recipient table

這應該要調整哪個設定值呢? 看起來好像是被Postfix給擋了

postconf -n 結果如下(domain我改過了)
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
allow_min_user = no
append_dot_mydomain = no
biff = no
bounce_queue_lifetime = 1d
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
delay_warning_time = 0h
disable_vrfy_command = yes
enable_original_recipient = no
header_checks = pcre:/etc/postfix/header_checks.pcre
home_mailbox = Maildir/
inet_interfaces = all
mail_name = iRedMail
mail_version = 0.5.1
mailbox_command = /usr/lib/dovecot/deliver
mailbox_size_limit = 15728640
maximal_backoff_time = 4000s
maximal_queue_lifetime = 1d
message_size_limit = 15728640
minimal_backoff_time = 300s
mydestination = $myhostname, localhost, localhost.localdomain, localhost.$myhostname
mydomain = enphants.com
myhostname = vip.example.com
mynetworks = 127.0.0.0/8
mynetworks_style = subnet
myorigin = vip.example.com
proxy_read_maps = $canonical_maps $lmtp_generic_maps $local_recipient_maps $mydestination $mynetworks $recipient_bcc_maps $recipient_canonical_maps $relay_domains $relay_recipient_maps $relocated_maps $sender_bcc_maps $sender_canonical_maps $smtp_generic_maps $smtpd_sender_login_maps $transport_maps $virtual_alias_domains $virtual_alias_maps $virtual_mailbox_domains $virtual_mailbox_maps
queue_run_delay = 300s
readme_directory = no
recipient_bcc_maps = proxy:ldap:/etc/postfix/ldap_recipient_bcc_maps_domain.cf, proxy:ldap:/etc/postfix/ldap_recipient_bcc_maps_user.cf
recipient_delimiter = +
relay_domains = $mydestination, proxy:ldap:/etc/postfix/ldap_relay_domains.cf
relay_recipient_maps = proxy:ldap:/etc/postfix/ldap_virtual_mailbox_maps.cf
relayhost =
sender_bcc_maps = proxy:ldap:/etc/postfix/ldap_sender_bcc_maps_domain.cf, proxy:ldap:/etc/postfix/ldap_sender_bcc_maps_user.cf
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_enforce_tls = no
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks,permit_sasl_authenticated, check_helo_access pcre:/etc/postfix/helo_access.pcre
smtpd_recipient_restrictions = reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unlisted_recipient, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_non_fqdn_helo_hostname, reject_invalid_helo_hostname, check_policy_service inet:127.0.0.1:10031
smtpd_reject_unlisted_recipient = yes
smtpd_reject_unlisted_sender = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = no
smtpd_sasl_local_domain =
smtpd_sasl_path = dovecot-auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_login_maps = proxy:ldap:/etc/postfix/ldap_sender_login_maps.cf
smtpd_sender_restrictions = permit_mynetworks, permit_sasl_authenticated
smtpd_tls_cert_file = /etc/ssl/certs/iRedMail_CA.pem
smtpd_tls_key_file = /etc/ssl/private/iRedMail.key
smtpd_tls_loglevel = 0
smtpd_tls_security_level = may
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
transport_maps = proxy:ldap:/etc/postfix/ldap_transport_maps_user.cf, proxy:ldap:/etc/postfix/ldap_transport_maps_domain.cf
virtual_alias_maps = proxy:ldap:/etc/postfix/ldap_virtual_alias_maps.cf, proxy:ldap:/etc/postfix/ldap_virtual_group_maps.cf
virtual_gid_maps = static:1001
virtual_mailbox_base = /var/vmail/vmail01
virtual_mailbox_domains = proxy:ldap:/etc/postfix/ldap_virtual_mailbox_domains.cf
virtual_mailbox_maps = proxy:ldap:/etc/postfix/ldap_virtual_mailbox_maps.cf
virtual_minimum_uid = 1001
virtual_transport = dovecot
virtual_uid_maps = static:1001

回复: 發信出現Recipient address rejected: User unknown in local recipient table

你建立了几个虚拟域?用哪个帐号发给哪个帐号?邮件日志 /var/log/mail.log 里的相关内容是什么(直接贴上来,domain name 处理掉就行)?

3 最后由 lingoojams (2010-02-08 09:14:07) 编辑

回复: 發信出現Recipient address rejected: User unknown in local recipient table

ZhangHuangbin 写道:

你建立了几个虚拟域?用哪个帐号发给哪个帐号?邮件日志 /var/log/mail.log 里的相关内容是什么(直接贴上来,domain name 处理掉就行)?

您好只有建立一個虛擬域,我建了一個用戶tex,但是不論用系統自帶的www或是我建立的帳號,不論webmail or thunderbird都是出錯誤,相關截圖如下:

我之前用CentOS安裝時,也是有遇到這個問題,我是將mail.cf裡面的local_recipient改成空白,就可以發信了,不過我怕這不是標準作法,會不會到時mail server被拿來發垃圾信? 另外這個參數,似乎在Ubuntu 沒有此參數?

改這邊
/etc/postfix/main.cf:
    local_recipient_maps =

Post's attachments

maillog.png 19.56 kb, file has never been downloaded. 

thunderbird.png 30.44 kb, file has never been downloaded. 

virtualdomain.png 46.72 kb, file has never been downloaded. 

webmail.png 58.83 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

回复: 發信出現Recipient address rejected: User unknown in local recipient table

安装好后修改过什么设置么?

5 最后由 lingoojams (2010-02-08 10:34:56) 编辑

回复: 發信出現Recipient address rejected: User unknown in local recipient table

ZhangHuangbin 写道:

安装好后修改过什么设置么?

安裝好 還沒調整過 至少我確定我還沒動過 main.cf

我參考 http://wiki.ubuntu.org.cn/IRedMail#.E4. … A8iredmail 這邊安裝的

回复: 發信出現Recipient address rejected: User unknown in local recipient table

麻烦贴一下使用 gmail 或其它外部邮箱发给你的 iredmail 帐号的邮件日志。在 /var/log/maillog 里。

注意:请直接贴文本,不要截图。

回复: 發信出現Recipient address rejected: User unknown in local recipient table

我在 /etc/postfix/main.cf  裡面加上了   local_recipient_maps =  目前 同一個域 收發正常 ,也可以發郵件到 163.com , yahoo.cn ,gmail.com  (我之前也是 改這個參數 ,只是 不知道這樣做到底對不對)

有高手可以告訴我 local_recipient_maps 設成空白 會有什麼風險呢?   

現在還有一個問題就是我mail寄的出去,但是外部的mail server 與我的smtp無法建立連接 (可能是我防火牆的問題,這部份我自己查一下)