proxsmtpd.conf(5)

πŸ’– proxsmtpd.conf β€” the config file for proxsmtpd(8) πŸ’–

okay bestie, so this is the file-formats manual page for proxsmtpd.conf, which is literally the glow-up your mail filter needs. it's the config file for proxsmtpd(8) and i'm about to walk you through every single line of it. no skips. no cap. 🫢


✨ DESCRIPTION ✨

so here's the vibe: proxsmtpd(8) reads a configuration file when it starts up. where does it live? that depends on how you compiled proxsmtp, but it should usually be in either the /usr/local/etc/ or /etc/ directories. and if proxsmtpd(8) can't find its config file, it will print a warning when it starts up β€” along with the location it's expecting to find it in. so you're never just left guessing, she tells you where she looked. πŸ’…

you can also specify a different location for a config file by passing the -f argument to proxsmtpd(8). cute, flexible, iconic.

the settings are specified one per line. the setting names come first, followed by a colon and then the value. comments start with the # character on a line of their own. whitespace is ignored at the beginning of line, end of line and around the colons β€” so you can be a little messy with it, she doesn't care. 😌

a sample configuration file can be found in the doc/ directory of the proxsmtp distribution. go look, it's giving reference material.


🌸 SETTINGS 🌸

the various settings are as follows:

  • FilterCommand β€” this is the command used to filter email through. if not specified then no filtering will be done. specify all the arguments the command needs as you would on a command-line.

[ Default: no filtering ]

  • FilterTimeout β€” the amount of time in seconds to wait for the FilterCommand to process email data.

[ Default: 30 seconds ]

  • FilterReject β€” the rejection message used when FilterType is set to 'reject'.

[ Default: 530 Email Rejected ]

  • FilterType β€” when set to 'pipe' the email data is piped through the FilterCommand using standard in and standard out. when set to 'file' the email data is saved to a file and the file name is passed to the FilterCommand using the EMAIL environment variable.

when set to 'reject' then email is immediately rejected using message defined by the FilterReject option. (yes, instant. no takebacks.)

[ Default: pipe ]

  • Header β€” a header to add to scanned messages. put an empty value to suppress adding a header. you can include the following special formatting characters in the string to include special values:
    • %i Client IP Address
    • %l Local IP Address
    • %d Current Date

you can also include the standard \r or \n escapes.

[ Optional ]

  • KeepAlives β€” on slow connections the server will sometimes timeout before proxsmtpd(8) is finished filtering the file. this option sends NOOP's to the server to keep the connection alive. specify the number of seconds, or 0 to disable. she's just texting "u still there??" to the server. πŸ“±

[ Default: 0 ]

  • Listen β€” the address and port to listen for SMTP connections on. see syntax of addresses below.

[ Default: port 10025 on all local IP addresses ]

  • MaxConnections β€” specifies the maximum number of connections to accept at once.

[ Default: 64 ]

  • OutAddress β€” the address of the SMTP server to send email to once it's been scanned. see syntax of addreses below.

[ Required ]

  • Skip β€” whether to skip certain kinds of connections or email from running through the filter. specify 'authenticated' to skip SMTP authenticated connections.

[ Optional ]

  • TempDirectory β€” the directory to write temp files to.

[ Default: /tmp ]

  • TimeOut β€” the number of seconds to wait while reading data from network connections.

[ Default: 180 seconds ]

  • TransparentProxy β€” setting this option to 'client' enables transparent proxy support, which allows you to route all SMTP traffic that's going through a gateway through proxsmtp which will then send it on to its final destination. this setup usually involves firewall rules which redirect traffic to proxsmtp, and the setup varies from OS to OS.

specify 'full' to enable a true transparent proxy where neither the client or server are aware of the proxy by way of the packet headers. this setup usually involves routers to redirect traffic to proxsmtp, and the setup varies from OS to OS. spooky invisible proxy energy ✨

[ Default: off ]

  • User β€” the user to run as. if this option is specified then proxsmtpd(8) must be started as root. it will then drop root privileges and run as the specified user. the user can either be a name or a numerical user id.

[ Optional ]

  • XClient β€” send an XCLIENT command to the receiving server. this is useful for forwarding client addresses and connection info to servers that support this feature.

[ Default: off ]


πŸ¦‹ ADDRESSES πŸ¦‹

addresses can be specified in multiple formats:

  • Unix local addresses can be specified by specifying their full path. (ie: '/var/run/socket').
  • IP addresses can be specified using dotted notation with a colon before the port number (ie: '127.0.0.1:3310').
  • IPv6 addresses are implemented but disabled. the code needs testing. (she's there, she's just not ready to come out yet πŸ™ˆ)

πŸ’œ SEE ALSO πŸ’œ

proxsmtpd(8)


πŸ‘‘ AUTHOR πŸ‘‘

Stef Walter <stef@memberwebs.com>


and that's the whole page, bestie. every setting, every default, every bracket. go forth and configure. πŸ’…βœ¨

this page came from the proxsmtp source, and it's dated September, 2004 β€” so she's an elder icon but she still slays. proxsmtpd.conf(5), periodt. πŸŽ€

πŸ“¦ where this page comes from