| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
|---|
| 2 |
<jsmtpdsetup xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="jsmtpd-plugin-config.xsd"> |
|---|
| 3 |
|
|---|
| 4 |
<ACLSetup name="Basic ACL" class="org.jsmtpd.plugins.acls.SimpleACL"> |
|---|
| 5 |
<propertyset name="RelayedHosts" value="127.0.0.1"/> <!-- Nothing but local clients will be relayed, that's to say no one can directly use the server to send mail to others, except local clients --> |
|---|
| 6 |
<propertyset name="ValidUsers" value="jfp@jsmtpd.org"/> <!-- with this parameter, user jfp@jsmtpd.org is considered local --> |
|---|
| 7 |
</ACLSetup> |
|---|
| 8 |
|
|---|
| 9 |
<DNSSetup class="org.jsmtpd.plugins.dnsServices.DNSJavaResolver" name="DNS Java"> |
|---|
| 10 |
<propertyset name="DnsServers" value="192.168.10.1"/> |
|---|
| 11 |
</DNSSetup> |
|---|
| 12 |
|
|---|
| 13 |
<!-- When a mail is received, the server uses ACL plugin to determine if the mail is for local users ...--> |
|---|
| 14 |
<LocalDeliveryService name="umw" class="org.jsmtpd.plugins.deliveryServices.UnixMailboxWriter"> |
|---|
| 15 |
<propertyset name="MailDir" value="mailboxes/"/><!-- in our exemple, mails for jfp@jsmtpd.org are written to mailboxes/jfp file, in mbox format --> |
|---|
| 16 |
</LocalDeliveryService> |
|---|
| 17 |
<!-- ...or remote users --> |
|---|
| 18 |
<RemoteDeliveryService name="Remote smtp sender" class="org.jsmtpd.plugins.deliveryServices.RemoteSmtpSender"></RemoteDeliveryService> |
|---|
| 19 |
|
|---|
| 20 |
<!-- smtp extensions add advanced functionnalities to the server, like SSL or authentication --> |
|---|
| 21 |
<smtpExtensions> |
|---|
| 22 |
<!-- This is an authentication extension, that's to say it allows a client to authenticate against the server --> |
|---|
| 23 |
<!-- Authenticated users are relayed, that's to say they can send mail to anyone --> |
|---|
| 24 |
<smtpExtension name="auth" class="org.jsmtpd.plugins.smtpExtension.BasicSmtpAuth"> |
|---|
| 25 |
<propertyset name="PlainUser" value="jfp,mySecretPassword"/> |
|---|
| 26 |
<!-- the plugin rejects authentication if the communication channel is not "secured", that's to say encrypted. |
|---|
| 27 |
You need to use another smtp extension plugin to provide this functionnality --> |
|---|
| 28 |
<propertyset name="RequireSecuredChannel" value="false"/> |
|---|
| 29 |
</smtpExtension> |
|---|
| 30 |
</smtpExtensions> |
|---|
| 31 |
<filtersetup></filtersetup> |
|---|
| 32 |
<inputIPFilterChain></inputIPFilterChain> |
|---|
| 33 |
<bodyFilterTree></bodyFilterTree> |
|---|
| 34 |
|
|---|
| 35 |
</jsmtpdsetup> |
|---|