CGI+sendmail経由でメールが送れない???
そんな馬鹿な???
CGIからsendmail経由でメールを送るとsendmailサーバーの「Mail Delivery Subsystem」さんから「送れねーよ!」とクレームのメールが来る???
「ん、ななな・・・なんですと〜」
こりゃ困った・・・
なんて前置きはともかく、エラーの内容を確認
The original message was received at Wed, 13 Jun 2007 12:14:54 +0900
from localhost.localdomain [127.0.0.1]
—– The following addresses had permanent fatal errors —–
<—@XXXX.YYY>
(reason: 553 5.1.8 <apache@localhost.localdomain>… Domain of sender address apache@localhost.localdomain does not exist)
—– Transcript of session follows —–
… while talking to XXXX.YYY.:
>>> MAIL From:<apache@localhost.localdomain> SIZE=1544
<<< 553 5.1.8 <apache@localhost.localdomain>… Domain of sender address apache@localhost.localdomain does not exist
501 5.6.0 Data format error
これを訳すと、、、、「う〜ん」。
”送り先「XXXX.YYY」が「
localhost.localdomain」なんてドメインは知らん”と言っている。
そりゃそうだ
原因は、送信側のメールドメインの設定。送信するときにグローバルに名前解決できるドメインで送信する必要があるって事。
平たく言うと、送信時のドメインが「ローカルドメイン」では外部のメールサーバーから拒否される場合があるって事。
これを解決するには、
sendmail.mcを直す必要がある。以下の3行を追加。
MASQUERADE_AS(`AAAA.com’)dnl
MASQUERADE_DOMAIN(`
localhost.localdomain’)dnlFEATURE(masquerade_envelope)dnl
これは、
「
localhost.localdomain 」から送ろうとする場合(2行目)※
localhost.localdomain は各自のメールサーバ名だね「AAAA.com」としてメールを送信する(2行目)
※AAAA.comは自分の持ってるドメイン名
残りの設定(3行目)は難しいので「おまじない」と思って。
で、m4コマンドでsendmail.cfを作って
いざsendmailを再起動。そしてメールを送信すれば
TrackBacks
TrackBack URL : http://project.iifp.biz/modules/xmaoh0/archives/2007/06/13/72/trackback/
この投稿には、まだコメントが付いていません
コメント
投稿された内容の著作権はコメントの投稿者に帰属します。
| 投稿者 | スレッド |
|---|---|
| ゲスト | 投稿日時: 2009-5-18 15:07 更新日時: 2009-5-18 15:07 |
|
you can get wow power leveling and wow gold wow power leveling
|
|
|
|
|
| 投稿者 | スレッド |
|---|---|
| ゲスト | 投稿日時: 2010-9-1 12:17 更新日時: 2010-9-1 12:17 |
|
Finally, we’ve examined many of the skills used to enable and empower spirit usage and improved them as well as guild wars gold. Many other World of Warcraft wow gold would do well to take notes on how the Warcraft guide illustrates the art of World of Warcraft gold making into no risk and easy to follow steps. to get you a ton of wow gold. When I buy wow gold kaufen, I would like to see whether this site has a good reputation. At this time, we should be careful to check whether this site is trustable or not.
As we all know, there are many rip-off sites which just cheat your money and will not deliver wow gold for you. These World of Warcraft player are very efficient in buying cheap wow gold. |
|
|
|