顯示文章

這裡允許您檢視這個會員的所有文章。請注意, 您只能看見您有權限閱讀的文章。


文章 - Acoju

頁: [1] 2
1
Linux 討論版 / Re: 硬盘mount不上
« 於: 2015-10-29 13:20 »
拿一片live cd從光碟開機到root使用者視窗,用檔案總管視窗去看那一顆壞硬碟有沒有你要的資料不是很快。

2
主板BIOS關掉smart card裝置看可不可以開機,等系統可以上網看看是否還要用smart card裝置,先把裝置驅動裝好,是不是防火牆也必需設定一下,再開BIOS的smart card設定,或者GOOGLE centos6.6 initializing openct smart card terminals看有沒有資料,或者系統就是設定root下禁用 smart card,或者按ctrl+c或Esc鍵看可不可以跳過

3
原來Mysql有ibdata1這個會長大!
察看一下自己的mysql安裝DATA的掛載磁碟空間是不是足夠,
查看一下記憶體跟SWAP夠不夠
查看看log目錄空間滿了嗎
mysql跟系統合嗎

4
drop果然很有效。
fedora redhat 現在內定使用Firewall
firewall-cmd --permanent --zone="public" --add-rich-rule='rule family="ipv4" source address="146.0.42.76" drop'
至於from=<sb@seo.uk.net>的問題,發覺它是來自系統內部本身
su -
密碼:
[root@localhost ~]# postqueue -p
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
2B92E2238E3      621 Mon Oct 27 00:33:57  sb@seo.uk.net
(host mailstore1.europe.secureserver.net[188.121.52.56] refused to talk to me: 554 n1plibsmtp01-03.prod.ams1.secureserver.net bizsmtp RBL Reject -Please submit an unblock request <http://unblock.secureserver.net/?ip=59.126.238.72>  <http://x.co/rblbounce>)
                                         sb@seo.uk.net

91D5D22395B      623 Mon Oct 27 00:37:21  sb@seo.uk.net
(host mailstore1.europe.secureserver.net[188.121.52.56] refused to talk to me: 554 n1plibsmtp01-01.prod.ams1.secureserver.net bizsmtp RBL Reject -Please submit an unblock request <http://unblock.secureserver.net/?ip=59.126.238.72>  <http://x.co/rblbounce>)
                                         sb@seo.uk.net

-- 2 Kbytes in 2 Requests.
[root@localhost ~]# postsuper -d ALL
postsuper: Deleted: 2 messages
[root@localhost ~]# postqueue -p
Mail queue is empty
有駭客這麼厲害!!那不就是特別超級的可以從外部把mail塞進server?
我想想後,這應該是在安裝WP的外掛時,裝進去測試的時候,跑進MAILSERVER的吧!
在想可能會有問題,果然可以驗證到。

5
SASL LOGIN authentication failed (已解)。原來是fail2ban要抓的maillog檔設錯了,所以擋沒到,不過設10小時過了之後。。。還在踹!!

在來就是Oct 27 16:08:30 localhost postfix/qmgr[4604]: 2B92E2238E3: from=<sb@seo.uk.net>, size=621, nrcpt=1 (queue active)
我在想是不是設定postfix就能直接擋掉,所以增加了
client_checks
# Restricts which clients this system accepts SMTP connections from.
#postmap /etc/postfix/client_checks
example.com               REJECT No spammers
.example.com              REJECT No spammers, from your subdomain
123.456.789.123           REJECT Your IP is spammer
123.456.789.0/24          REJECT Your IP range is spammer
146.0.42.76           REJECT Your IP is spammer
.fastwebserver.de           REJECT No spammers, from your subdomain
跟sender_checks
# Restricts sender addresses this system accepts in MAIL FROM commands.
#postmap /etc/postfix/sender_checks
example.com              REJECT env. from addr any@example.com rejected
.example.com             REJECT env. from addr any@sub.example.com rejected
user@example.com         REJECT We don't want your email
sb@seo.uk.net              REJECT
,也postmap。
Spam設定
smtpd_recipient_restrictions = check_client_access hash:/etc/postfix/client_checks, check_sender_access hash:/etc/postfix/sender_checks, permit_mynetworks, permit_sasl_authenticated, permit_auth_destination, reject_unauth_destination, reject_unknown_helo_hostname

不過沒直接drop掉踹我的146.0.42.76,也沒直接drop掉sb@seo.uk.net,大概設錯了。。。

http://unblock.secureserver.net這個網站不知道有沒有問題?GOOGLE查查,有人說是Linux系的,不知道是啥的,有人說輸入IP沒Block,還說要解blacklist還要錢?這好有問題。。。我用撥接的固定IP架站只在臺灣用,又不是玩很大的企業,只是小工作室,有需要嗎?

6
這是這2天Mail log 的一小小段
ct 27 16:05:13 localhost postfix/smtpd[4469]: connect from ca207.calcit.fastwebserver.de[146.0.42.76]
Oct 27 16:05:19 localhost postfix/smtpd[4469]: warning: ca207.calcit.fastwebserver.de[146.0.42.76]: SASL LOGIN authentication failed: UGFzc3dvcmQ6
Oct 27 16:05:19 localhost postfix/smtpd[4469]: lost connection after AUTH from ca207.calcit.fastwebserver.de[146.0.42.76]
Oct 27 16:05:19 localhost postfix/smtpd[4469]: disconnect from ca207.calcit.fastwebserver.de[146.0.42.76]
Oct 27 16:06:24 localhost postfix/smtpd[4469]: connect from ca207.calcit.fastwebserver.de[146.0.42.76]
Oct 27 16:06:29 localhost postfix/smtpd[4469]: warning: ca207.calcit.fastwebserver.de[146.0.42.76]: SASL LOGIN authentication failed: UGFzc3dvcmQ6
Oct 27 16:06:29 localhost postfix/smtpd[4469]: lost connection after AUTH from ca207.calcit.fastwebserver.de[146.0.42.76]
Oct 27 16:06:29 localhost postfix/smtpd[4469]: disconnect from ca207.calcit.fastwebserver.de[146.0.42.76]
Oct 27 16:06:57 localhost postfix/smtpd[4469]: connect from ca207.calcit.fastwebserver.de[146.0.42.76]
Oct 27 16:07:20 localhost postfix/smtpd[4469]: warning: ca207.calcit.fastwebserver.de[146.0.42.76]: SASL LOGIN authentication failed: UGFzc3dvcmQ6

我不曉得對方在做啥麼???,底下是secure的片段
Fail2ban也擋不了,是不是因爲不是連續的,一分鍾踹一下,有人說不用理這個訊息,是對還是不對

Oct 27 16:11:32 localhost auth: pam_unix(dovecot:auth): authentication failure; logname= uid=0 euid=0 tty=dovecot ruser=info@hinet.net rhost=146.0.42.76
Oct 27 16:13:08 localhost auth: pam_unix(dovecot:auth): check pass; user unknown
Oct 27 16:13:08 localhost auth: pam_unix(dovecot:auth): authentication failure; logname= uid=0 euid=0 tty=dovecot ruser=info@hinet.net rhost=146.0.42.76
Oct 27 16:15:07 localhost auth: pam_unix(dovecot:auth): check pass; user unknown
Oct 27 16:15:07 localhost auth: pam_unix(dovecot:auth): authentication failure; logname= uid=0 euid=0 tty=dovecot ruser=info@hinet.net rhost=146.0.42.76
Oct 27 16:17:53 localhost auth: pam_unix(dovecot:auth): check pass; user unknown

這也不是的的網址跟USER帳號,對方幹麻還要一直踹我的MailServer,
maillog有時還會接着蹦出下面訊息?這是在釣魚嗎??
Oct 27 16:08:30 localhost postfix/qmgr[4604]: 2B92E2238E3: from=<sb@seo.uk.net>, size=621, nrcpt=1 (queue active)
Oct 27 16:08:30 localhost postfix/qmgr[4604]: 91D5D22395B: from=<sb@seo.uk.net>, size=623, nrcpt=1 (queue active)
Oct 27 16:08:30 localhost postfix/smtp[4606]: 2B92E2238E3: host smtp.europe.secureserver.net[188.121.52.56] refused to talk to me: 554 n1plibsmtp01-02.prod.ams1.secureserver.net bizsmtp RBL Reject -Please submit an unblock request <http://unblock.secureserver.net/?ip=59.126.238.72>  <http://x.co/rblbounce>
Oct 27 16:08:30 localhost postfix/smtp[4607]: 91D5D22395B: host smtp.europe.secureserver.net[188.121.52.56] refused to talk to me: 554 n1plibsmtp01-03.prod.ams1.secureserver.net bizsmtp RBL Reject -Please submit an unblock request <http://unblock.secureserver.net/?ip=59.126.238.72>  <http://x.co/rblbounce>
Oct 27 16:08:31 localhost postfix/smtp[4606]: 2B92E2238E3: to=<sb@seo.uk.net>, relay=mailstore1.europe.secureserver.net[188.121.52.56]:25, delay=56074, delays=56073/0.01/1.4/0, dsn=4.0.0, status=deferred (host mailstore1.europe.secureserver.net[188.121.52.56] refused to talk to me: 554 n1plibsmtp01-01.prod.ams1.secureserver.net bizsmtp RBL Reject -Please submit an unblock request <http://unblock.secureserver.net/?ip=59.126.238.72>  <http://x.co/rblbounce>)
Oct 27 16:08:31 localhost postfix/smtp[4607]: 91D5D22395B: to=<sb@seo.uk.net>, relay=mailstore1.europe.secureserver.net[188.121.52.56]:25, delay=55870, delays=55868/0.01/1.4/0, dsn=4.0.0, status=deferred (host mailstore1.europe.secureserver.net[188.121.52.56] refused to talk to me: 554 n1plibsmtp01-03.prod.ams1.secureserver.net bizsmtp RBL Reject -Please submit an unblock request <http://unblock.secureserver.net/?ip=59.126.238.72>  <http://x.co/rblbounce>)

7
Linux 討論版 / Re: postfix問題
« 於: 2014-10-22 21:17 »
我把這幾個設定調了調前後,越調越亂甚至不能收發信,是不是這幾個設定有前後次序的問題?
有點懷疑,後來就到Postfix網站看說明,照網站的次序前後重排一次,如下,好像就OK了一點,再把fail2ban啓動。

# Allow connections from trusted
smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated, check_client_access hash:/etc/postfix/access, reject_unauth_destination

#postfix>2.10 mail_from_set# Don't accept mail from domains that don't exist
smtpd_sender_restrictions = reject_unknown_sender_domain, reject_unknown_client

# Relay control (Postfix 2.10 and later): local clients and
# authenticated clients may specify any destination domain.
smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination

# Spam control: exclude local clients and authenticated clients
# from DNSBL lookups.
#postfix>2.10 Spam設定
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, permit_auth_destination

今天好像網路很靜,好不容易看到有訊息,如下:
Oct 22 20:34:41 localhost postfix/smtpd[10503]: warning: hostname 129.208.151.xx.saudi.net.sa does not resolve to address 46.151.208.xx: Name or service not known
Oct 22 20:34:41 localhost postfix/smtpd[10503]: connect from unknown[46.151.208.xx]
Oct 22 20:34:42 localhost postfix/smtpd[10503]: NOQUEUE: reject: RCPT from unknown[46.151.208.xx]: 554 5.7.1 <nnnnbox@freemailhost.ru>: Relay access denied; from=<smtp0000soho@yahoo.com> to=<nnnnbox@freemailhost.ru> proto=SMTP helo=<59.126.238.xx>
Oct 22 20:34:43 localhost postfix/smtpd[10503]: disconnect from unknown[46.151.208.xx]
Oct 22 20:38:03 localhost postfix/anvil[10504]: statistics: max connection rate 1/60s for (smtp:46.151.208.xx) at Oct 22 20:34:41
Oct 22 20:38:03 localhost postfix/anvil[10504]: statistics: max connection count 1 for (smtp:46.151.208.xx) at Oct 22 20:34:41
Oct 22 20:38:03 localhost postfix/anvil[10504]: statistics: max cache size 1 at Oct 22 20:34:41

8
Linux 討論版 / postfix問題
« 於: 2014-10-14 17:55 »
maillog顯示
Oct 14 17:27:22 localhost postfix/smtpd[4812]: connect from unknown[37.48.227.195]
Oct 14 17:27:26 localhost postfix/smtpd[4812]: warning: unknown[37.48.227.195]: SASL LOGIN authentication failed: authentication failure
Oct 14 17:27:26 localhost postfix/smtpd[4812]: disconnect from unknown[37.48.227.195]
Oct 14 17:30:46 localhost postfix/anvil[4813]: statistics: max connection rate 1/60s for (smtp:37.48.227.195) at Oct 14 17:27:22
Oct 14 17:30:46 localhost postfix/anvil[4813]: statistics: max connection count 1 for (smtp:37.48.227.195) at Oct 14 17:27:22
Oct 14 17:30:46 localhost postfix/anvil[4813]: statistics: max cache size 1 at Oct 14 17:27:22

Secure log顯示
Oct 14 17:03:37 localhost saslauthd[482]: pam_unix(smtp:auth): check pass; user unknown
Oct 14 17:03:37 localhost saslauthd[482]: pam_unix(smtp:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=

翻了好幾天,有沒有辦法直接reject掉這類IP?

我的設定是:
smtpd_error_sleep_time = 1s
smtpd_soft_error_limit = 10
smtpd_hard_error_limit = 20
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous

#寄信設定
smtpd_client_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination
(我測試把 permit_mynetworks,拿到permit_sasl_authenticated,前面,結果外面寄不進來)
smtpd_sender_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_non_fqdn_sender,reject_unknown_sender_domain,reject_unknown_client,check_sender_access,hash:/etc/postfix/access
#收信設定
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination

access的設定有加進:
admin@              REJECT
demo@              REJECT
37.48.227    REJECT
也postmap了

9
你可以使用MYSQL的命令模式去登入mysql,
如果可以登進去,那就表示Mysql已經啓動,等你去使用它。
或者裝個MySQL Control Center(mysqlcc),Mysql的視窗管理,只要你能登進去,那就表示MYSQL已經啓動,等你去使用它。
其它使用命令或mysql的設定的問題,那就是你要自學的了。
AppServ安裝跟Mysql設定,Google可以查到很多

10
另外就是預設啟動哪個輸入法的功能,的確會讓系統變呆,而且是發呆很久。

11
Fedora現在有預設的輸入法模組,你想安裝其它的輸入法,一定要先反裝預設的輸入法模組,請你先了解一下。

12
上頭說的Email網路駭客詐騙案,是不久前發生的事件,經駭客以很長時間的監聽,臺灣跟美國很多公司都因此淪陷,所以讓人有很多想像空間,想要讓自己的伺服器安全一點,當然要了解駭客駭一個站的過程。
像我現在只是小網站,所以一臺常常更新的Fedora19架伺服器,防火牆也只開埠80跟25,使用者也只有3個,沒有Linux的使用者需要做網路登入的動作,也就是把一般網路查到的保護自己伺服器的方法,會做的就盡力去做,最好讓購物買家能不需要註冊,以php網頁contactus的方式就能買到商品,因爲是我自己亂拼出來的,php網頁插入用了mail()給發一封給購買者(後來改寫去掉了,因爲倒底安不安全也不得而知),同時mail()也發一封給本機上的一個專門收信的使用者,而這個使用者是一直登入在Gnome視窗的,要做繪圖的工作,也可以順便收系統或網頁mail()送來的email,所以才會問,
沒被駭客種病毒在自己的機子上,那駭客還可以監聽到我的這位使用者,一直在收信,信的內容駭客知道嗎?
要是被email詐騙,我猜大概也只有收信者自己警覺一點,這個辦法了吧!

13
...我在網路看到一篇文章
(借用自http://www.wisegeek.org/what-is-a-packet-sniffer.htm)
開頭講一般來說發email,A到B,而D是沒辦法得知A有發送email出去給B的,....
但是在傳送的過程會經過很多節點,想要攔截A所發送的email,就必須在任何一個節點上
hack動手,在之前臺灣所發生的Email駭客案就是如此,(借用自 http://www.icst.org.tw/),
是說駭客先用SMB弱點,找出該A公司內,遠方的固定連線的B公司的IP,因爲有固定的連線,
所以比較好用一些sniffer工具,這裏說的是包函了ARP欺騙工具,也就是說要用來放在節點上的
駭客工具,而在這個詐財案上,是說駭客是以try用戶名的的方式,然後以email給這個A公司的員工的方式,
來把這個蟲種到A公司去,然後監聽A公司的email的訊息。
所以我有問題?
一. 一些SMB的服務,在封包傳送時,會被看到使用者的名稱跟密碼嗎?
不過我沒在Linux上裝SAMB就是了。
二.現在的駭客工具有辦法在,不種病毒的情況下監聽對方嗎?


14
謝謝你們的回答
我在網路看了一些資料,想要監聽別人的資料,
一種是不是要有像警察那種監聽設備,才可以隨意監聽,
另一種是寄個有木馬的MAIL,給想要監聽對象的內部人員,只要有機會,就能達到監聽側錄的目地。
那還有其它像我們使用一般軟體一樣,在自己PC前面,打開軟體不用種木馬,就可已開始監聽對方的恐怖軟體嗎?

15
我的FedoraPC架設mail伺服器,進入某一使用者的Gnome視窗系統下,這個使用者能收(root 跟一些 不能登入的mail帳號)的email,現在我開着Evolution收信,每隔一段時間會自動收信一次,我想請問這樣是不是有被監測到,因而泄漏自己帳號密碼的遺慮?

16
Linux 討論版 / Re: ADSL 無法撥接上網
« 於: 2013-11-10 09:06 »
Fedora 18、19登入後看不出有很大差異

17
Linux 討論版 / Re: ADSL 無法撥接上網
« 於: 2013-11-05 21:20 »
http://walker-a.com/archives/1579
試看看上面網站的設定能不能用!

18
<php
include_once("./config.php");
$dbh = mysql_connect($dbhost,$dbuser,$dbpasswd)
   or die("Unable to connect to MySQL");
   MySQL_query("SET NAMES 'utf8'");
        mysql_select_db($dbname, $dbh);

        $result = mysql_query("select * from blog_msg left join blog_item
 on blog_msg.item_no=blog_item.item_no  ORDER BY blog_msg.item_no DESC");

 if (!$result) {
    echo 'Could not run query: ' . mysql_error();
    exit;
}

        while($row=mysql_fetch_array($result)){
        $thisBlogno    = $row["blog_no"];
        $thisItemno = $row["item_no"];
        $thisBlogsubject  = $row["blog_subject"];
        $thisItemname = $row["item_name"];
        $thisBlogcontent = $row["blog_content"];
?>

<?php echo  $thisBlogno$thisItemno; ?>

<?php echo  $thisBlogsubject; ?>
<?php
echo  $thisItemname;
echo $thisBlogcontent ;
?>
 <?php } ?>

19
網頁技術 / Re: css 絕對位址的問題
« 於: 2013-09-18 23:07 »
#out1{
    width:100%;
       background: #E2FFF2;
}
#out2{
    width:1000px;  <----指定預備設計的網頁寬度
    border:1px solid #BDA3A8;
       background: #FFFFFF;
}

<body>
<div align="center" id="out1">
<div align="center" id="out2">
xxxx任何內容 xxxx
</div>
</div>
</body>

我都是這樣,先設2層div讓網頁置中的,firefox有效,不管有多寬,頁面一定置中,ie就不知到了。

20
Linux 討論版 / Re: 請教一下 MAILLOG 錯誤訊息
« 於: 2013-01-16 21:58 »
postfix+spamassassin+dovecot+procmail正常運作之後,再把MailScanner裝上去,就知道那個環結有問題!!

21
Linux 討論版 / Re: 請教一下 MAILLOG 錯誤訊息
« 於: 2013-01-16 15:17 »
很久沒用mailscaner了,感覺上是設定檔跟目錄的User Group權限問題的樣子。

22
搜尋網路找相關的比較大比較久的專業軟體公司會比較快找到,然後打電話去一家一家問,不過我猜想要花時間熟悉操作,跟自己建立商品資料,跟花一堆$$是一定要的啦。
如果你還需要跟會計結合,然後做些財報或其它會計報表,102年臺灣的會計科目要改新版了,最好買有支援到的或能提供升級新版的軟體,不過小公司是不用理這檔事,我覺得差異不大,商品歸商品帳,會計歸會計帳,大概也不會混雜。
以上個人觀點,僅供參考

23
想想看無法login前,在系統上做了什麼事,然後搜尋Google看看有沒有(none) login類似狀況,如何解決。
放個LiveCD開機檢查看看硬碟的系統開機檔跟tmp目錄讀取權限
再不行就趁此升級到6.x版,裝新的。

24
這是一篇以我自己的商業觀點為出發點的想法,以現在的Linux Fedora16視窗跟繪圖整合,架設網頁跟郵件伺服器,來開商行式的設計小公司做網拍的想法,而內容所包含的有系統的選擇,繪圖軟體的使用,伺服器的架設。註:我對PC軟硬體有一定的使用熟練度
我想說開公司一直都是我這個大男人的最高夢想,在我沒有很多金錢做為開繪圖設計工作室,然後把商品網拍的資金為出發點,所以必需考慮很多事項
第一個:在硬體的花費是固定的狀況下,我想裝Linux的視窗系統來用,因為可以省下很多錢,一臺3000多的系統費吧(最近買了最基本的win7home裝給家人用),我從以前有Fedora之後就一直用,到現在用的Fedora16,如果裝一臺Fedora做繪圖文書處理,那系統費也只不過多花了3000多,而我在Fedora裝的繪圖文書軟體Gimp Inkscape Blender Qcad CYMKTool gThumb Photoprint OpenShot(影片編輯)LibreOffice等等,這些軟體也都可以裝在Win7上,所以事實上跟Win7比是不會造成很大的差異壓力,只不過Inkscape的存檔圖檔是SVG,這就是一項很嚴重的選項,微軟的Windows是超級不支援看這個檔的,再者我買的Win7系統能夠重裝幾次也是問題,主機板壞了,系統不能在換板子後馬上轉移,Fedora16可以這樣做,沒有錢,那時間就是金錢,可以多製造幾個設計,而不必在那此為硬體.系統.跟軟體重裝奮戰,Linux Fedora的方便性就可想而知了,尤其到第二個。

第二個:那我繪圖跟文書處理軟體都解決了,再來就只有發揮我的繪圖本領跟我的創意,說實在繪圖研究很久到現在還沒完沒了,是最頭痛的事。然後啦!我要在網路賣創意,我要架WWW伺服器,我架了Apache php+MySQL,Win7也有iii 也可以裝Apache php+MySQL。我還要架Mail伺服器,我在Fedora16裝了Postfix+Dovecot,不用花費金錢的超級夠用的重量伺服器,Win7當然也有免費的郵件伺服,或者也可另外在花更多錢買來裝,但是在視窗下的設定如果跟Win7設定整合不好,很容易就變成開放郵件伺服器,任人傳送廣告信,所以我還是比較信任Linux的Postfix跟Dovecot,開起gedit來編輯自己想要的設定。

第三個:我需要專業的會計軟體記帳,上個月開始研究有啥好用的,試了好幾個能裝在Linux上的,最後選定OpenERP,剛開時不會用,研究了一星期,OpenERP+postgresql裝了好幾遍,一直到開竅了才裝起來,然後另外裝上個沒有資料的商務跟會計的資料庫,變成一個有參考資料跟一個要自己建立資料庫的轉換,把它搞成中文的,然後在來就是輸入建立商品跟適合臺灣的會計系統科目,這種需要自己手動的真的很花時間,比用Win7買會計商務軟體還花時間就是了。

...有錢真的很好!啥都買來裝就好,花錢把事情都交給別人去辦就好。
.....我大概不會這樣,老闆非得是三頭六臂不行的,自己賺錢省錢,把多餘花不完的錢交給老婆去死守就好。

25
我覺得一般是用不到,因為目錄裏面沒有要執行的程式,但是也會有用到的時候,比如我下載了一個只要在Usr下,就能執行的程式,那解開後的執行檔就是放在/home/用戶名/bin裏,只要用shell輸入就可以開啓那個程式,那也很方便啊

26
linux echo $PATH /root/bin 目錄幹什麼用的?
要先問你在root想做?事情!
一般root使用者是設定不能直接進入,
所以 cd /root/bin 該目錄不存在,是正常的,就算Login進root,也不會產生bin這目錄。
所以,要先問你在root想做?事情!

27
myhostname = mail.centos.com
mydomain = centos.com
上面不要使用網路上已經有的網址,改為你的 主機名稱 mail.centos.mms

以下Fedora16_x64 postfix設定資料只供參考,去修改你的centos的設定
main.cf檔
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
mail_owner = postfix
myhostname = $mydomain
mydomain = doteazacg.idv.tw 改為你的 主機名稱 mail.centos.mms
myorigin = $myhostname
inet_interfaces = all
inet_protocols = ipv4
mydestination = $myhostname, localhost.$mydomain, localhost
local_recipient_maps = unix:passwd.byname $alias_maps
unknown_local_recipient_reject_code = 550
mynetworks_style = host
mynetworks = 192.168.0.0/24, 168.100.189.0/28, 127.0.0.0/8
relay_domains = $mydestination
relayhost =
in_flow_delay = 1s
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
recipient_delimiter = +
mail_spool_directory = /var/spool/mail
mailbox_command = /usr/bin/procmail
local_destination_recipient_limit = 300
local_destination_concurrency_limit = 5
luser_relay = $mydomain
fast_flush_domains = $relay_domains
debug_peer_level = 2
debugger_command =
    PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
    ddd $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.8.12/samples
readme_directory = /usr/share/doc/postfix-2.8.12/README_FILES
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
#寄信設定
smtpd_client_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, permit
#收信設定
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, permit
#ToVScan
content_filter = scan:127.0.0.1:10025
receive_override_options = no_address_mappings

master.cf 設定
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       n       -       -       smtpd
pickup    fifo  n       -       n       60      1       pickup
cleanup   unix  n       -       n       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
tlsmgr    unix  -       -       n       1000?   1       tlsmgr
rewrite   unix  -       -       n       -       -       trivial-rewrite
bounce    unix  -       -       n       -       0       bounce
defer     unix  -       -       n       -       0       bounce
trace     unix  -       -       n       -       0       bounce
verify    unix  -       -       n       -       1       verify
flush     unix  n       -       n       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
proxywrite unix -       -       n       -       1       proxymap
smtp      unix  -       -       n       -       -       smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay     unix  -       -       n       -       -       smtp
   -o smtp_fallback_relay=
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       n       -       -       showq
error     unix  -       -       n       -       -       error
retry     unix  -       -       n       -       -       error
discard   unix  -       -       n       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp
anvil     unix  -       -       n       -       1       anvil
scache    unix  -       -       n       -       1       scache

# my add at the last line
# AV scan filter (used by content_filter)
scan      unix  -       -       n      -       16      smtp
      -o smtp_data_done_timeout=1200
      -o smtp_send_xforward_command=yes
      -o disable_dns_lookups=yes
# For injecting mail back into postfix from the filter
127.0.0.1:10026 inet  n -       n      -       16      smtpd
        -o content_filter=
        -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
        -o smtpd_helo_restrictions=
        -o smtpd_client_restrictions=
        -o smtpd_sender_restrictions=
        -o smtpd_recipient_restrictions=permit_mynetworks,reject
        -o mynetworks_style=host
        -o smtpd_authorized_xforward_hosts=127.0.0.0/8

28
你使用視窗系統的話,請開起網路設定,然後填好DNS跟主機的正確內容,這樣網路在/etc/裏面的設定檔就會正確。 雖然你沒購買網址,但是postfix會回頭檢查你的DNS主機名稱設定,以IP為127.0.0.1跟localhost或localhost.localdomain搭在一起傳信。

然後設定你的收信跟發信伺服器在/etc/裏面的設定檔,如果你是新手,請先到教學站充電,或到Google查尋有沒有跟你使用的系統是一樣的設定方法或教學,然後學這設定看看。

是沒有人會知道的,你的設定是不是正確。

29
我以前没有買網址,為了收系統信
架個postfix + dovecot mail server
在網路設定上DNS隨便設一個網路找不到的未來主機名稱 ex. yourfuturedomain.idv.tw
在主機設定上原本的127.0.0.1 localhost localhost.localdomain 加入自己的未來網址
192.168.0.2   yourfuturedomain.idv.tw   yourfuturedomain.idv.tw
192.168.0.2   www.yourfuturedomain.idv.tw   www.yourfuturedomain.idv.tw
這樣就可以在没上網的狀態下,UserA可隨意用Client收到root寄出的系統信了
UserA是/etc/aliases指定好的root收信者
到這裡就是要設好server跟網址的設定,在自己唯一的機子上應該就可以收寄信給自己機子任何User

在2台以上的區域網路,請搜尋相關的設定文章
一般電信公司都會給一個撥接的固定IP,如果要買網址,在銀行轉帳時請跟櫃妹妹說要用網路虛擬商品轉帳單,
不用手續費,用電傳的話要100元手續費

30
Linux 討論版 / Re: fedora 16會不會yum不能用呢
« 於: 2012-02-03 16:38 »
Fedora16 啟動一個服務的方法據說在FC15時就已經改變,使用了不同的啟動程式,所以有些服務並沒有在啟動時常駐,常常要自己打指令,如下啟動httpd mysql
systemctl enable httpd.service
systemctl enable mysqld.service
要讓一個服務常駐或常駐在服務視窗軟體上就用指令chkconfig,如下
chkconfig httpd on
chkconfig mysqld on
這樣就可以在服務視窗軟體上按停止或啟動的管理
但是要讓服務永久停止就要下指令chkconfig httpd off 服務
資料參考:http://fedoraproject.org/wiki/Systemd

頁: [1] 2