• 締切済み

Sendmailで起動時にメッセージが出るのですが。。。

MacOSX 10.1.5を使っています。送信専用として、Sendmailを起動して使っているのですが、立ち上がるときに、下記メッセージがLogに出ています。特に使用上は問題なさそうなんですが、これはどの設定ファイルを直せば良いのでしょうか? よろしくお願いします。 mail: Msmtp: Warning: first argument in [IPC] mailer must be TCP or FILE Mesmtp: Warning: first argument in [IPC] mailer must be TCP or FILE Msmtp8: Warning: first argument in [IPC] mailer must be TCP or FILE Mdsmtp: Warning: first argument in [IPC] mailer must be TCP or FILE Mrelay: Warning: first argument in [IPC] mailer must be TCP or FILE

  • Mac
  • 回答数1
  • ありがとう数2

みんなの回答

  • asuca
  • ベストアンサー率47% (11786/24626)
回答No.1

sendmail.cfをみてその中の Msmtp, P=[IPC], F=mDFMuX, S=31/11, R=41/21, T=DNS/RFC822/SMTP, E=\r\n, L=990, A=IPC $h の所の「A=IPC $h」を「A=TCP $h」にかえてみてください。

to-kun
質問者

補足

ありがとうございます。やってみます。 このメッセージが出ていても特に動きには問題無い様なんですが、 これは何のメッセージなんでしょう??

関連するQ&A

  • sendmailコマンドについて

    CentOS5でsendmailをインストールし、/usr/sbin/sendmail -bt -C ./sendmail.cfでテストしようとしたら、sendmail: fatal: open ./sendmail.cf/main.cf: No such file or directoryと表示されてしまいます。/var/log/maillogで見てもpostfix/sendmail[3215]: fatal: open ./sendmail.cf/main.cf: No such file or directoryとほぼ同じ内容が表示されます。rpm -qa | grep sendmailで見てもsendmail-cf-8.13.8-2.el5とsendmail-8.13.8-2.el5と出力されているのでインストールはされていると思うのですが、どうしても解決方法がわかりません。ご教授いただけると幸いです。よろしくお願いします。

  • function()を初めて使いました。エラー。

    かなり初歩的な質問をさせていただきます。 初めてfunction関数を使ったのですが、下記のようなエラーが出ました。 Warning: array_reverse() [function.array-reverse]: The argument should be an array in E:\Web\Chat2\chat\logpage.php on line 99 Warning: array_reverse() [function.array-reverse]: The argument should be an array in E:\Web\Chat2\chat\logpage.php on line 100 Warning: array_reverse() [function.array-reverse]: The argument should be an array in E:\Web\Chat2\chat\function.php on line 38 Warning: flock() expects parameter 1 to be resource, boolean given in E:\Web\Chat2\chat\function.php on line 41 Warning: fputs(): supplied argument is not a valid stream resource in E:\Web\Chat2\chat\function.php on line 48 Warning: flock() expects parameter 1 to be resource, boolean given in E:\Web\Chat2\chat\function.php on line 49 Warning: fclose(): supplied argument is not a valid stream resource in E:\Web\Chat2\chat\function.php on line 50 チャットを作っていて、何度も使う文をfunctionでまとめて、別ファイルに保存し、 requireで呼び出して、str();で使うとこうなりました。 function load(){ $log_data = "./data/log".$_GET['id'].".cgi"; $log_file = file($log_data); $member_data = "./data/member".$_GET['id'].".cgi"; $member_file = file($member_data); } このような形で使っているのですが、何かfunctionを使うにあたって注意などがあれば教えていただけませんか?

    • 締切済み
    • PHP
  • PhpMyAdminにおけるデータベース表示の不備

    個人でネットワークプログラミングを行うため、以下の環境を入れています。 ・PHP Version 5.2.4 ・MySql 5.0.45 ・phpMyAdmin - 2.11.5 ログインなどは出来たのですが、データベースを表示する画面になると以下のエラーメッセージが表示され、データベース一覧が表示できません。 ---------------------------------------------- エラーメッセージ: Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in [phpmyadminまでのパス]\phpMyAdmin\server_databases.php on line 172 Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in [phpmyadminまでのパス]\phpMyAdmin\server_databases.php on line 172 Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in [phpmyadminまでのパス]\phpMyAdmin\server_databases.php on line 172 Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in [phpmyadminまでのパス]\phpMyAdmin\server_databases.php on line 172 Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in [phpmyadminまでのパス]\phpMyAdmin\server_databases.php on line 172 Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in [phpmyadminまでのパス]\phpMyAdmin\server_databases.php on line 172 Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in [phpmyadminまでのパス]\phpMyAdmin\server_databases.php on line 172 合計: 1 Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in [phpmyadminまでのパス]\phpMyAdmin\server_databases.php on line 260 Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in [phpmyadminまでのパス]\phpMyAdmin\server_databases.php on line 260 Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in [phpmyadminまでのパス]\phpMyAdmin\server_databases.php on line 260 Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in [phpmyadminまでのパス]\phpMyAdmin\server_databases.php on line 260 Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in [phpmyadminまでのパス]\phpMyAdmin\server_databases.php on line 260 Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in [phpmyadminまでのパス]\phpMyAdmin\server_databases.php on line 260 Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in [phpmyadminまでのパス]\phpMyAdmin\server_databases.php on line 260 ---------------------------------------------- ソースを眺めていたところ、server_databases.phpにおけるarray_key_exists()で$stat_name, $first_databaseを引数に命令を行っているようですが、$first_databaseに値が設定されていない(=null)ためエラーが起こっているようでした(null避けによりエラーメッセージは出現しなくなった)。 しかし、$first_databaseにはデータベース一覧の情報が入るべきらしく、この値がnullということはありえません。つまり、データベース一覧を取ってこれていないのだろうと仮定したのですが、それ以降の対策が見つかりません。 かれこれ3時間程度迷いました。解決方法を知っている方は教えてください。どうかお願いします…。

  • sendmailで他ドメインのアドレスに送信できません。

    LinuxWorld1月号に付いていたRHL8.0で7.3からアップグレードしました。sendmailはrpmで8.12.5-7にアップグレードしました。以前のsendmail.mcを使ってもう一度sendmail.cfを作成したところローカルドメインのユーザー間ではメールの送信は可能なのですが、他ドメインのメールアドレスにはメール送信ができなくなりました。また、sendmail.cfを作成する際 *** WARNING: missing -T<TMPF> in argument of FEATURE('access_db',hash -o /etc/mail/access.db)という警告が出ますが何のことなのでしょうか。参考にしたsendmail.mc の内容は以下のページのものです。 http://www.geocities.co.jp/SiliconValley-Cupertino/1049/inst_mail.html

  • sendmailの動作に関して

    現在、AIX5.1、sendmail8.11.6p2でメールシステムを 構築しています。 今まで普通に動いていたのですが、ここ最近、/var/spool/mqueueがいっぱいになって、メールが送受信できない事態が起こっています。 ログを見ると、ある人からメールが届くのですが、何らかの理由で受信できない場合、Mailer daemonが返信しようとします。しかし、data Format errorのため送信できないようです。このため、定期的にMailer daemonがメールを送信をしようと試み、そのたびに、失敗しています。同時に、新しいメッセージIDが付いたメールが/var/spool/mqueueに溜まっていってしまいます。 ログはこんな感じです。定期的に以下のような内容が出力されます(メッセージIDは異なる) Sep 20 09:38:55 dns1 sendmail[114638]: j8K0aDb114638: to=<foo@hogehoge.co.jp>, delay=00:00:02, xdelay=00:00:00, mailer=smtp, pri=4622146, r elay=***.*****co.jp. [123.456.789.1011], dsn=5.6.0, stat=Data format error Sep 20 09:38:55 dns1 sendmail[114638]: j8K0aDb114638: j8K0aDc114638: return to sender: Data format error Sep 20 09:39:06 dns1 sendmail[114638]: j8K0aDb114638: Losing ./qfj8K0aDb114638: savemail panic Sep 20 09:39:06 dns1 sendmail[114638]: j8K0aDb114638: SYSERR(root): savemail: cannot save rejected email anywhere: No such file or directory このように、メールが返信できないと、次々に新しいメッセージIDをもったキューを作り出すのは、仕様なのでしょうか?それとも、バグなのでしょうか? また、Mailqを見ても、キューはないのに、/var/spool/mqueueにはメッセージがたくさん残っているように見えるのですが、これは、正常なsendmailの動作の結果できたごみファイルで、できるのが普通なのでしょうか?

  • Sendmail8.11.2について

    Sendmail8.11.2について教えて下さい。 ledhat Linux7.1 にSendmail8.11.2をインスートルしてCFファイルを設定後、mailコマンドにて一般ユーザ同士及びrootから一般ユーザ宛のメールのやり取りはうまく出来るのですがroot宛にメールを送信しようとするとログファイル(/var/log/maillog)に以下のようなエラーが出力されます。 vod sendmail[24661]: f99ClRw24661: from=vod, size=29, class=0, nrcpts=1, msgid=<200110091247.f99 ClRw24661@vod.f-road.ne.jp>, relay=vod@localhost vod procmail[24662]: Insufficient privileges to deliver to "root" vod sendmail[24661]: f99ClRw24661: to=root, ctladdr=vod (501/500), delay=00:00:00, xdelay=00:00: 00, mailer=local, pri=30029, dsn=5.0.0, stat=Insufficient permission なにかのパーミッションでエラーになっているように思われるのですが。なにが悪いのでしょうか。 ちなみにCFのWIDE CFを使用し以下の項目のみを設定しています。 OS_TYPE=linux-redhat MX_SENDMAIL=yes MY_DOMAIN='ドメイン名' OFFICIAL_NAME='オフィシャル名' FROM_ADDRESS='$m' DIRECT_DELIVER_DOMAINS=all QUEUE_DIR='/var/spool/mqueue' その他はデフォルトとなっています。 御存知の方、御教示をお願いします。

  • Openpneを導入したけどエラー

    Warning: array_map() [function.array-map]: Argument #2 should be an array in /home/users/1/サイト名/web/openpne/webapp/lib/util/util.php on line 666 Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/users/1/サイト名/web/openpne/webapp/lib/util/util.php on line 667 Warning: Invalid argument supplied for foreach() in /home/users/1/サイト名/web/openpne/webapp/lib/util/util.php on line 668 Warning: Cannot modify header information - headers already sent by (output started at /home/users/1/サイト名/web/openpne/webapp/lib/util/util.php:666) in /home/users/1/サイト名/web/openpne/webapp/lib/OpenPNE/Smarty.php on line 115 Warning: array_map() [function.array-map]: Argument #2 should be an array in /home/users/1/サイト名/web/openpne/webapp/lib/util/util.php on line 666 Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/users/1/サイト名/web/openpne/webapp/lib/util/util.php on line 667 Warning: Invalid argument supplied for foreach() in /home/users/1/サイト名/web/openpne/webapp/lib/util/util.php on line 668 という感じでOpenpneのログイン画面でエラーが出てきたのですが どうしたら良いでしょうか?

  • sendmail_fromについて(xampp)

    いつもお世話になっております。 今回はメールの送信についてなのですが、 メール送信用のフォームをつくり実行してみたのですが以下のエラーが出てしまいます。 Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\xampp\htdocs\sample\mail2.php on line 27 c:/xampp/php/php.ini(およびphp5.ini)を [mail function] ; For Win32 only. SMTP = localhost smtp_port = 25 ;For Win32 only. sendmail_from = *******@yahoo.co.jp と変更しapacheを再起動して phpinfo()で変更を確認してみたのですが 「sendmail_from    no value no value」 と変更が反映されません。 ここの変更が反映されない限りエラーが出続けてしまうと思うのですが、どうすれば変更が反映されるのでしょうか? 使ってるバージョンは php 5.25 xampp 2.5です。 よろしくお願いいたします。

    • 締切済み
    • PHP
  • sendmailのMAIL FROMアドレスに関して

    現在、AIX5.1、sendmail8.11.6p2でメールシステムを構築しています。 ある発信元(foo@hogehoge.co.jp)のメールが、転送先サーバの容量制限などが原因で、配送できなかった場合、MAILER DAEMONがバウンスメールを送信者にかえす訳ですが、このとき、MAIL FROMが空白になっているようで、返送先のサーバ(xx1.xxxx.co.jp)から、DATA FORMAT ERRORといった内容のエラーが返ってきているようです。sendmailでは、Mailer daemonからメールを送る際、MAIL FROMを指定することはできないのでしょうか? また、何故空白になってしまうのでしょうか? 以下、mqueueのログです。 # cat xfj8K00Qa69822 ... while talking to xx1.xxxx.co.jp.: >>> MAIL From:<> <<< 501 bogus mail from 501 5.6.0 <foo@hogehoge.co.jp>... Data format error 554 4.0.0 savemail: cannot save rejected email anywhere: No such file or directory 以上、よろしくお願いいたします。

  • sendmail -fオプションの指定はどこで行えばいいでしょうか?

    キャノネットというサーバーでフリーのメールフォームCGI設置を試みました、-fと-tオプション設定を行わなければならないみたいなのですが、今回使用したいCGIの初期設定ファイルsendmail指定部分下記に #sendmailのパス $init->{sendmail_path} = '/usr/local/bin/sendmail -t -f ' メールアドレス' '; と指定しましたがCGIエラーとなってしまい、どうやらプログラム内を書き換える必要があるみたいなのですが、知識不足のため どうやって変更するのかがわからず困っております。 お詳しい方、下記のプログラム内の変更部分をお教え下さい。 よろしくお願い致します。 (CGIはURLのものを使用しております。) http://www.web-liberty.net/download/mailplus/index.html -------------------------------------------------- package webliberty::Sendmail; use strict; use Jcode; use webliberty::Encoder; ### コンストラクタ sub new { my $class = shift; my $self = { sendmail => shift, send_to => undef, send_from => undef, subject => undef, name => undef, message => undef, files => undef, x_mailer => undef }; bless $self, $class; return $self; } ### メール送信 sub sendmail { my $self = shift; my %args = @_; $self->{send_to} = $args{'send_to'}; $self->{send_from} = $args{'send_from'}; $self->{subject} = $args{'subject'}; $self->{name} = $args{'name'}; $self->{message} = $args{'message'}; $self->{files} = $args{'files'}; $self->{x_mailer} = $args{'x_mailer'}; if (!$self->{send_to}) { $self->{send_to} = 'example@example.com'; } if (!$self->{send_from}) { $self->{send_from} = 'example@example.com'; } if (!$self->{subject}) { $self->{subject} = 'No Subject'; } if (!$self->{message}) { $self->{message} = 'No Message'; } if (!$self->{x_mailer}) { $self->{x_mailer} = 'Web Liberty'; } foreach ($self->{subject}, $self->{name}, $self->{message}) { $_ =~ s/<br ?/>/?n/g; $_ =~ s/&amp;/&/g; $_ =~ s/&lt;/</g; $_ =~ s/&gt;/>/g; $_ =~ s/&quot;/"/g; } if ($self->{name}) { $self->{send_from} = "?"" . $self->_encode($self->{name}) . "?" <$self->{send_from}>"; } $self->{message} =~ s/?xEF?xBD?x9E/?xE3?x80?x9C/g; $self->{message} = Jcode->new($self->{message}, 'utf8')->jis; my @files = split(/?n/, $args{'files'}); my $boundary; if ($files[0]) { require webliberty::File; $boundary = time; while ($self->{message} =~ /$boundary/) { $boundary++; } } open(webliberty_Sendmail, "| $self->{sendmail} -t") or return(0, "Sendmail Error : $self->{sendmail}"); print webliberty_Sendmail "X-Mailer: $self->{x_mailer}?n"; print webliberty_Sendmail "To: $self->{send_to}?n"; print webliberty_Sendmail "From: $self->{send_from}?n"; print webliberty_Sendmail "Subject: " . $self->_encode($self->{subject}) . "?n"; if ($files[0]) { print webliberty_Sendmail "Content-Type: multipart/mixed; boundary=?"$boundary?"?n?n"; print webliberty_Sendmail "--$boundary?n"; } print webliberty_Sendmail "Content-Transfer-Encoding: 7bit?n"; print webliberty_Sendmail "Content-Type: text/plain; charset=iso-2022-jp?n?n"; print webliberty_Sendmail "$self->{message}?n"; foreach (@files) { my $file_ins = new webliberty::File($_); my $file_name = $file_ins->get_name . '.' . $file_ins->get_ext; print webliberty_Sendmail "--$boundary?n"; print webliberty_Sendmail "Content-Type: application/octet-stream; name=?"$file_name?"?n"; print webliberty_Sendmail "Content-Transfer-Encoding: X-uuencode?n"; print webliberty_Sendmail "Content-Disposition: attachment; filename=?"$file_name?"?n?n"; if (open(webliberty_Sendmail_FILE, $_)) { binmode(webliberty_Sendmail_FILE); print webliberty_Sendmail $self->_uuencode(join('', <webliberty_Sendmail_FILE>), $file_name); close(webliberty_Sendmail_FILE); } } close(webliberty_Sendmail); return 1; }

    • ベストアンサー
    • CGI