http://wiki.qmailtoaster.org:80/index.php?title=Configuring_SRS_on_Toaster_1.03-1.3.13%2B&action=history&feed=atomConfiguring SRS on Toaster 1.03-1.3.13+ - Revision history2024-03-28T08:08:42ZRevision history for this page on the wikiMediaWiki 1.41.0http://wiki.qmailtoaster.org:80/index.php?title=Configuring_SRS_on_Toaster_1.03-1.3.13%2B&diff=119&oldid=prevEbroch: Created page with "First you need to configure some parameters in /var/qmail/control. Do the following: echo srs.YOURDOMAIN > /var/qmail/control/srs_domain echo SECRET > /var/qmail/control/srs_secrets YOURDOMAIN: Replace with your domain name, e.g. srs.foo-bar.com SECRET: Replace with a random string Important! You MUST create a MX record for srs.YOURDOMAIN pointing to your server. Optional parameters: echo 7 > /var/qmail/control/srs_maxage echo 4 > /var/qmail/control/srs_hashle..."2024-03-16T16:13:39Z<p>Created page with "First you need to configure some parameters in /var/qmail/control. Do the following: echo srs.YOURDOMAIN > /var/qmail/control/srs_domain echo SECRET > /var/qmail/control/srs_secrets YOURDOMAIN: Replace with your domain name, e.g. srs.foo-bar.com SECRET: Replace with a random string Important! You MUST create a MX record for srs.YOURDOMAIN pointing to your server. Optional parameters: echo 7 > /var/qmail/control/srs_maxage echo 4 > /var/qmail/control/srs_hashle..."</p>
<p><b>New page</b></p><div>First you need to configure some parameters in /var/qmail/control.<br />
<br />
Do the following:<br />
<br />
echo srs.YOURDOMAIN > /var/qmail/control/srs_domain<br />
echo SECRET > /var/qmail/control/srs_secrets<br />
<br />
YOURDOMAIN: Replace with your domain name, e.g. srs.foo-bar.com<br />
<br />
SECRET: Replace with a random string<br />
<br />
Important! You MUST create a MX record for srs.YOURDOMAIN pointing to your server.<br />
<br />
Optional parameters:<br />
<br />
echo 7 > /var/qmail/control/srs_maxage<br />
echo 4 > /var/qmail/control/srs_hashlength<br />
echo 4 > /var/qmail/control/srs_hashmin<br />
echo = > /var/qmail/control/srs_separator<br />
echo 0 > /var/qmail/control/srs_alwaysrewrite<br />
<br />
Configure your SRS domain.<br />
<br />
echo srs.YOURDOMAIN >> /var/qmail/control/rcpthosts<br />
echo srs.YOURDOMAIN:srs >> /var/qmail/control/virtualdomains<br />
echo "| /var/qmail/bin/srsfilter" > /var/qmail/alias/.qmail-srs-default<br />
<br />
YOURDOMAIN: Replace with your domain name, e.g. srs.foo-bar.com.<br />
<br />
Here are the configuration options:<br />
<br />
srs_domain A domain to use in rewritten addresses. If not set, SRS is disabled. Ex: srs.foo-bar.com<br />
srs_secrets A random string to generate and check SRS addresses. You can specify a list of secrets (one per line). The first secret in the<br />
list is used for generating new SRS addresses. All secrets on the list may be used to verify SRS addresses. Ex: foobar123<br />
srs_maxage The maximum permitted age of a rewritten address. SRS rewritten addresses expire after a specified number of days. libsrs2<br />
default is 21, but I believe that a week is enougth to get all bounces, so I recommend you to use 7. Ex: 7<br />
srs_hashlength The hash length to generate in a rewritten address. The hash length is a measure of security in the <br />
SRS system; longer is more secure. Ex: 4<br />
srs_hashmin The hash length to require when checking an address. If the hash length is increased, there may be SRS addresses from your MTA in the<br />
wild which use a shorter hash length. This parameter may be set to permit checking of hashes shorter than srs_hashlength.<br />
This parameter must be at most srs_hashlength. Ex: 4<br />
srs_separator The separator to appear immediately after SRS[01] in rewritten addresses. This must be -, + or =. Default value is =. Ex: =<br />
srs_alwaysrewrite Skip rcpthosts check and perform SRS rewriting for all forwarding, even when not required. <br />
This must be 0 (disabled) or 1 (enabled). Default value is 0 (disabled). Ex: 0<br />
<br />
<br />
== External links ==<br />
* [http://www.mco2.com.br/opensource/qmail/srs/ qmail SRS patch]</div>Ebroch