| Safe Haskell | None |
|---|
Web.Postie.Settings
- data Settings = Settings {
- settingsPort :: PortID
- settingsTimeout :: Int
- settingsMaxDataSize :: Int
- settingsHost :: Maybe HostName
- settingsTLS :: Maybe TLSSettings
- settingsOnException :: SomeException -> IO ()
- settingsOnOpen :: IO ()
- settingsOnClose :: IO ()
- settingsBeforeMainLoop :: IO ()
- settingsOnStartTLS :: IO ()
- settingsOnHello :: ByteString -> IO HandlerResponse
- settingsOnMailFrom :: Address -> IO HandlerResponse
- settingsOnRecipient :: 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 :: SomeException -> IO ()
- settingsStartTLSPolicy :: Settings -> IO StartTLSPolicy
- settingsConnectWithTLS :: Settings -> Bool
- settingsAllowStartTLS :: Settings -> Bool
- settingsDemandStartTLS :: Settings -> Bool
Documentation
Settings to configure posties behaviour.
Constructors
| Settings | |
Fields
| |
defaultSettings :: SettingsSource
Default settings for postie
data TLSSettings Source
Settings for TLS handling
Constructors
| TLSSettings | |
Fields
| |
data StartTLSPolicy Source
Connection security policy, either via STARTTLS command or on connection initiation.
Constructors
| 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. |
Instances
tlsSettings :: FilePath -> FilePath -> TLSSettingsSource
Convenience function for creation of TLSSettings taking certificate and key file paths as parameters.
defaultExceptionHandler :: SomeException -> IO ()Source
settingsStartTLSPolicy :: Settings -> IO StartTLSPolicySource