前回ログすら吐かなくなってしまったpostfix。
何とも入り口辺りをウロウロ彷徨っている印象である。
postconfの吐いたエラーメッセージでvirtual_alias_domainsの二重定義を見つけた。
|
1 |
postconf: warning: /opt/local/etc/postfix/main.cf, line 772: overriding earlier entry: virtual_alias_domains=$virtual_alias_maps hash:$data_directory/maps/virtual_domains |
これを削ったらps ax | grep postfixがmasterだけで無くなったのだが、またmasterが落とせなくなってしまった。
|
1 2 3 4 5 |
% ps ax | grep postfix 30538 ?? Ss 0:00.02 /opt/local/bin/daemondo --label=postfix --start-cmd /opt/local/etc/LaunchDaemons/org.macports.postfix/postfix.wrapper start ; --stop-cmd /opt/local/etc/LaunchDaemons/org.macports.postfix/postfix.wrapper stop ; --restart-cmd /opt/local/etc/LaunchDaemons/org.macports.postfix/postfix.wrapper restart ; --pid=fileauto --pidfile /opt/local/var/spool/postfix/pid/master.pid 30605 ?? Ss 0:00.01 /opt/local/libexec/postfix/master -w 30625 s001 S+ 0:00.00 grep postfix |
以前にもあったなぁ。
あの時は何も間違えていたっけか……(遠い目
しかし、ログは吐くようになった。(postlogd側で無くsyslog側に)
少なくとも、postfixのログデーモンが動いて居ないらしい?
master.cfで-v外したからかなぁ。(違うらしい)
info_logとdebug_logには同じ内容が書き込まれていました。
|
1 2 |
Apr 17 15:44:29 macmini spamd[467]: spamd: error: failed to obtain port and ip from socket at /opt/local/libexec/perl5.34/spamd line 1683. Apr 17 15:44:29 macmini spamd[467]: , continuing |
spamd絡みなの?
該当ファイルの内容はこうでした。
|
1 2 3 4 5 6 7 8 9 10 11 12 |
if ($client->isa('IO::Socket::UNIX')) { $remote_hostname = 'localhost'; $remote_hostaddr = '127.0.0.1'; $remote_port = $socket_info->{path}; info("spamd: got connection over %s", $socket_info->{path}); } else { ($remote_port, $remote_hostaddr, $remote_hostname, $local_port) = peer_info_from_socket($client); $remote_hostaddr or die 'failed to obtain port and ip from socket'; ……… |
IntegratedSpamdInPostfixを見ながら、spamfilterを加えてみた。その結果をpostconfで見てみる。
|
1 2 3 4 |
% postconf -M |grep spam smtp unix - - n - - smtp -v -o content_filter=spamfilter spamfilter unix - n n - - pipe flags=Rq user=spamd argv=/usr/bin/spamfilter.sh -oi -f ${sender} ${recipient} |
起動を繰り返したが、debug_logもinfo_logも増えていない。正しいのかも知れない。
ただpostlogdがpsに上がって来ないのは何故。
起動、終了は(入力が少ないので)sudo port load postfixで行っている。これがいけないの?>エロい人
さて、一晩経ってログを見てみたらdebug_logとinfo_logの容量が増えていた。
何か起きたかな?
何であっても、一寸は進んだ訳だし嬉しい。
さてログの内容は?
|
1 2 3 4 5 6 7 |
Apr 19 05:37:01 macmini spamd[85803]: spamd: server killed by SIGTERM, shutting down Apr 19 05:37:09 macmini spamd[87813]: config: failed to parse line in /opt/local/etc/mail/spamassassin/local.cf (line 137): rewrite_subject 0 Apr 19 05:37:09 macmini spamd[87813]: config: failed to parse line in /opt/local/etc/mail/spamassassin/local.cf (line 141): subject_tag *****SPAM***** Apr 19 05:37:09 macmini spamd[87813]: config: failed to parse line in /opt/local/etc/mail/spamassassin/local.cf (line 149): use_terse_report 0 Apr 19 05:37:09 macmini spamd[87813]: config: failed to parse line in /opt/local/etc/mail/spamassassin/local.cf (line 157): auto_learn 1 Apr 19 05:37:09 macmini spamd[87813]: config: failed to parse line in /opt/local/etc/mail/spamassassin/local.cf (line 163): use_dcc 0 Apr 19 05:37:12 macmini spamd[87813]: spamd: server killed by SIGTERM, shutting down |
おう、spamassassinの設定ミスが一杯だわ。
何も考えずにPostfixでSpam対策を参照。いくつか違っていた処を書き換えた。
さてさてさぁて、どうなるか?

