SMTPRelay

SMTPRelay is a plugin for Jsmtpd. When this plugin is loaded as a remote delivery plugin, all mails received are blindly transfered to the SMTP server(s) set. You can use this plugin for :

  • Set-up a relay: your mail could be sent by your ISP's SMTP daemon, or you want isolation between a lan and a DMZ by example.
  • Act as a redundant mail server.

SMTP Relay

Change your configuration file (etc/jsmtpd-plugin-config.xml) to use the SMTPRelay :

	<LocalDeliveryService name="Remote smtp sender" class="org.jsmtpd.plugins.deliveryServices.SMTPRelay">
		<propertyset name="Relay" value="192.168.10.1"/>
		<propertyset name="authMethod" value="plain"/>
		<propertyset name="login" value="your_login"/>
		<propertyset name="password" value="your_password"/>
	</LocalDeliveryService>

Redundant server

You set-up a main and n backup servers :

  • Configure your main server to accept mails from backup servers.
  • Configure your DNS zone to add the backup servers with a lower priority (MX preference)
  • Configure each backup servers with a higher number of retries and spaced delivery delay

When your main server falls, mails will be received by backup servers. When the main server is back online, mails are transfered.