Erjing’s Blog

May 19, 2007

how to make qmail forward mail.

Filed under: I love life — erjing @ 11:50 am

shit still can not input chinese….
My harddisk got broken..So have to reinstall OS. The good thing is ubuntu 7.04 is really good. I don’t  need to configure anything.
I build local mail system yesterday, Coz 1and1 really shit. In china we have to wait 20 min for get mail. So I build local system basic in Exchange 2003. But everybody know put Exchange public to internet is dangerous so I build QMAIL behind Exchange.
If you wanna install Qmail easy, Just go to http://www.qmailtoaster.com , then get script can auto downlaod and install qmail system include blacklist anti-virus  spam….
When I finished qmail and make new connecter forward all mail to qmail server.  Then is time for configure qmail forward all the mail to exchange server.
1. make tcprules to believe exchange server.
    add exchange ip in tcp rules and make it to .cdb file. you don’t need to restart qmail.
2. add domain what’s you wanna forward to rcphosts, for example:
    you mail domian is @mail.sohu.com, then you should add mail.sohu.com in rcphosts.
3. add line like this to smtprouters.
    mail.sohu.com:exchange server ip:port
    you also can write like this:
    *:exchange server ip : port

Whatever, Don’t forget add domian to rcphost. If not  when mail received will check local mail account. If you don’t add any mail domain in local, The remote side will get "no such user." info.

May 8, 2007

好久沒來了,忙呀。

Filed under: I love life — erjing @ 9:32 pm

前幾天配置confluence的時候,出現問題:需要指定vi confluence-init.properties裏confluence的工作目錄,但是指定了以後,無論如何都不通過,
今天在配置Confluence集成LDAP v3的時候,無意看到了解決方案。
export JAVA_OPTS=-Djava.awt.headless=true
就這麽簡單….哎,很早就知道很多平台上都有這個問題。但是從來沒有想到這層。。。。。
上次我的方法是去sun下了最新版本的jdk5,而且jdk6和jdk4後面在配置的時候都會出現問題。今天想起來,真土。
以後把這句放在profile裏作標准了。

Powered by WordPress