auxpropfunc error invalid parameter vi /usr/lib/sasl/smtpd.conf pwcheck_method: saslauthd mech_list: login plain saslauthd_version: 2
postmap -q 'd295380453' ldap:/misc/ldap/alias postmap -q 'd295380453' ldap:/misc/ldap/alias; echo $?
cd /usr/src tar -xvzf postfix-2.4.3.tar.gz gunzip postfix-2.4.3-vda-ng-r2.patch.gz cd postfix-2.4.3 patch -p1 < ../postfix-2.4.3-vda-ng-r2.patch make tidy make makefiles CCARGS="-DUSE_TLS -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl -DHAS_LDAP -I/usr/include" \ AUXLIBS="-L/usr/lib -lsasl2 -lldap -llber -lssl -lcrypto" make make install
時としてエラーと間違いやすい紛らわしいコネクションに関する統計情報 Postfixの2.2以降のバージョンで、メール送信後にメールログに出力される統計情報。以下のような統計情報が出力される。 Jan 5 16:37:06 hiro postfix/anvil[16679]: statistics: max connection rate 1/60s for (smtp:xxx.xxx.xxx.xxx) at Jan 5 16:35:42 Jan 5 16:37:06 hiro postfix/anvil[16679]: statistics: max connection count 1 for (smtp:xxx.xxx.xxx.xxx) at Jan 5 16:35:42 Jan 5 16:37:06 hiro postfix/anvil[16679]: statistics: max cache size 1 at Jan 5 16:35:42 これは、以下のようなパラメータをセッティングするための統計情報のようだ。 smtpd_client_connection_count_limit(1つのSMTPクライアントの最大同接続数 デフォルト:50) smtpd_client_connection_rate_limit(1つのSMTPクライアントの単位時間あたりの最大同接続数 デフォルト:制限なし) smtpd_client_event_limit_exceptions(接続カウントや接続速度、SMTP要求速度の制限から除外されるクライアントの指定 デフォルト:$mynetwork) anvil_rate_time_unit(クライアントの接続速度やその他の速度の計算に用いられる単位時間 デフォルト:60s) このような、パラメータが有ったので、これで上記の統計情報で60sの数値が変化するか試しにmain.cfの中に anvil_rate_time_unit = 120 みたいに追加してみた。その結果、 Jan 5 17:22:20 hiro postfix/anvil[16763]: statistics: max connection rate 1/120s for (smtp:xxx.xxx.xxx.xxx) at Jan 5 17:17:28 Jan 5 17:22:20 hiro postfix/anvil[16763]: statistics: max connection count 1 for (smtp:xxx.xxx.xxx.xxx) at Jan 5 17:17:28 Jan 5 17:22:20 hiro postfix/anvil[16763]: statistics: max cache size 1 at Jan 5 17:17:28 うんやっぱ変わったね(笑)。
homedir对系统用户linux下收信 maildir/ 格式时系统用户mail命令不能收信 mailbox 格式OK
连接postfix,验正服务启动状况: # telnet localhost 25 Trying 127.0.0.1... Connected to localhost.localdomain (127.0.0.1). Escape character is '^]'. 220 mail.benet.org ESMTP Postfix ehlo mail.benet.org 250-mail.benet.org 250-PIPELINING 250-SIZE 10240000 250-VRFY 250-ETRN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN mail from:root@yepn.net 250 2.1.0 Ok rcpt to:blog@yepn.net 250 2.1.5 Ok data 354 End data with <CR><LF>.<CR><LF> subject:Mail test! Mail test!!! . 250 2.0.0 Ok: queued as AB94A1A561 quit 221 2.0.0 Bye Connection closed by foreign host.