Stalwart Mail Server is now just Stalwart
This commit is contained in:
@@ -6,4 +6,4 @@ cp ./tests/resources/acme/config.toml /tmp/stalwart-temp-data/config.toml
|
||||
|
||||
curl --request POST --data '{"ip":"192.168.5.2"}' http://localhost:8055/set-default-ipv4
|
||||
|
||||
cargo run -p mail-server --no-default-features --features "sqlite foundationdb postgres mysql rocks elastic s3 redis" -- --config=/tmp/stalwart-temp-data/config.toml
|
||||
cargo run -p stalwart --no-default-features --features "sqlite foundationdb postgres mysql rocks elastic s3 redis" -- --config=/tmp/stalwart-temp-data/config.toml
|
||||
|
||||
@@ -5,13 +5,13 @@ FEATURES="rocks"
|
||||
NUM_NODES=5
|
||||
|
||||
# Kill previous processes
|
||||
sudo pkill stalwart-mail
|
||||
sudo pkill stalwart
|
||||
|
||||
# Delete previous tests
|
||||
rm -rf $BASE_DIR
|
||||
|
||||
# Build the mail-server binary
|
||||
cargo build -p mail-server --no-default-features --features "$FEATURES"
|
||||
# Build the stalwart binary
|
||||
cargo build -p stalwart --no-default-features --features "$FEATURES"
|
||||
|
||||
for NUM in $(seq 1 $NUM_NODES); do
|
||||
sudo ifconfig en0 alias 10.0.$NUM.1 netmask 255.255.255.0
|
||||
@@ -49,5 +49,5 @@ config.resource.spam-filter = "file:///dev/null"
|
||||
config.resource.webadmin = "file:///dev/null"
|
||||
EOF
|
||||
|
||||
sudo ./target/debug/stalwart-mail --config $BASE_DIR/config$NUM.toml &
|
||||
sudo ./target/debug/stalwart --config $BASE_DIR/config$NUM.toml &
|
||||
done
|
||||
|
||||
@@ -7,9 +7,9 @@ FEATURES="sqlite foundationdb postgres mysql rocks elastic s3 redis"
|
||||
rm -rf $BASE_DIR
|
||||
|
||||
# Create admin user
|
||||
cargo run -p mail-server --no-default-features --features "$FEATURES" -- --init=$BASE_DIR
|
||||
cargo run -p stalwart --no-default-features --features "$FEATURES" -- --init=$BASE_DIR
|
||||
|
||||
printf "[server.http]\npermissive-cors = true\n" >> $BASE_DIR/etc/config.toml
|
||||
printf "[tracer.stdout]\ntype = 'stdout'\nlevel = 'trace'\nansi = true\nenable = true\n" >> $BASE_DIR/etc/config.toml
|
||||
sed -i '' 's/secret =/secret = "secret"\n#secret =/g' $BASE_DIR/etc/config.toml
|
||||
#cargo run -p mail-server --no-default-features --features "$FEATURES" -- --config=$BASE_DIR/etc/config.toml
|
||||
#cargo run -p stalwart --no-default-features --features "$FEATURES" -- --config=$BASE_DIR/etc/config.toml
|
||||
|
||||
Reference in New Issue
Block a user