酷!學園

技術討論區 => Linux 討論版 => 主題作者是: Drsin 於 2010-04-07 10:25

主題: postfix 下的main.cf遺失
作者: Drsin2010-04-07 10:25
各位學長好
   請問postfix下的miain.cf遺失有辦法找回來嗎?若找不回來是否可請學長們將main.cf檔備份一個給我~感謝
主題: 回覆: postfix 下的main.cf遺失
作者: kenduest2010-04-07 12:49

找一下你自己用的發行版本的 postfix 套件包,把套件檔案解開一份取得 main.cf 即可。

比方 rpm 套件包:

代碼: [選擇]
rpm2cpio xxx.rpm | cpio -idv
主題: 回覆: postfix 下的main.cf遺失
作者: Drsin2010-04-07 13:19
感謝學長~我去找了一夏rpm解開在cofg資料夾理面有main.cf檔 ,拿出來修改一些設定就可以了,不過有些地方需要註解掉才可以正常運作,在main.cf最下面
# sendmail_path: The full pathname of the Postfix sendmail command.
# This is the Sendmail-compatible mail posting interface.
#
sendmail_path =

# newaliases_path: The full pathname of the Postfix newaliases command.
# This is the Sendmail-compatible command to build alias databases.
#
newaliases_path =

# mailq_path: The full pathname of the Postfix mailq command.  This
# is the Sendmail-compatible mail queue listing command.
#
mailq_path =

# setgid_group: The group for mail submission and queue management
# commands.  This must be a group name with a numerical group ID that
# is not shared with other accounts, not even with the Postfix account.
#
setgid_group =

# html_directory: The location of the Postfix HTML documentation.
#
html_directory =

# manpage_directory: The location of the Postfix on-line manual pages.
#
manpage_directory =

# sample_directory: The location of the Postfix sample configuration files.
# This parameter is obsolete as of Postfix 2.1.
#
sample_directory =

# readme_directory: The location of the Postfix README files.
#
readme_directory =


把這些註解掉就運作OK了^^~
主題: 回覆: postfix 下的main.cf遺失
作者: kenduest2010-04-07 13:32

不是這個版本吧,你找錯了喔.... 應該有個 main.cf.default 等這類檔案。
主題: 回覆: postfix 下的main.cf遺失
作者: Drsin2010-04-07 23:01
呵呵我的main.cf.default 還在,main.cf倒是不見了,好像是昨天晚上我連上去看設定結果不知道按到什麼沒注意到,隔天去上課就有人反信件寄不出去,我測了一下SMTP發現驗證不過,再想想哪裡會設定SMTP驗證就發現我的main.cf怎麼不見了~呵呵