 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
      Index ¶
Constants ¶
      View Source
      
  
const ( SDReady = "READY=1" SDReloading = "RELOADING=1" SDStopping = "STOPPING=1" )
Variables ¶
      View Source
      
  
    var ( // ConfigDirectory specifies platform-specific value // that should be used as a location of default configuration // // It should not be changed and is defined as a variable // only for purposes of modification using -X linker flag. ConfigDirectory = "/etc/maddy" // DefaultStateDirectory specifies platform-specific // default for StateDirectory. // // Most code should use StateDirectory instead since // it will contain the effective location of the state // directory. // // It should not be changed and is defined as a variable // only for purposes of modification using -X linker flag. DefaultStateDirectory = "/var/lib/maddy" // DefaultRuntimeDirectory specifies platform-specific // default for RuntimeDirectory. // // Most code should use RuntimeDirectory instead since // it will contain the effective location of the state // directory. // // It should not be changed and is defined as a variable // only for purposes of modification using -X linker flag. DefaultRuntimeDirectory = "/run/maddy" // DefaultLibexecDirectory specifies platform-specific // default for LibexecDirectory. // // Most code should use LibexecDirectory since it will // contain the effective location of the libexec // directory. // // It should not be changed and is defined as a variable // only for purposes of modification using -X linker flag. DefaultLibexecDirectory = "/usr/lib/maddy" )
      View Source
      
  
    var ErrNoNotifySock = errors.New("no systemd socket")
    
      View Source
      
  
var (
	Version = "go-build"
)
    Functions ¶
func ReadGlobals ¶ added in v0.3.0
Types ¶
       Directories
      ¶
      Directories
      ¶
    
    | Path | Synopsis | 
|---|---|
| cmd
       | |
| 
          
            maddy
            
            command
          
          
         | |
| 
          
            maddy-pam-helper
            
            command
          
          
         | |
| 
          
            maddy-shadow-helper
            
            command
          
          
         | |
| 
          
            maddyctl
            
            command
          
          
         | |
| framework
       | |
| 
          
            address
            
            
          
           Package address provides utilities for parsing and validation of RFC 2821 addresses. | Package address provides utilities for parsing and validation of RFC 2821 addresses. | 
| 
          
            buffer
            
            
          
           The buffer package provides utilities for temporary storage (buffering) of large blobs. | The buffer package provides utilities for temporary storage (buffering) of large blobs. | 
| 
          
            cfgparser
            
            
          
           Package config provides set of utilities for configuration parsing. | Package config provides set of utilities for configuration parsing. | 
| 
          
            config/module
            
            
          
           Package modconfig provides matchers for config.Map that query modules registry and parse inline module definitions. | Package modconfig provides matchers for config.Map that query modules registry and parse inline module definitions. | 
| 
          
            dns
            
            
          
           Package dns defines interfaces used by maddy modules to perform DNS lookups. | Package dns defines interfaces used by maddy modules to perform DNS lookups. | 
| 
          
            exterrors
            
            
          
           Package errors defines error-handling and primitives used across maddy, notably to pass additional error information across module boundaries. | Package errors defines error-handling and primitives used across maddy, notably to pass additional error information across module boundaries. | 
| 
          
            log
            
            
          
           Package log implements a minimalistic logging library. | Package log implements a minimalistic logging library. | 
| 
          
            logparser
            
            
          
           Package parser provides utilities for parsing of structured log messsages generated by maddy. | Package parser provides utilities for parsing of structured log messsages generated by maddy. | 
| 
          
            module
            
            
          
           Package module contains modules registry and interfaces implemented by modules. | Package module contains modules registry and interfaces implemented by modules. | 
| internal
       | |
| 
          
            auth/shadow
            
            
          
           shadow package implements utilities for parsing and using shadow password database on Unix systems. | shadow package implements utilities for parsing and using shadow password database on Unix systems. | 
| 
          
            dsn
            
            
          
           Package dsn contains the utilities used for dsn message (DSN) generation. | Package dsn contains the utilities used for dsn message (DSN) generation. | 
| 
          
            limits
            
            
          
           Package limit provides a module object that can be used to restrict the concurrency and rate of the messages flow globally or on per-source, per-destination basis. | Package limit provides a module object that can be used to restrict the concurrency and rate of the messages flow globally or on per-source, per-destination basis. | 
| 
          
            limits/limiters
            
            
          
           Package limiters provides a set of wrappers intended to restrict the amount of resources consumed by the server. | Package limiters provides a set of wrappers intended to restrict the amount of resources consumed by the server. | 
| 
          
            smtpconn
            
            
          
           The package smtpconn contains the code shared between target.smtp and remote modules. | The package smtpconn contains the code shared between target.smtp and remote modules. | 
| 
          
            storage/imapsql
            
            
          
           Package imapsql implements SQL-based storage module using go-imap-sql library (github.com/foxcpp/go-imap-sql). | Package imapsql implements SQL-based storage module using go-imap-sql library (github.com/foxcpp/go-imap-sql). | 
| 
          
            target/queue
            
            
          
           Package queue implements module which keeps messages on disk and tries delivery to the configured target (usually remote) multiple times until all recipients are succeeded. | Package queue implements module which keeps messages on disk and tries delivery to the configured target (usually remote) multiple times until all recipients are succeeded. | 
| 
          
            target/remote
            
            
          
           Package remote implements module which does outgoing message delivery using servers discovered using DNS MX records. | Package remote implements module which does outgoing message delivery using servers discovered using DNS MX records. | 
| 
          
            target/smtp
            
            
          
           Package smtp_downstream provides target.smtp module that implements transparent forwarding or messages to configured list of SMTP servers. | Package smtp_downstream provides target.smtp module that implements transparent forwarding or messages to configured list of SMTP servers. | 
| 
          
            updatepipe
            
            
          
           Package updatepipe implements utilities for serialization and transport of IMAP update objects between processes and machines. | Package updatepipe implements utilities for serialization and transport of IMAP update objects between processes and machines. | 
| Package tests provides the framework for integration testing of maddy. | Package tests provides the framework for integration testing of maddy. | 
 Click to show internal directories. 
   Click to hide internal directories.