Class PropertiesBasedGreenMailConfigurationBuilder


  • public class PropertiesBasedGreenMailConfigurationBuilder
    extends Object
    Creates GreenMailConfiguration from properties.

    Example usage: GreenMailConfiguration config = new PropertyBasedGreenMailConfigurationBuilder().build(System.getProperties());

    • greenmail.users : List of comma separated users of format login:pwd[@domain][,login:pwd[@domain]]

      Example: user1:pwd1@localhost,user2:pwd2@0.0.0.0

      Note: domain part must be DNS resolvable!

    • greenmail.users.login : Overrides the login for authentication

      By default use the local-part of an email. Can be changed to full email.

    • greenmail.preload.dir : Preloads emails from filesystem (see GreenMailOperations.loadEmails(Path) for expected structure)