Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save lcxw/7357b90e45d733c76b33b6a30cf10b9e to your computer and use it in GitHub Desktop.
Save lcxw/7357b90e45d733c76b33b6a30cf10b9e to your computer and use it in GitHub Desktop.
ubuntu install James mail server

download James mail server

http://james.apache.org/download.cgi#Apache_James_Server

config server

change user to root for runing, and set JAVA_HOME temporarily

sudo su 
export JAVA_HOME=/usr/lib/jvm/java-8-oracle/jre

run server and login

./run.sh
telnet localhost 4555
root
root

config \apps\james\SAR-INF 下的 config.xml file

update

……   
<postmaster>[email protected]</postmaster>   
……   
<servernames autodetect="false" autodetectIP="false">   
    <servername>zhaipuhong.com</servername>   
</servernames>   
……  

annotate

<!--mailet match="RemoteAddrNotInNetwork=127.0.0.1" class="ToProcessor">   
    <processor> relay-denied </processor>   
    <notice>550 - Requested action not taken: relaying denied</notice>   
</mailet--> 

un annotate

<authRequired>true</authRequired>  

Java mail app

https://github.com/leiguorui/HelloMail

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment