Safe Haskell | None |
---|
- data Settings = Settings {
- settingsPort :: PortID
- settingsTimeout :: Int
- settingsMaxDataSize :: Int
- settingsHost :: Maybe HostName
- settingsTLS :: Maybe TLSSettings
- settingsOnException :: Maybe SessionID -> SomeException -> IO ()
- settingsBeforeMainLoop :: IO ()
- settingsOnOpen :: SessionID -> IO ()
- settingsOnClose :: SessionID -> IO ()
- settingsOnStartTLS :: SessionID -> IO ()
- settingsOnHello :: SessionID -> ByteString -> IO HandlerResponse
- settingsOnMailFrom :: SessionID -> Address -> IO HandlerResponse
- settingsOnRecipient :: SessionID -> Address -> IO HandlerResponse
- defaultSettings :: Settings
- data TLSSettings = TLSSettings {
- certFile :: FilePath
- keyFile :: FilePath
- security :: StartTLSPolicy
- tlsLogging :: Logging
- tlsAllowedVersions :: [Version]
- tlsCiphers :: [Cipher]
- data StartTLSPolicy
- tlsSettings :: FilePath -> FilePath -> TLSSettings
- defaultTLSSettings :: TLSSettings
- defaultExceptionHandler :: Maybe SessionID -> SomeException -> IO ()
- settingsStartTLSPolicy :: Settings -> IO StartTLSPolicy
- settingsConnectWithTLS :: Settings -> Bool
- settingsAllowStartTLS :: Settings -> Bool
- settingsDemandStartTLS :: Settings -> Bool
Documentation
Settings to configure posties behaviour.
Settings | |
|
defaultSettings :: SettingsSource
Default settings for postie
data TLSSettings Source
Settings for TLS handling
TLSSettings | |
|
data StartTLSPolicy Source
Connection security policy, either via STARTTLS command or on connection initiation.
AllowStartTLS | Allows clients to use STARTTLS command |
DemandStartTLS | Client needs to send STARTTLS command before issuing a mail transaction |
ConnectWithTLS | Negotiates a TSL context on connection startup. |
tlsSettings :: FilePath -> FilePath -> TLSSettingsSource
Convenience function for creation of TLSSettings taking certificate and key file paths as parameters.
defaultExceptionHandler :: Maybe SessionID -> SomeException -> IO ()Source
settingsStartTLSPolicy :: Settings -> IO StartTLSPolicySource