mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2024-12-12 10:45:14 +02:00
Replace name by IP, remove unused tables
This commit is contained in:
parent
eb08b39c0a
commit
6c67b9df82
@ -6,7 +6,7 @@ while read QUERY; do
|
||||
echo "500 dunno"
|
||||
continue
|
||||
fi
|
||||
result=$(curl -s http://nginx:8081/forwardinghosts.php?host=${QUERY[1]})
|
||||
result=$(curl -s http://172.22.1.251:8081/forwardinghosts.php?host=${QUERY[1]})
|
||||
logger -t whitelist_forwardinghosts -p mail.info "Look up ${QUERY[1]} on whitelist, result $result"
|
||||
echo ${result}
|
||||
done
|
||||
|
@ -237,51 +237,6 @@ function init_db_schema() {
|
||||
),
|
||||
"attr" => "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC"
|
||||
),
|
||||
"imap_user_shares" => array(
|
||||
"cols" => array(
|
||||
"from_user" => "VARCHAR(255) NOT NULL",
|
||||
"to_user" => "VARCHAR(255) NOT NULL",
|
||||
"dummy" => "CHAR(1) DEFAULT '1'",
|
||||
"created" => "DATETIME(0) NOT NULL DEFAULT NOW(0)",
|
||||
"modified" => "DATETIME ON UPDATE CURRENT_TIMESTAMP"
|
||||
),
|
||||
"keys" => array(
|
||||
"primary" => array(
|
||||
"" => array("from_user", "to_user")
|
||||
),
|
||||
"fkey" => array(
|
||||
"fk_from_user_user_shares" => array(
|
||||
"col" => "from_user",
|
||||
"ref" => "mailbox.username",
|
||||
"delete" => "CASCADE",
|
||||
"update" => "NO ACTION"
|
||||
)
|
||||
)
|
||||
),
|
||||
"attr" => "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC"
|
||||
),
|
||||
"imap_anyone_shares" => array(
|
||||
"cols" => array(
|
||||
"from_user" => "VARCHAR(255) NOT NULL",
|
||||
"dummy" => "CHAR(1) DEFAULT '1'",
|
||||
"created" => "DATETIME(0) NOT NULL DEFAULT NOW(0)",
|
||||
"modified" => "DATETIME ON UPDATE CURRENT_TIMESTAMP"
|
||||
),
|
||||
"keys" => array(
|
||||
"primary" => array(
|
||||
"" => array("from_user")
|
||||
),
|
||||
"fkey" => array(
|
||||
"fk_from_anyone_user_shares" => array(
|
||||
"col" => "from_user",
|
||||
"ref" => "mailbox.username",
|
||||
"delete" => "CASCADE",
|
||||
"update" => "NO ACTION"
|
||||
)
|
||||
)
|
||||
),
|
||||
"attr" => "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC"
|
||||
),
|
||||
"user_acl" => array(
|
||||
"cols" => array(
|
||||
"username" => "VARCHAR(255) NOT NULL",
|
||||
|
Loading…
Reference in New Issue
Block a user