2013年5月16日木曜日

公開VPNゲート

http://www.vpngate.net/ja/

2013年5月12日日曜日

X11で縦表示とか画面の回転設定


xranderで設定した

/etc/kde4/kdm/Xsetupに以下を追記
xrandr --output HDMI-1 --rotate left --primary
参考リンク
UbuntuTips/Hardware/HowToChangeMonitorResolution

2013年5月4日土曜日

postfixで複合条件アクション

こんな感じでスパムメールを拒否してみた

目標は:特定のIPかつ(123.123.123.123)、特定のアドレス(reject@)を拒否する

まず、check_client_accessをつくる
smtpd_restriction_classesで制限クラスをつくって
client_accessで定義した制限クラスに飛ばす


/etc/postfix/main.cf
smtpd_recipient_restrictions = permit_mynetworks ,
    check_client_access hash:/etc/postfix/client_access ,
    permit_sasl_authenticated ,
    reject_unauth_destination
smtpd_restriction_classes = spam_restriction
spam_restriction = check_recipient_access hash:/etc/postfix/rejectaddress

/etc/postfix/client_access
123.123.123.123 spam_restriction

/etc/postfix/rejectaddress
reject@ REJECT

参考リンク
Postfix で特定の IP アドレスを拒否する設定
[postfix-jp: 115] Re: 複合条件での送信制限は可能でしょうか?