取消
顯示結果 
搜尋替代 
您的意思是: 

Urgent-- 無法寄含有中文字的 mail

Urgent-- 無法寄含有中文字的 mail

1. HP Tru64 5.1B, 已經可以傳送純英文的 mail, 例如 mails -s "test" me@mycompany.com < /etc/hosts...成功, client 可以收到



2. 但如果是 mail 內容含有 UTF8 的中文字, 則 fail...error message 如下...

--------

Content-Transfer-Encoding: 8bit

Auto-Submitted: auto-generated (failure)



This is a MIME-encapsulated message



--iB72vJd292851.1102388239/hostname



The original message was received at Tue, 7 Dec 2004 10:57:19 +0800 (CST)

from root@localhost



----- The following addresses had permanent fatal errors -----

me@mycompany.com



----- Transcript of session follows -----

554 5.6.3 me@mycompany.com... Cannot send 8-bit data to 7-bit destination

501 5.6.0 me@mycompany.com... Data format error



==============



以上錯誤訊息, 似乎表示data format 的問題, 請問要修改哪裡的設定?



Thanks



Eric
9 回覆

Urgent-- 無法寄含有中文字的 mail

Hello Eric:



Would you please use the following commands:

# rcmgr -c set SENDMAIL_ARGS "-B8BITMIME" for

cluster.

# rcmgr set SENDMAIL_ARGS "-B8BITMIME" for

standalone.



# /sbin/init.d/sendmail restart



# ps -ef | grep sendmail | grep -v grep

root 1369873 1048577 0.0 12:14:35 ?? 0:00.01 sendmail: accept -bd

-q15m -B8BITMIME



Then, try again.



Best Regards

Danny

Urgent-- 無法寄含有中文字的 mail

Hello Eric:



How about your testing result, can it be fixed

by using my suggestion, if it can't be fixed,

please let us knoe to try alternative solutions.



Best Regards

Danny Lin

Urgent-- 無法寄含有中文字的 mail

Hello Danny,



Thanks for your quick reply. It still doesn't work after following your setps. Is there parameter about the mail format in /var/adm/sendmail/sendmail.cf?



Thanks again



Eric

Urgent-- 無法寄含有中文字的 mail

Hello Eric:



Please add the following to

/var/adm/sendmail/sendmail.cf:

#########################################

# strip message body to 7 bits on input?

O SevenBitInput=False



# 8-bit data handling

# O EightBitMode=pass8

O8p

#########################################



# /sbin/init.d/sendmail restart

SMTP Mail Service started.



# ps ax | grep send

1217781 ?? S 0:00.01 sendmail: accept -bd -q15m -B8BITMIME

1216360 pts/1 S + 0:00.00 grep send



# mailx -v root

Subject: Test chinese again

台積電, 茂德, 友達, 華碩 ...

Danny

.

EOT

root... Connecting to local...

root... Sent



# mailx

Mail Revision: 4.2.4.2 Type ? for help.

"/usr/spool/mail/root": 2 messages 2 unread

>U 1 root@tpds20-1 Tue Dec 7 12:16 13/370 "Chinese 001"

U 2 root@tpds20-1 Wed Dec 8 11:38 12/384 "Test chinese again"

? 2

Message 2:

From root Wed Dec 8 11:38:44 2004

Date: Wed, 8 Dec 2004 11:38:44 +0800 (CST)

Subject: Test chinese again



台積電, 茂德, 友達, 華碩 ...

Danny

>>> Test OK!



Best Regards

Danny Lin

Urgent-- 無法寄含有中文字的 mail

Hello Danny,



還是不行ㄟ...請問你用的是 5.1A or 5.1B?

我現在用的是 5.1B, 我發現 even 照你的方法,

新增到 sendmail.cf 還是不行, 依然有格式的問題.

我後來找到過去在 5.1A 上的 sendmail.cf ,直接

copy 過來, 就可以寄中文 mail 了, 不過裡面實在有太多設定與原來的 sendmail.cf 並不相同, 所以我也不知道到底

是哪些參數會影響 mail format?



With Rgds,



Eric

Urgent-- 無法寄含有中文字的 mail

Hello Eric:



I really used V5.1A for origial testing

about traditional chinese (that is 8-bit code),

and I also tested the same email contents on

V5.1B, it's working, too.



What is your testing for UTF-8 data, did

you test normal traditional chinese?



Please attach /var/adm/sendmail/sendmail.cf

as attachment for me to check.



Best Regards

Danny Lin

Urgent-- 無法寄含有中文字的 mail

 

Urgent-- 無法寄含有中文字的 mail

Hello Danny,



Here are 2 *.cf for you reference. 5.1A_sendmail.cf is correct for UTF8.



Thanks



Eric

Urgent-- 無法寄含有中文字的 mail

Hi Eric,



Please re-running the command "mailsetup" after rename the mail configuration that located in "/var/adm/sendmail/sendmail.cf".



Or



Please add a statement "O EightBitMode=m" into your sendmail.cf during line 150 to 185 of Options then re-starting

the sendmail process via "/sbin/rc3.d/S40sendmail restart". I think it should be worked to send the "中文" mail.



Best regards,

Richard.