PIXNET Logo登入

No Money No Honey

跳到主文

Just Another Beginning

部落格全站分類:不設分類

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 7月 21 週四 201609:50
  • Postfix設定對付惱人的垃圾信

垃圾信標頭: Return-Path: <webmd@healthylifestyle1.website>
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on
    mail.t3ex-techiview.com
X-Spam-Level: ***
X-Spam-Status: No, score=3.4 required=5.0 tests=BAYES_00,HTML_MESSAGE,
    RDNS_NONE,T_REMOTE_IMAGE,URIBL_BLOCKED,URIBL_DBL_SPAM,XPRIO autolearn=no
    version=3.3.1
Delivered-To: roger.lin@XXX.com
Received: from eo09t.healthylifestyle1.website (unknown [185.153.228.53])
    by mail.t3ex-techiview.com (Postfix) with ESMTP id BB00D7A01DE
    for <it@XXX.com>; Wed, 20 Jul 2016 20:43:18 +0800 (CST)
Received: from 0102d464.eo09t.healthylifestyle1.website ([127.0.0.1]:10236 helo=eo09t.healthylifestyle1.website)
    by eo09t.healthylifestyle1.website with ESMTP id 01BBAMRQXJT02D4QHCHVLKST64;
    for <it@XXX.com>; Wed, 20 Jul 2016 08:43:15 -0400
To: <it@XXX.com>
Date: Wed, 20 Jul 2016 08:43:15 -0400
Message-ID: <12363301696142412365811837531033@eo09t.healthylifestyle1.website>
From: "WebMD" <WebMD@healthylifestyle1.website>
Subject: Lose 1lb of belly fat every day!
X-Priority: 3 (Normal) 16961424
Importance: Normal
Content-Language: en-us
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: multipart/alternative;
    boundary="----=Part.600.8474.1469018595"
X-Hiview-MailScanner-Information: Please contact the ISP for more information
X-Hiview-MailScanner-ID: BB00D7A01DE.AC03B
X-Hiview-MailScanner: Found to be clean
X-Hiview-MailScanner-From: webmd@healthylifestyle1.website
(繼續閱讀...)
文章標籤

NoMoney NoHoney 發表在 痞客邦 留言(0) 人氣(191)

  • 個人分類:Postfix
▲top
  • 7月 19 週二 201617:04
  • 20160719-事件1530與1058造成加入網域GPO異常無法套用問題

clip_image001
錯誤訊息: ========================= 記錄檔名稱: System 來源: Microsoft-Windows-GroupPolicy
(繼續閱讀...)
文章標籤

NoMoney NoHoney 發表在 痞客邦 留言(0) 人氣(3,921)

  • 個人分類:Windows
▲top
  • 7月 19 週二 201617:01
  • 20160719-事件1530與1058造成加入網域GPO異常無法套用問題

clip_image001
錯誤訊息: ========================= 記錄檔名稱: System 來源: Microsoft-Windows-GroupPolicy 日期: 2016/7/19 下午 04:41:45 事件識別碼: 1058 工作類別: 無 層級: 錯誤 關鍵字:
(繼續閱讀...)
文章標籤

NoMoney NoHoney 發表在 痞客邦 留言(0) 人氣(78)

  • 個人分類:Windows
▲top
  • 6月 08 週三 201619:16
  • W124 E220 進廠大保養後煥然一新阿

20160608-賓永誠W124維修菜單-1
都不知壞了這麼多東西,保養後有脫胎換骨的感覺阿,E220 這台老車很有味道,希望能伴我走完我的人生。
(繼續閱讀...)
文章標籤

NoMoney NoHoney 發表在 痞客邦 留言(0) 人氣(212)

  • 個人分類:
▲top
  • 6月 08 週三 201619:11
  • W124 E220 進廠大保養後煥然一新阿

20160608-賓永誠W124維修菜單-1
都不知壞了這麼多東西,保養後有脫胎換骨的感覺阿,E220 這台老車很有味道,希望能伴我走完我的人生。
(繼續閱讀...)
文章標籤

NoMoney NoHoney 發表在 痞客邦 留言(0) 人氣(524)

  • 個人分類:
▲top
  • 6月 03 週五 201616:55
  • BENZ 老賓 W124 冷車一發就動,熱車靜置一陣子難發動問題&ndash;更換汽油續壓閥(油壓控制器)

1
2016.11.4 更換此零件是很危險的事,請要自行DIY的車友要特別注意,嚴重可能會火燒車。
正確更換方式:
電瓶一定要先斷電,正確的手法要把汽油先抽出來油桶裡面沒汽油了才能開始拆解
========================= BENZ 老賓 W124 冷車一發就動,熱車靜置一陣子難發動問題–更換汽油續壓閥(油壓控制器) 1.首先到Y拍或汽材行買個新的汽油壓力閥控制器
(繼續閱讀...)
文章標籤

NoMoney NoHoney 發表在 痞客邦 留言(0) 人氣(2,694)

  • 個人分類:
▲top
  • 3月 10 週四 201616:32
  • 20160310-Window2003檔案伺服器移轉Windows2012

clip_image001
1. 使用微軟robocopy.exe工具。 2. 流程: 先用robocopy從WINDOWS2003複製一次檔案至WINDOWS2012 => 設定好分享資料夾權限 => 再用robocopy的差異備份從WINDOWS2003複製一次檔案Windows2012(大幅縮短移轉時間) => 將Windows2012 IP與Windows2003的IP互換即可上線。 3. 在Windows2012上掛載Windows2003 D$為Z槽,CMD模式下輸入指令: robocopy Z:\ D:\ /E /COPYALL /DCOPY:T /XD "System Volume Information" /XD "TEMP"
(繼續閱讀...)
文章標籤

NoMoney NoHoney 發表在 痞客邦 留言(0) 人氣(515)

  • 個人分類:SERVER
▲top
  • 2月 27 週六 201616:34
  • Windows 2012 Server 更新UID方式


以前XP用GHOST複製電腦時,如果在網域的環境下需執行微軟 NewUID程式來更新XP的UID,以達成讓UID唯一性,在網域環境才不會出問題。 Window 2012 Server要更新UID已內建程式可執行。 http://loveworld.blog.51cto.com/5092260/994986 ====================================================================== 其实本文章没什么技术含量,算是一个小小的tips。只是以前遇到好多人对SID都不是很清楚,也不知道如何查看一台机器的SID,ghost备份或者虚拟机生成克隆虚拟机的时候加域也加不进去,在这里我做一些简单的介绍,如果对此了解的话就可以跳过本文了。
(繼續閱讀...)
文章標籤

NoMoney NoHoney 發表在 痞客邦 留言(0) 人氣(158)

  • 個人分類:SERVER
▲top
  • 3月 01 週二 201114:39
  • Mailscanner取回隔離區的信-Releasing mail from the quarantine

Releasing mail from the quarantine - queue files For the purposes of this, I’m assuming you have set up a single (safe!) postfix instance, with messages going to the HOLD queue, before being processed by MailScanner and sent to the INCOMING queue. You also need to be saving whole messages as queue files. In MailScanner.conf ensure that you have # When you quarantine an entire message, do you want to store it as
# raw mail queue files (so you can easily send them onto users) or
# as human-readable files (header then body in 1 file)?
Quarantine Whole Messages As Queue Files = yes
Quarantined emails are by default kept in /var/spool/MailScanner/quarantine and sorted into subdirectories by date. With any luck it will be dead easy to find, as MailScanner will have sent a message including text along the lines of either:
A: If it’s a quarantined virus, or other dangerous content. “Note to Help Desk: Look on the <Your text> in /var/spool/MailScanner/quarantine/20050309 (message
6BC5E368497.3C3A6).”
MailScanner keeps such quarantined emails in their own directories, thus the directory containing the quarantined message will be (in this example): /var/spool/MailScanner/quarantine/20050309/6BC5E368497.3C3A6. In this directory, you should see the original queue file, named as a 10 digit hex number matching the name of the directory. There should also be copies of any attachments that may have been picked up by the virus scanning engine or file filtering.
B: If it’s a quarantined spam "Your system administrators will need the following information:
Server name: <Your Server>
Message id: 46EE0E18151.CE630
Date code: 20080509"
MailScanner keeps all spam on a given day in the same directory, thus the directory containing the quarantined message will be (in this example): /var/spool/MailScanner/quarantine/20080509/spam.
If you want to check the original message use: # postcat <filename>
Releasing an email from quarantine is a simple matter of replacing the queue file back into the Postfix queue, so that it gets sent. The permissions on the file are wrong, however and must be changed. # chmod 700 <filename>
The file must now be moved into /var/spool/postfix/incoming. There may be 16 directories in there (Collectively referred to as ‘hashed queue files’) each corresponding to a hexadecimal digit, depending which version of Postfix you are running. First check if you have hashed queue files by: # ls /var/spool/postfix/incoming
If no directories are listed then follow the instructions below but do not add the trailing letter/ number.
The file must be placed in the directory which corresponds to the first digit of the filename. So in the example above, it must go into /var/spool/postfix/incoming/6. We must also be sure to preserve the ownership and permissions of the file when moving it, so we use “cp -p”. If the message is a spam, we must also remove the trailing 6 characters.
Thus for the example above: # cp –p 6BC5E368497 /var/spool/postfix/incoming/6
or for the example quarantined spam # cp –p 46EE0E18151.CE630 /var/spool/postfix/incoming/4/46EE0E18151
The email will disappear from the queue and be delivered.
Thanks to Joshua Hirsh for the details and Stef Morrell for writing the document
Releasing mail from the quarantine - with a bash script
Maybe it’s too circuitous for you to do all the steps in the section above to release a mail. For this I wrote a tiny script to release very easily. To use this script you should set the MailScanner environment identically to the article above.
To use this script copy it to a file and make it executable.
The Syntax: release.sh <Message-ID> (e.g. release.sh 5B604228086.932F0) #!/bin/sh
if [ -z "$1" ]; then
echo "Syntax: release.sh <Message-ID> i.e. 5B604228086.932F0 (case sensitive)"
exit
fi
#change in the quarantine folder
folder=`find /var/spool/MailScanner/quarantine/ -name $1`
cd $folder
#set the mailfile executable
mailname=`echo $1 | cut -d . -f 1`
chmod u+x $mailname
#lets get the first character
char=`echo $1 | cut -b 1-1`
#copy the mail
cp -a $mailname /var/spool/postfix/incoming/$char/
echo Mail $mailname released
Releasing mail from the quarantine - message files
If you don’t quarantine the complete queue file, but instead have the rfc822 message file, releasing messages are actually a bit simpler (for postfix) than the above, since you can use the postfix sendmail convenience program.
In MailScanner.conf you have Quarantine Whole Messages As Queue Files = no
and in the quarantine directory you have a file called message (this is the complete human-readible message, but without the envelope info). Just do cd /path/to/quarantine/dir
sendmail -t -i < message
to send the message to the recipient(s) as found in the message file, or cd /path/to/quarantine/dir
sendmail -i alternate_recipient@example.net < message
to send the message to an alternate recipient (of course you can combine them). The -i option is to avoid terminating the message prematurely on a spurious single “.” on a line in the message file.
If you use MailWatch, this can also release the message iff you don’t quarantine the whole message file as the queue file, although this uses a different method to release messages from the GUI.
Releasing mail from the quarantine - queue files postfix (again)
In a larger environment with many hosts and thousands of quarantined emails per day, we’ve found it impractical to reply to each email released or deleted from a queue, and simply process it without fanfare. The code below is modified from the release.sh above to accomodate moving the released mail back into postfix using the original mail ID. In addition, our postfix install required us to rename the queue file to its shortname, that is, the 10 or 11 character filename before postfix would accept the email into the queue.
The Syntax: release.sh <Message-ID> (e.g. release.sh 5B604228086.932F0) #!/bin/sh
if [ -z "$1" ]; then
echo "Syntax: release.sh <Message-ID> i.e. 5B604228086.932F0 (case sensitive)"
exit
fi
#change in the quarantine folder
folder=`find /var/spool/MailScanner/quarantine/ -name $1 | sed -e "s/$1//g"`
cd $folder
#set the mailfile executable
mailname=`echo $1 | cut -d . -f1`
chmod u+x $1
#lets get the first character
char=`echo $1 | cut -b 1-1`
#copy the mail
cp -a $1 /var/spool/postfix/incoming/$char/$mailname
The following is for recent postfixes (2.3, 2.4) which seem to have a flat incoming directory: #!/bin/sh
# this is the final destination for the mail to be released:
# postfix's incoming queue
POSTFIX_DEST=/var/spool/postfix/incoming
# check for valid parameters
if [ -z "$1" ]; then
echo "Syntax: release.sh <Message-ID>"
echo "Example: release.sh 678362AC.9CFE7"
exit
fi
# find the specific mail in the quarantine folders
folder=`find /var/spool/MailScanner/quarantine/ -name $1`
mailname=`echo $1 | cut -d . -f1`
# copy the mail
if [ -e $POSTFIX_DEST/$mailname ] ; then
echo "ERROR: $mailname already in $POSTFIX_DEST! EXITING"
echo "This should not happen"
exit 255
fi
cp -avi "$folder/$mailname" "$POSTFIX_DEST/$mailname"
# make it 0700 so that the mail is deemed ready
chmod 0700 $POSTFIX_DEST/$mailname
Releasing mail from the quarantine - the one liner
sudo install -m 0700 -o postfix <source message> /var/spool/postfix/incoming
Releasing mail from the quarantine - alias with intelligenceintegrate() {
# integration: antonym of quarantine
# Pass the message ID as obtained from user's email as $1
DEST=$(postconf queue_directory | cut -d= -f2)/incoming
SOURCE=$(find /var/spool/MailScanner/quarantine -name "$1")
install --verbose --mode=0700 --owner=postfix $SOURCE $DEST
}
Updated bash script
Line 9 on initial bash script returned filename with full path and not folder, as expected. Instructions at the top also used the cp -p option, and not -a. Instead of cd’ing to quarantine folder, this will do the copy and preserve permissions. #!/bin/sh
if [ -z "$1" ]; then
echo "Syntax: release.sh <Message-ID> i.e. 5B604228086.932F0 (case sensitive)"
exit
fi
#find the quarantined file and set permissions
quarantined_file=`find /var/spool/MailScanner/quarantine/ -name $1`
chmod u+x $quarantined_file
#truncate the filename
mailname=`echo $1 | cut -d . -f 1`
#lets get the first character
char=`echo $1 | cut -b 1-1`
#copy the mail, destination is the truncated filename
cp -p $quarantined_file /var/spool/postfix/incoming/$char/$mailname
echo Mail $mailname released
(繼續閱讀...)
文章標籤

NoMoney NoHoney 發表在 痞客邦 留言(1) 人氣(661)

  • 個人分類:Linux
▲top
  • 12月 16 週四 201014:17
  • 好用的1919乘法,可快速算11~19的相乘方法

印度的1919乘法(補充說明) 想到之前台灣不是叫小學生連99乘法表都不要背了嗎...? 當台灣媽媽因為小朋友會背99乘法高興的同時... 印度小孩已經在被1919乘法了! 難怪近幾年印度進步得那麼快!

印度的九九乘法表是從1背到19(→19×19乘法?)

不過您知道印度人是怎麼記11到19的數字嗎?

我是看了下面這本書之後才恍然大悟的...

「印度式計算訓練」

2007年6月10日第一版第6刷發行株式會社晉遊社發售...

介紹了加減乘除的各種快速計算方法...

不過在這裡我只介紹印度的九九乘法...

因為實在太神奇了!!

下面的數字跟說明都是引用該書P.44的例子...

請試著用心算算出下面的答案:

13×12=?
(被乘數)×(乘數)=?

印度人是這樣算的...

****************************************************************************

第一步:
先把被乘數(13)跟乘數的個位數(2)加起來
13+2=15

第二步:
然後把第一步的答案乘以10(→也就是說後面加個0)

15×10=150

第三步:
再把被乘數的個位數(3)乘以乘數的個位數(2)
2×3=6

(13+2)×10+6=156

****************************************************************************

就這樣,用心算就可以很快地算出11×11到19×19了喔!

這真是太神奇了!

我們試著演算一下...

14×13:
(1)14+3=17
(2)17×10=170
(3)4×3=12
(4)170+12=182

16×17:
(1)16+7=23
(2)23×10=230
(3)6×7=42
(4)230+42=272

真的是耶,好簡單喔!

怎不早點讓我知道呢?!

(繼續閱讀...)
文章標籤

NoMoney NoHoney 發表在 痞客邦 留言(0) 人氣(1,099)

  • 個人分類:新奇
▲top
«1...22232472»

自訂側欄

自訂側欄

個人資訊

NoMoney NoHoney
暱稱:
NoMoney NoHoney
分類:
不設分類
好友:
累積中
地區:

熱門文章

  • (450)DELPHI 7 使用ADO元件寫入資料庫強制四捨五入小數到第四位問題
  • (18,072)公司部門英文縮寫簡稱大全(1)
  • (10,263)HP ProCurve 1810G-24 GIGA SWITCH簡易設定
  • (7,414)DELPHI 7 下將文字存成UTF8格式
  • (9,164)林宥嘉 - 說謊 歌詞是什麼意思 ?
  • (11,216)使用GPO規則幫使用者自動安裝印表機
  • (897)DelForExp - 可以幫你重新編排 Delphi 程式碼
  • (4,071)每日一句-為什麼要叫衛生眼?
  • (11,333)DELPHI 字串函式大全
  • (19,896)Delphi控制Excel範例大全

文章分類

  • LINUX (1)
  • 汽車 (1)
  • OPENVPN (1)
  • OPENSSL (1)
  • OSSIM (1)
  • 印表機 (1)
  • ANDRIOD (1)
  • 不斷電系統UPS (1)
  • 生活 (6)
  • 鼠來寶 (1)
  • PC零組件 (2)
  • 政治垃圾 (60)
  • 政治與歷史 (13)
  • Open-audit (2)
  • SOPHOS XG (2)
  • NAS (1)
  • TOYOTA (1)
  • RouterOS (3)
  • YAMAHA勁戰4代六期 (1)
  • 政治 (11)
  • SERVER (7)
  • 養生 (1)
  • W124 (14)
  • OFFICE (1)
  • Postfix (7)
  • 遊戲 (1)
  • 音樂 (2)
  • FTP (1)
  • 網路設備 (3)
  • 網頁設計 (2)
  • PHP (3)
  • EXCEL (1)
  • 無料好用工具 (2)
  • MSSQL (6)
  • 飲食 (6)
  • 新聞及政治 (16)
  • 電腦和網際網路 (54)
  • DOS (1)
  • 知識 (6)
  • MySQL (2)
  • 電腦專有名詞 (1)
  • 閒聊 (72)
  • 娛樂 (13)
  • 電腦打版刺繡MARK、臂章 (2)
  • 科技 (13)
  • 電腦虛擬化技術 (28)
  • Windows (45)
  • DELPHI程式語言 (29)
  • 新奇 (15)
  • Linux (19)
  • 未分類文章 (1)

最新文章

  • Synology 群暉 DSM 7.2.2 手動安裝Video Station-How to Add Video Station BACK to DSM 7.2.2
  • LibreNMS Rocky Linux 9.5 安裝 設定 教學
  • #一人一票的意義 新加坡國父李光耀:我從不相信「民主」會帶來進步!
  • 台灣選舉哪裡是民主? 其實是"金主"
  • WINDOWS 11 無法安裝SERVER 2003 或 XP分享的印表機出現 0x00000709 錯誤,印表機救星來了。
  • WINDOWS登入第三方兩步驟驗證(2FA)方案設定教學-PROTECTIMUS-免費版有10個帳號可用
  • 台灣的窘境越來越明顯
  • 國產車油電93萬,這價位在大陸可以買到BYD PHEV續行200公里版本,隔音內裝品質引擎動力都遠勝台灣國產車,台灣人還要被自己人盤多久? 被自己人欺負多久?
  • 台灣傻子多到騙子不夠多來騙真的不是空穴來風
  • 說個笑話:大陸都快要有第四艘航母了,台灣薪資伙食費+600本薪-600

動態訂閱

文章精選

文章搜尋

誰來我家

參觀人氣

  • 本日人氣:
  • 累積人氣: