# # emailrelay.conf # # This is a configuration file for E-MailRelay (http://emailrelay.sf.net). # # The E-MailRelay startup script constructs an emailrelay command-line # starting with "--as-server --syslog --pid-file ..." followed by the path # to this config file. # # Every configuration item in this file has an equivalent command-line # option with a leading "--". # # To enable one of the configuration options below remove the '#' character # on the last line in the block. # # Name: address-verifier # Format: address-verifier # Description: Runs the specified external program to verify a message # recipent's e-mail address. A network verifier can be specified as # "net:". # #address-verifier /usr/local/sbin/emailrelay-verifier.sh # Name: admin # Format: admin # Description: Enables an administration interface on the specified listening # port number. Use telnet or something similar to connect. The administration # interface can be used to trigger forwarding of spooled mail messages if the # "--forward-to" option is used. # #admin 587 # Name: admin-terminate # Format: admin-terminate # Description: Enables the "terminate" command in the administration # interface. # #admin-terminate # Name: anonymous # Format: anonymous # Description: Disables the server's SMTP VRFY command, sends less verbose # SMTP responses and SMTP greeting, and stops "Received" lines being added to # mail message content files. # #anonymous # Name: as-client # Format: as-client # Description: This is equivalent to "--log", "--no-syslog", "--no-daemon", # "--dont-serve", "--forward" and "--forward-to". It is a convenient way of # running a forwarding agent that forwards spooled mail messages and then # terminates. # #as-client smtp.example.com:25 # Name: as-proxy # Format: as-proxy # Description: This is equivalent to "--log", "--close-stderr", # "--forward-on-disconnect" and "--forward-to". It is a convenient way of # running a store-and-forward daemon. Use "--log", "--forward-on-disconnect" # and "--forward-to" instead of "--as-proxy" to keep the standard error # stream open. # #as-proxy smtp.example.com:25 # Name: as-server # Format: as-server # Description: This is equivalent to "--log" and "--close-stderr". It is a # convenient way of running a background storage daemon that accepts mail # messages and spools them. Use "--log" instead of "--as-server" to keep # standard error stream open. # #as-server # Name: client-auth # Format: client-auth # Description: Enables SMTP client authentication with the remote server, # using the client account details taken from the specified secrets file. The # secrets file should normally contain one line that starts with "client" and # that line should have between four and five space-separated fields; the # second field is the password encoding ("plain" or "md5"), the third is the # user-id and the fourth is the password. The user-id is RFC-1891 xtext # encoded, and the password is either xtext encoded or generated by # "emailrelay-passwd". If the remote server does not support SMTP # authentication then the SMTP connection will fail. # #client-auth /etc/emailrelay.auth # Name: client-auth-config # Format: client-auth-config # Description: Configures the SMTP client authentication module using a # semicolon-separated list of configuration items. Each item is a # single-character key, followed by a colon and then a comma-separated list. # A 'm' character introduces an ordered list of authentication mechanisms, # and an 'x' is used for blocklisted mechanisms. # #client-auth-config m:cram-sha1,cram-md5 # Name: client-filter # Format: client-filter # Description: Runs the specified external filter program whenever a mail # message is forwarded. The filter is passed the name of the message file in # the spool directory so that it can edit it as required. A network filter # can be specified as "net:" and prefixes of "spam:", # "spam-edit:" and "exit:" are also allowed. The "spam:" and "spam-edit:" # prefixes require a SpamAssassin daemon to be running. For store-and-forward # applications the "--filter" option is normally more useful than # "--client-filter". # #client-filter /usr/local/sbin/emailrelay-client-filter # Name: client-interface # Format: client-interface # Description: Specifies the IP network address to be used to bind the local # end of outgoing SMTP connections. By default the address will depend on the # routing tables in the normal way. Use "0.0.0.0" to use only IPv4 addresses # returned from DNS lookups of the "--forward-to" address, or "::" for IPv6. # #client-interface 10.0.0.2 # Name: client-tls # Format: client-tls # Description: Enables negotiated TLS for outgoing SMTP connections; the SMTP # STARTTLS command will be issued if the remote server supports it. # #client-tls # Name: client-tls-certificate # Format: client-tls-certificate # Description: Defines the TLS certificate file when acting as a SMTP client. # This file must contain the client's private key and certificate chain using # the PEM file format. Keep the file permissions tight to avoid accidental # exposure of the private key. # #client-tls-certificate /etc/ssl/certs/emailrelay.pem # Name: client-tls-connection # Format: client-tls-connection # Description: Enables the use of a TLS tunnel for outgoing SMTP connections. # This is for SMTP over TLS (SMTPS), not TLS negotiated within SMTP using # STARTTLS. # #client-tls-connection # Name: client-tls-required # Format: client-tls-required # Description: Makes the use of TLS mandatory for outgoing SMTP connections. # The SMTP STARTTLS command will be used before mail messages are sent out. # If the remote server does not allow STARTTLS then the SMTP connection will # fail. # #client-tls-required # Name: client-tls-server-name # Format: client-tls-server-name # Description: Defines the target server hostname in the TLS handshake. With # "--client-tls-connection" this can be used for SNI, allowing the remote # server to adopt an appropriate identity. # #client-tls-server-name smtp.example.com # Name: client-tls-verify # Format: client-tls-verify # Description: Enables verification of the remote SMTP server's certificate # against any of the trusted CA certificates in the specified file or # directory. In many use cases this should be a file containing just your # self-signed root certificate. # #client-tls-verify /etc/ssl/certs/ca-certificates.crt # Name: client-tls-verify-name # Format: client-tls-verify-name # Description: Enables verification of the CNAME within the remote SMTP # server's certificate. # #client-tls-verify-name smtp.example.com # Name: close-stderr # Format: close-stderr # Description: Causes the standard error stream to be closed soon after # start-up. This is useful when operating as a backgroud daemon and it is # therefore implied by "--as-server" and "--as-proxy". # #close-stderr # Name: connection-timeout # Format: connection-timeout