Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions docs/debian-conf.d/main/00_vexim_listmacrosdefs
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,12 @@ CHECK_DATA_LOCAL_ACL_FILE = /etc/exim4/vexim-acl-check-content.conf
# compact version of the report. If you tweak your template this way, you may
# as well want to change the header name here.
VEXIM_SPAM_REPORT_HEADER_NAME = X-Spam-Report

# Set the IP which should be used for outgoing connections
# This feature makes it easy to use different IPs per domain.
VEXIM_OUTIP = SELECT DISTINCT out_ip FROM domains \
WHERE domain = '${quote_mysql:$sender_address_domain}' \
AND out_ip <> TRIM('')
# set IPs of the outgoing interface as default/fallback. This value should be changed!
OUTGOING_IP_DEFAULT = :: ; 127.0.0.1
REMOTE_SMTP_INTERFACE = ${lookup mysql{VEXIM_OUTIP}{ <; $value }{ <; OUTGOING_IP_DEFAULT }}
1 change: 1 addition & 0 deletions setup/mysql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ CREATE TABLE `domains` (
`spamassassin` tinyint(1) NOT NULL DEFAULT '0',
`sa_tag` smallint(5) unsigned NOT NULL DEFAULT '0',
`sa_refuse` smallint(5) unsigned NOT NULL DEFAULT '0',
`out_ip` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`domain_id`),
UNIQUE KEY `domain` (`domain`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
Expand Down
3 changes: 2 additions & 1 deletion setup/pgsql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ CREATE TABLE "domains" (
"pipe" smallint NOT NULL default '0' CHECK("pipe" BETWEEN 0 AND 1),
"spamassassin" smallint NOT NULL default '0' CHECK("spamassassin" BETWEEN 0 AND 1),
"sa_tag" int NOT NULL default '0' CHECK("sa_tag" > -1),
"sa_refuse" int NOT NULL default '0' CHECK("sa_refuse" > -1));
"sa_refuse" int NOT NULL default '0' CHECK("sa_refuse" > -1)),
"out_ip" varchar(255) NOT NULL default '';
ALTER TABLE "domains" OWNER TO vexim;

--
Expand Down