/etc/rspamd/local.d/multimap.conf:
IP_WHITELIST {
type = "ip";
prefilter = "true";
map = "/${LOCAL_CONFDIR}/local.d/ip_whitelist.map";
action = "accept";
#!/bin/bash | |
# "Register JDK7 for update-alternatives Script in Debian Way" | |
# Based on 1. codeslinger's "install_java7_alternatives" from https://gist.github.com/445930 | |
# 2. sun-java6-plugin.deb postint script (for plugin) | |
# Modified by Cheng-Wei Chien<e.cwchien@gmail.com>, 2012-08-16 | |
# ------------------------------------------------------------------------------ | |
# Note: This script works on x86/amd64 Debian GNU/Linux|Ubuntu. | |
# If you use other arch or distro, you may have to modify some parameters. | |
# | |
# Usage: 1. Extract jdk7 tar.gz to, for example, /usr/lib/jvm/java-7-sun-1.7.0.13, |
# On the host | |
============= | |
lxc config set openvpn raw.lxc 'lxc.cgroup.devices.allow = c 10:200 rwm' | |
lxc config device add openvpn tun unix-char path=/dev/net/tun | |
# In the container | |
================== | |
1. mknod /dev/net/tun c 10 200 |
acl_check_dkim: | |
# Skip this whole acl if header.d contains an @ sign because exim is | |
# breaking down the header.i part (which usually is an email address) | |
# bit by bit, working towards just the domain name. | |
accept condition = ${if match{$dkim_cur_signer}{\N@\N}} | |
accept dkim_status = none | |
sender_domains = KNOWN_DKIM_SIGNERS | |
dkim_signers = KNOWN_DKIM_SIGNERS | |
condition = ${if eqi{$sender_address_domain}{$dkim_cur_signer} {yes}{no}} |
#!/bin/bash | |
USER="box@example.com" | |
RETENTION=120 | |
ARCHIVE_ROOT="Archiv" | |
BOXES_TO_ARCHIVE=("INBOX" "Odeslaná pošta") | |
# Load all existing subfolders in BOXES_TO_ARCHIVE | |
BOXES=() |
# Customizing Varnish Cache for subdomains | |
backend default { | |
.host = "127.0.0.1"; | |
.port = "8080"; | |
} | |
sub vcl_recv { | |
# If exists any trouble, disable the cookie | |
if (!req.backend.healthy) { |
I hereby claim:
To claim this, I am signing this object:
Export your public key:
keybase pgp export > keybase-public.key
Export your private key:
keybase pgp export --secret > keybase-private.key
#!/bin/sh | |
MYSQLADMIN_CFG="/etc/mysql/mariadb.conf.d/90-mysqladmin.cnf" | |
# generate password | |
PASS=$(perl -e 'print map{("a".."z","A".."Z",0..9)[int(rand(62))]}(1..16)'); | |
# adjust /etc/mysql/debian.cnf (used as defaults file by system scripts) | |
sed -i "s/^password =.*$/password = ${PASS}/" /etc/mysql/debian.cnf | |
sed -i "s/^user =.*$/user = debian-sys-maint/" /etc/mysql/debian.cnf | |
# create config file for mysqladmin itself (maybe not needed) | |
umask 066 | |
cat > ${MYSQLADMIN_CFG} <<EOF |