發表文章

目前顯示的是 11月, 2012的文章

為何世界上沒有龍、鳳、麒麟?

天神把龍、鳳、麒麟、象四種動物集合起來,打賭玩一個遊戲,就是講故事給豬聽, 如果豬沒有笑,哪個物種就要在人間被消失。 首先是龍,講了笑話,沒看見豬反應,天神就把人間的龍給帶回天。 接下來是鳳,生動地講了一個笑話,也沒看見豬反應,天神也把人間的鳳都帶回天。 第三個麒麟,也沒逃過被帶回天上的命運。 最後的象,很認真地講: "他有一條很心愛的泳褲,破了一個洞,他想要找一個專家把泳褲補起來,這樣 游泳的時候就不會漏水了。" 豬聽了以後,便開始哈哈地笑了,所以這個世界,可以在動物園跟非洲看見大象。 天神就問豬啦,為什麼會覺得大象的泳褲故事好笑呢?豬回答說: 「沒有啦!我才剛想通龍的笑話爆梗在哪,真的有夠好笑.... XD 」 (你笑了吧!)

require_rdns.m4 whitelist users & IP for sendmail.

Tested OK. Enable unqualified rdns MTA send mail to local specific user. (blah blah reasons...) In "/etc/mail" folder, (ex: fedora) First, enable 'require_rdns.m4' in sendmail.mc configuration with second default REJECT option. HACK(`require_rdns',`REJECT')dnl Watch out the ( ` back quote ) and ( ' single quote) differences, this enable sendmail with rdns check. Read the instruction in rdns.m4, for more detail from author. Then enable specific user and IP for whitelists, no rDNS for them in access map. rdns:fooUserName  OK rdns:11.22.33.44  OK rdns:noFooMail  REJECT 'OK' means no rdns challenage in mail transfering, 'REJECT' means valid check is necessary. Final steps are rebuild access map and m4 file of sendmail. makemap hash access.db < access and m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf service sendmail restart Congratulations!! rDNS with whitelist check enabled, incoming mails to 'noFooMa