updates
This commit is contained in:
@@ -29,6 +29,17 @@ else
|
||||
echo "[user-patches.sh] ⚠ master.cf.append not found, skipping"
|
||||
fi
|
||||
|
||||
# NEW: Create and postmap local_transport_maps for selective filtering
|
||||
echo "[user-patches.sh] Creating local_transport_maps..."
|
||||
install -D -m 0644 /dev/null "$DST_DIR/local_transport_maps"
|
||||
cat > "$DST_DIR/local_transport_maps" << 'EOF'
|
||||
# Filter only local/internal deliveries (adjust to your domains)
|
||||
/^.*@example\.com$/ smtp:[localhost]:10025 # Replace with your domains, e.g. /^.*@andreasknuth\.de$/
|
||||
/^.*@another-domain\.com$/ smtp:[localhost]:10025
|
||||
EOF
|
||||
postmap "$DST_DIR/local_transport_maps"
|
||||
echo "[user-patches.sh] ✓ local_transport_maps created and mapped"
|
||||
|
||||
# Verify content filter script exists and is executable
|
||||
if [ -x "/usr/local/bin/content_filter.py" ]; then
|
||||
echo "[user-patches.sh] ✓ Content filter script found"
|
||||
|
||||
Reference in New Issue
Block a user