請大家幫忙看一下為什麼不能發信(已解決)
簡單說一下,我原先有一台Mail Server,RedHat 9.0做的伺服器(MAIL),收發信正常,後來因為用戶增多,所以準備增加一台專門用來發信件的伺服器(SMTP) ,用CentOS 4.4做的伺服器。
現在做好后,發信時有如下提示,用OUTLOOK
由於伺服器拒絕收件人之一,無法發送郵件。被拒絕的電子郵件地址是「mis@gd.um.com」。 主題 'test', 帳戶: '172.16.86.1', 伺服器: '172.16.86.5', 協議: SMTP, 伺服器響應: '550 <mis@gd.um.com>: Recipient address rejected: User unknown in local recipient table', 埠: 25, 安全(SSL): 否, 伺服器錯誤: 550, 錯誤號: 0x800CCC79
伺服器上日誌如下:
Dec 22 07:14:03 smtp postfix/smtpd: NOQUEUE: reject: RCPT from unknown: 550 <mis@gd.um.com>: Recipient address rejected: User unknown in local recipient table; from=<wht@gd.um.com> to=<mis@gd.um.com> proto=SMTP helo=<T1112>
Dec 22 07:14:03 smtp postfix/smtpd: disconnect from unknown
我的原正常伺服器設置如下:
# more /etc/named.conf
// generated by named-bootconf.pl
options {
directory "/var/named";
forwarders{
10.0.0.1;202.96.128.68;
};
//forward-only;
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};
zone "86.16.172.IN-ADDR.ARPA"{
type master;
file "172.16.86";
allow-transfer { 172.16.86.5; };
notify yes;
};
zone "0.0.10.in-addr.arpa"{
type master;
file "10.0.0";
};
zone "gd.um.com"{
type master;
file "gd.um.com";
allow-transfer { 172.16.86.5; };
};
include "/etc/rndc.key";
# more gd.um.com
@ IN SOA mail hostmaster.mail.gd.um.com (
2003122500 ; serial
3600 ; refresh
900 ; retry
1209600 ; expire
43200 ; default_ttl
)
@ IN MX 5 mail
@ IN MX 10 smtp.gd.um.com.
@ IN NS gd.um.com.
@ IN NS smtp.gd.um.com.
gd.um.com. IN A 172.16.86.1
mail.gd.um.com. IN A 172.16.86.1
smtp.gd.um.com. IN A 172.16.86.5
# more 172.16.86
@ IN SOA mail hostmaster.mail.gd.um.com. (
2003122500 ; serial
3600 ; refresh
900 ; retry
1209600 ; expire
43200 ; default_ttl
)
@ IN NS gd.um.com.
@ IN NS smtp.gd.um.com.
1 IN PTR gd.um.com.
1 IN PTR mail.gd.um.com.
5 IN PTR smtp.gd.um.com.
# postconf -n
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
bounce_notice_recipient = postfix
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
default_destination_concurrency_limit = 15
header_checks = regexp:/etc/postfix/header_checks
ignore_mx_lookup_error = yes
inet_interfaces = all
mail_spool_directory = /var/spool/mail
mailbox_command = /usr/bin/procmail
mailbox_size_limit = 300000000
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
message_size_limit = 6000000
mydestination = $myhostname, localhost.$mydomain, $mydomain, smtp.$mydomain
mydomain = gd.um.com
myhostname = mail.gd.um.com
mynetworks = 172.16.86.0/24, 127.0.0.0/8, 10.0.0.0/8
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
readme_directory = /usr/share/doc/postfix-1.1.11/README_FILES
relay_domains = $mydestination $mynetworks
relayhost = mail.um.com
sample_directory = /usr/share/doc/postfix-1.1.11/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP $mail_name
後來增加的SMTP Server 配置如下
# postconf -n
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
default_transport = mail
html_directory = no
ignore_mx_lookup_error = yes
mail_spool_directory = /var/spool/mail
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, $mydomain, mail.$mydomain
mydomain = gd.um.com
myhostname = smtp.gd.um.com
mynetworks = 172.16.86.0/24, 172.16.2.0/24, 10.0.0.0/8, 127.0.0.0/8
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
readme_directory = /usr/share/doc/postfix-2.2.10/README_FILES
relay_domains = $mydestination $mynetworks
relayhost = mail.um.com
sample_directory = /usr/share/doc/postfix-2.2.10/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP unknow
smtpd_recipient_restrictions = permit_mynetworks
unknown_local_recipient_reject_code = 550
暈,搞了這麼久,實際上Slave DNS不用配置起來也可以的,也用不到NFS來分享了,只是在postfix中配置一下轉發表transport就可以了
postconf -n
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
default_transport = smtp
html_directory = no
ignore_mx_lookup_error = yes
inet_interfaces = all
local_recipient_maps =
mail_spool_directory = /var/spool/mail
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, $mydomain, mail.$mydomain, smtp.$mydomain
mydomain = gd.um.com
myhostname = smtp.gd.um.com
mynetworks = 172.16.0.0/16, 10.0.0.0/8, 127.0.0.0/8
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
readme_directory = /usr/share/doc/postfix-2.2.10/README_FILES
relay_domains = $mydestination $mynetworks
relayhost = 10.0.0.5
sample_directory = /usr/share/doc/postfix-2.2.10/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP unknow
smtpd_client_restrictions = permit_mynetworks, check_client_access hash:/etc/postfix/access
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
/etc/postfix/transport:
gd.um.com smtp::25
* relay:
[ 本帖最後由 emailwht 於 2008-5-17 13:23 編輯 ]
《解決方案》
自己頂一下
《解決方案》
哪位朋友幫忙看一下呀?
《解決方案》
: '550 <mis@gd.um.com>: Recipient address rejected: User unknown in local recipient table'
已經說明了你的用戶認證沒做好,郵件伺服器不認得您的帳戶,您再仔細看看
《解決方案》
原帖由 mzzhangj 於 2007-12-26 19:51 發表 http://bbs.chinaunix.net/images/common/back.gif
: '550 : Recipient address rejected: User unknown in local recipient table'
已經說明了你的用戶認證沒做好,郵件伺服器不認得您的帳戶,您再仔細看看
沒有作認證的!
那個錯誤提示我解決了,把下面這個前面的#去掉就好了
local_recipient_maps =
但是錯誤一樣有
收到退件提示為unkown user
也就是發往內部的郵件都不行,必須是在新建立的SMTP Server的用戶才可以,而原正常伺服器上面的卻不行,找不到這個人。
[ 本帖最後由 emailwht 於 2007-12-27 14:10 編輯 ]
《解決方案》
還沒有解決呢,哪位兄弟幫忙看一下,謝謝了
《解決方案》
如果原伺服器上的用戶是系統用戶,只能在新伺服器上建同樣的用戶名和密碼。如果是在資料庫里,則新的伺服器的認證信息要從原伺服器上的資料庫里取用戶信息。
《解決方案》
:em18: :em18: :em18: :em18: :em18: :em18: :em18: :em18: :em18: :em18: :em18: :em18:
《解決方案》
原帖由 alsonluo 於 2008-5-8 16:51 發表 http://bbs.chinaunix.net/images/common/back.gif
如果原伺服器上的用戶是系統用戶,只能在新伺服器上建同樣的用戶名和密碼。如果是在資料庫里,則新的伺服器的認證信息要從原伺服器上的資料庫里取用戶信息。
是呀,原伺服器上用的是系統用戶.
《解決方案》
原帖由 emailwht 於 2008-5-10 08:45 發表 http://bbs.chinaunix.net/images/common/back.gif
是呀,原伺服器上用的是系統用戶.
新的伺服器上的/etc/password 中有mis這個用戶嗎?