徒然な開発日記 カレンダー
2007年 6月
« 5月   6月 »
 12
3456789
10111213141516
17181920212223
24252627282930
徒然な開発日記の検索
メインメニュー
iifp group site
ご利用にあたって
モバイルサイト

モバイルサイトアドレス
サイト情報
スカウター : The iifp project - internet information forplus project
[PR]

2007年6月13日(水曜日)

CGI+sendmail経由でメールが送れない???

カテゴリー: - admin @ 12時40分09秒


そんな馬鹿な???
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」なんてドメインは知らん”
と言っている。
そりゃそうだ:shock:
原因は、送信側のメールドメインの設定。送信するときにグローバルに名前解決できるドメインで送信する必要があるって事。
平たく言うと、送信時のドメインが「ローカルドメイン」では外部のメールサーバーから拒否される場合があるって事。

これを解決するには、
sendmail.mcを直す必要がある。以下の3行を追加。



MASQUERADE_AS(`AAAA.com’)dnl
MASQUERADE_DOMAIN(`localhost.localdomain’)dnl
FEATURE(masquerade_envelope)dnl



これは、
localhost.localdomain 」から送ろうとする場合(2行目)
localhost.localdomain は各自のメールサーバ名だね:roll:
「AAAA.com」としてメールを送信する(2行目)
※AAAA.comは自分の持ってるドメイン名
残りの設定(3行目)は難しいので「おまじない」と思って。

で、m4コマンドでsendmail.cfを作って
いざsendmailを再起動。そしてメールを送信すれば:mrgreen:


TrackBacks

このコメントのRSS

TrackBack URL : http://project.iifp.biz/modules/xmaoh0/archives/2007/06/13/72/trackback/

この投稿には、まだコメントが付いていません

コメント

 
投稿された内容の著作権はコメントの投稿者に帰属します。

投稿者 スレッド
ゲスト
投稿日時: 2009-5-18 15:07  更新日時: 2009-5-18 15:07
 good!
you can get wow power leveling and wow gold wow power leveling
返信

投稿者 スレッド
ゲスト
投稿日時: 2009-9-23 5:36  更新日時: 2009-9-23 5:36
 Re: good!
Pour apprécier la vie et la mode à son extrémité, essayer le datejust de replica rolex de reproduction de nos magasins en ligne.
返信

投稿者 スレッド
ゲスト
投稿日時: 2010-9-1 12:17  更新日時: 2010-9-1 12:17
 Re: CGI+sendmail経由でメールが送れない???
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.
返信


Presented by Forplus Corp. © 2009-2014