Congestion control is a very important problem which can affect network performance directly. However, owing to the lack of steady end-to-end connection and high latency, the traditional congestion control mechanism based on end-to-end feedback is not feasible in DTN. Because obtaining the global information of network is difficult, the congestion control decisions should be made autonomously with local information only. We propose a novel distributed congestion control algorithm based on epidemic routing protocols----MACRE (Message Admission Control based on Rate Estimation). Preliminary experimental results show that this congestion control mechanism can improve the network performance efficiently.