NobGit
public nobgit read

NobMail

Based on mailcow: dockerized

Languages

Repository composition by tracked source files.

PHP
PHP 49% JavaScript 35% HTML 9% CSS 4% Shell 2% Python 1% Lua 0% Perl 0% Ruby 0% SCSS 0%
Create file Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git

Trace

data/conf/rspamd/meta_exporter/pipe.php

Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.

pipe.php on main
Author Date Commit Line Code
andre.peters over 8 years ago 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
1
<?php
Open commit View diff
1 <?php
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
2
// File size is limited by Nginx site to 10M
Open commit View diff
2 // File size is limited by Nginx site to 10M
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
3
// To speed things up, we do not include prerequisites
Open commit View diff
3 // To speed things up, we do not include prerequisites
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
4
header('Content-Type: text/plain');
Open commit View diff
4 header('Content-Type: text/plain');
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
5
require_once "vars.inc.php";
Open commit View diff
5 require_once "vars.inc.php";
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
6
// Do not show errors, we log to using error_log
Open commit View diff
6 // Do not show errors, we log to using error_log
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
7
ini_set('error_reporting', 0);
Open commit View diff
7 ini_set('error_reporting', 0);
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
8
// Init database
Open commit View diff
8 // Init database
André almost 8 years ago 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
9
//$dsn = $database_type . ':host=' . $database_host . ';dbname=' . $database_name;
Open commit View diff
9 //$dsn = $database_type . ':host=' . $database_host . ';dbname=' . $database_name;
same change 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
10
$dsn = $database_type . ":unix_socket=" . $database_sock . ";dbname=" . $database_name;
Open commit View diff
10 $dsn = $database_type . ":unix_socket=" . $database_sock . ";dbname=" . $database_name;
andre.peters over 8 years ago 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
11
$opt = [
Open commit View diff
11 $opt = [
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
12
    PDO::ATTR_ERRMODE            => PDO::ERRMODE_EXCEPTION,
Open commit View diff
12 PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
13
    PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
Open commit View diff
13 PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
14
    PDO::ATTR_EMULATE_PREPARES   => false,
Open commit View diff
14 PDO::ATTR_EMULATE_PREPARES => false,
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
15
];
Open commit View diff
15 ];
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
16
try {
Open commit View diff
16 try {
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
17
  $pdo = new PDO($dsn, $database_user, $database_pass, $opt);
Open commit View diff
17 $pdo = new PDO($dsn, $database_user, $database_pass, $opt);
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
18
}
Open commit View diff
18 }
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
19
catch (PDOException $e) {
Open commit View diff
19 catch (PDOException $e) {
andryyy over 6 years ago ccdb7fc

[Rspamd] Add metadata exporter for unauthed mail

Full commit hash
ccdb7fcd2693bd5f0e3929eec8daccb414403f47
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
20
  error_log("QUARANTINE: " . $e . PHP_EOL);
Open commit View diff
20 error_log("QUARANTINE: " . $e . PHP_EOL);
andre.peters over 8 years ago 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
21
  http_response_code(501);
Open commit View diff
21 http_response_code(501);
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
22
  exit;
Open commit View diff
22 exit;
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
23
}
Open commit View diff
23 }
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
24
// Init Redis
Open commit View diff
24 // Init Redis
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
25
$redis = new Redis();
Open commit View diff
25 $redis = new Redis();
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
26
$redis->connect('redis-mailcow', 6379);
Open commit View diff
26 $redis->connect('redis-mailcow', 6379);
FreddleSpl0it over 1 year ago 89fb132

Enable password protection for Redis

Full commit hash
89fb1322c6f486a9883e6435a73537b13fbf3582
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
27
$redis->auth(getenv("REDISPASS"));
Open commit View diff
27 $redis->auth(getenv("REDISPASS"));
andre.peters over 8 years ago 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
28
Open commit View diff
28
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
29
// Functions
Open commit View diff
29 // Functions
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
30
function parse_email($email) {
Open commit View diff
30 function parse_email($email) {
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
31
  if(!filter_var($email, FILTER_VALIDATE_EMAIL)) return false;
Open commit View diff
31 if(!filter_var($email, FILTER_VALIDATE_EMAIL)) return false;
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
32
  $a = strrpos($email, '@');
Open commit View diff
32 $a = strrpos($email, '@');
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
33
  return array('local' => substr($email, 0, $a), 'domain' => substr(substr($email, $a), 1));
Open commit View diff
33 return array('local' => substr($email, 0, $a), 'domain' => substr(substr($email, $a), 1));
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
34
}
Open commit View diff
34 }
FreddleSpl0it about 1 month ago 24cc369

[Rspamd] Migrate metadata_exporter to multipart formatter

Full commit hash
24cc369d84935428f58a4c6bef5b18a58ad248ed
Author
FreddleSpl0it <[email protected]>
Date
about 1 month ago
Selected line
35
// rspamd metadata_exporter (multipart formatter):
Open commit View diff
35 // rspamd metadata_exporter (multipart formatter):
same change 24cc369

[Rspamd] Migrate metadata_exporter to multipart formatter

Full commit hash
24cc369d84935428f58a4c6bef5b18a58ad248ed
Author
FreddleSpl0it <[email protected]>
Date
about 1 month ago
Selected line
36
//   - $_POST['metadata']        JSON with the rspamd metadata
Open commit View diff
36 // - $_POST['metadata'] JSON with the rspamd metadata
same change 24cc369

[Rspamd] Migrate metadata_exporter to multipart formatter

Full commit hash
24cc369d84935428f58a4c6bef5b18a58ad248ed
Author
FreddleSpl0it <[email protected]>
Date
about 1 month ago
Selected line
37
//   - $_FILES['message']        raw RFC822 message
Open commit View diff
37 // - $_FILES['message'] raw RFC822 message
same change 24cc369

[Rspamd] Migrate metadata_exporter to multipart formatter

Full commit hash
24cc369d84935428f58a4c6bef5b18a58ad248ed
Author
FreddleSpl0it <[email protected]>
Date
about 1 month ago
Selected line
38
if (empty($_POST['metadata']) || !isset($_FILES['message']) || $_FILES['message']['error'] !== UPLOAD_ERR_OK) {
Open commit View diff
38 if (empty($_POST['metadata']) || !isset($_FILES['message']) || $_FILES['message']['error'] !== UPLOAD_ERR_OK) {
same change 24cc369

[Rspamd] Migrate metadata_exporter to multipart formatter

Full commit hash
24cc369d84935428f58a4c6bef5b18a58ad248ed
Author
FreddleSpl0it <[email protected]>
Date
about 1 month ago
Selected line
39
  error_log("QUARANTINE: missing multipart parts from rspamd" . PHP_EOL);
Open commit View diff
39 error_log("QUARANTINE: missing multipart parts from rspamd" . PHP_EOL);
same change 24cc369

[Rspamd] Migrate metadata_exporter to multipart formatter

Full commit hash
24cc369d84935428f58a4c6bef5b18a58ad248ed
Author
FreddleSpl0it <[email protected]>
Date
about 1 month ago
Selected line
40
  http_response_code(400);
Open commit View diff
40 http_response_code(400);
same change 24cc369

[Rspamd] Migrate metadata_exporter to multipart formatter

Full commit hash
24cc369d84935428f58a4c6bef5b18a58ad248ed
Author
FreddleSpl0it <[email protected]>
Date
about 1 month ago
Selected line
41
  exit;
Open commit View diff
41 exit;
andre.peters over 8 years ago 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
42
}
Open commit View diff
42 }
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
43
Open commit View diff
43
FreddleSpl0it about 1 month ago 24cc369

[Rspamd] Migrate metadata_exporter to multipart formatter

Full commit hash
24cc369d84935428f58a4c6bef5b18a58ad248ed
Author
FreddleSpl0it <[email protected]>
Date
about 1 month ago
Selected line
44
$meta = json_decode($_POST['metadata'], true);
Open commit View diff
44 $meta = json_decode($_POST['metadata'], true);
same change 24cc369

[Rspamd] Migrate metadata_exporter to multipart formatter

Full commit hash
24cc369d84935428f58a4c6bef5b18a58ad248ed
Author
FreddleSpl0it <[email protected]>
Date
about 1 month ago
Selected line
45
if (!is_array($meta)) {
Open commit View diff
45 if (!is_array($meta)) {
same change 24cc369

[Rspamd] Migrate metadata_exporter to multipart formatter

Full commit hash
24cc369d84935428f58a4c6bef5b18a58ad248ed
Author
FreddleSpl0it <[email protected]>
Date
about 1 month ago
Selected line
46
  error_log("QUARANTINE: cannot decode metadata JSON" . PHP_EOL);
Open commit View diff
46 error_log("QUARANTINE: cannot decode metadata JSON" . PHP_EOL);
same change 24cc369

[Rspamd] Migrate metadata_exporter to multipart formatter

Full commit hash
24cc369d84935428f58a4c6bef5b18a58ad248ed
Author
FreddleSpl0it <[email protected]>
Date
about 1 month ago
Selected line
47
  http_response_code(400);
Open commit View diff
47 http_response_code(400);
same change 24cc369

[Rspamd] Migrate metadata_exporter to multipart formatter

Full commit hash
24cc369d84935428f58a4c6bef5b18a58ad248ed
Author
FreddleSpl0it <[email protected]>
Date
about 1 month ago
Selected line
48
  exit;
Open commit View diff
48 exit;
same change 24cc369

[Rspamd] Migrate metadata_exporter to multipart formatter

Full commit hash
24cc369d84935428f58a4c6bef5b18a58ad248ed
Author
FreddleSpl0it <[email protected]>
Date
about 1 month ago
Selected line
49
}
Open commit View diff
49 }
andre.peters over 8 years ago 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
50
Open commit View diff
50
FreddleSpl0it about 1 month ago 24cc369

[Rspamd] Migrate metadata_exporter to multipart formatter

Full commit hash
24cc369d84935428f58a4c6bef5b18a58ad248ed
Author
FreddleSpl0it <[email protected]>
Date
about 1 month ago
Selected line
51
$raw_data_content = file_get_contents($_FILES['message']['tmp_name']);
Open commit View diff
51 $raw_data_content = file_get_contents($_FILES['message']['tmp_name']);
same change 24cc369

[Rspamd] Migrate metadata_exporter to multipart formatter

Full commit hash
24cc369d84935428f58a4c6bef5b18a58ad248ed
Author
FreddleSpl0it <[email protected]>
Date
about 1 month ago
Selected line
52
$raw_data = mb_convert_encoding($raw_data_content, 'HTML-ENTITIES', "UTF-8");
Open commit View diff
52 $raw_data = mb_convert_encoding($raw_data_content, 'HTML-ENTITIES', "UTF-8");
same change 24cc369

[Rspamd] Migrate metadata_exporter to multipart formatter

Full commit hash
24cc369d84935428f58a4c6bef5b18a58ad248ed
Author
FreddleSpl0it <[email protected]>
Date
about 1 month ago
Selected line
53
$raw_size = (int)$_FILES['message']['size'];
Open commit View diff
53 $raw_size = (int)$_FILES['message']['size'];
andre.peters over 8 years ago 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
54
Open commit View diff
54
FreddleSpl0it about 1 month ago 24cc369

[Rspamd] Migrate metadata_exporter to multipart formatter

Full commit hash
24cc369d84935428f58a4c6bef5b18a58ad248ed
Author
FreddleSpl0it <[email protected]>
Date
about 1 month ago
Selected line
55
$qid      = $meta['qid']     ?? 'unknown';
Open commit View diff
55 $qid = $meta['qid'] ?? 'unknown';
same change 24cc369

[Rspamd] Migrate metadata_exporter to multipart formatter

Full commit hash
24cc369d84935428f58a4c6bef5b18a58ad248ed
Author
FreddleSpl0it <[email protected]>
Date
about 1 month ago
Selected line
56
$subject  = iconv_mime_decode($meta['subject'] ?? '');
Open commit View diff
56 $subject = iconv_mime_decode($meta['subject'] ?? '');
same change 24cc369

[Rspamd] Migrate metadata_exporter to multipart formatter

Full commit hash
24cc369d84935428f58a4c6bef5b18a58ad248ed
Author
FreddleSpl0it <[email protected]>
Date
about 1 month ago
Selected line
57
$score    = $meta['score']   ?? 0;
Open commit View diff
57 $score = $meta['score'] ?? 0;
same change 24cc369

[Rspamd] Migrate metadata_exporter to multipart formatter

Full commit hash
24cc369d84935428f58a4c6bef5b18a58ad248ed
Author
FreddleSpl0it <[email protected]>
Date
about 1 month ago
Selected line
58
$rcpts    = $meta['rcpt']    ?? array();
Open commit View diff
58 $rcpts = $meta['rcpt'] ?? array();
same change 24cc369

[Rspamd] Migrate metadata_exporter to multipart formatter

Full commit hash
24cc369d84935428f58a4c6bef5b18a58ad248ed
Author
FreddleSpl0it <[email protected]>
Date
about 1 month ago
Selected line
59
$user     = $meta['user']    ?? 'unknown';
Open commit View diff
59 $user = $meta['user'] ?? 'unknown';
same change 24cc369

[Rspamd] Migrate metadata_exporter to multipart formatter

Full commit hash
24cc369d84935428f58a4c6bef5b18a58ad248ed
Author
FreddleSpl0it <[email protected]>
Date
about 1 month ago
Selected line
60
$ip       = $meta['ip']      ?? 'unknown';
Open commit View diff
60 $ip = $meta['ip'] ?? 'unknown';
same change 24cc369

[Rspamd] Migrate metadata_exporter to multipart formatter

Full commit hash
24cc369d84935428f58a4c6bef5b18a58ad248ed
Author
FreddleSpl0it <[email protected]>
Date
about 1 month ago
Selected line
61
$action   = $meta['action']  ?? 'no action';
Open commit View diff
61 $action = $meta['action'] ?? 'no action';
same change 24cc369

[Rspamd] Migrate metadata_exporter to multipart formatter

Full commit hash
24cc369d84935428f58a4c6bef5b18a58ad248ed
Author
FreddleSpl0it <[email protected]>
Date
about 1 month ago
Selected line
62
$sender   = $meta['from']    ?? '';
Open commit View diff
62 $sender = $meta['from'] ?? '';
same change 24cc369

[Rspamd] Migrate metadata_exporter to multipart formatter

Full commit hash
24cc369d84935428f58a4c6bef5b18a58ad248ed
Author
FreddleSpl0it <[email protected]>
Date
about 1 month ago
Selected line
63
$symbols  = json_encode($meta['symbols'] ?? array());
Open commit View diff
63 $symbols = json_encode($meta['symbols'] ?? array());
same change 24cc369

[Rspamd] Migrate metadata_exporter to multipart formatter

Full commit hash
24cc369d84935428f58a4c6bef5b18a58ad248ed
Author
FreddleSpl0it <[email protected]>
Date
about 1 month ago
Selected line
64
$fuzzy    = json_encode(is_array($meta['fuzzy'] ?? null) ? $meta['fuzzy'] : array());
Open commit View diff
64 $fuzzy = json_encode(is_array($meta['fuzzy'] ?? null) ? $meta['fuzzy'] : array());
andre.peters over 8 years ago 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
65
Open commit View diff
65
andryyy over 6 years ago 580b700

[Rspamd] Quarantine: Set sender to null@localhost when sender is missing

Full commit hash
580b700eec901369c846ee8e7a34095062e67f34
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
66
if (empty($sender)) {
Open commit View diff
66 if (empty($sender)) {
andryyy over 6 years ago ccdb7fc

[Rspamd] Add metadata exporter for unauthed mail

Full commit hash
ccdb7fcd2693bd5f0e3929eec8daccb414403f47
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
67
  error_log("QUARANTINE: Unknown sender, assuming empty-env-from@localhost" . PHP_EOL);
Open commit View diff
67 error_log("QUARANTINE: Unknown sender, assuming empty-env-from@localhost" . PHP_EOL);
andryyy over 6 years ago 65aa7b0

[Rspamd] Use empty-env-from@localhost as placeholder for empty env from senders in quarantine

Full commit hash
65aa7b0a92cd80f808041437c7e73376a8b8500b
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
68
  $sender = 'empty-env-from@localhost';
Open commit View diff
68 $sender = 'empty-env-from@localhost';
andryyy over 6 years ago 580b700

[Rspamd] Quarantine: Set sender to null@localhost when sender is missing

Full commit hash
580b700eec901369c846ee8e7a34095062e67f34
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
69
}
Open commit View diff
69 }
same change 580b700

[Rspamd] Quarantine: Set sender to null@localhost when sender is missing

Full commit hash
580b700eec901369c846ee8e7a34095062e67f34
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
70
Open commit View diff
70
andre.peters over 8 years ago 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
71
try {
Open commit View diff
71 try {
André almost 8 years ago 32f7ae1

[Rspamd] Prefix quarantine error_log messages with "QUARANTINE"

Full commit hash
32f7ae1d2e1d9ee03ac358c967335863bdea6f30
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
72
  $max_size = (int)$redis->Get('Q_MAX_SIZE');
Open commit View diff
72 $max_size = (int)$redis->Get('Q_MAX_SIZE');
same change 32f7ae1

[Rspamd] Prefix quarantine error_log messages with "QUARANTINE"

Full commit hash
32f7ae1d2e1d9ee03ac358c967335863bdea6f30
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
73
  if (($max_size * 1048576) < $raw_size) {
Open commit View diff
73 if (($max_size * 1048576) < $raw_size) {
andryyy over 6 years ago ccdb7fc

[Rspamd] Add metadata exporter for unauthed mail

Full commit hash
ccdb7fcd2693bd5f0e3929eec8daccb414403f47
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
74
    error_log(sprintf("QUARANTINE: Message too large: %d b exceeds %d b", $raw_size, ($max_size * 1048576)) . PHP_EOL);
Open commit View diff
74 error_log(sprintf("QUARANTINE: Message too large: %d b exceeds %d b", $raw_size, ($max_size * 1048576)) . PHP_EOL);
André almost 8 years ago 32f7ae1

[Rspamd] Prefix quarantine error_log messages with "QUARANTINE"

Full commit hash
32f7ae1d2e1d9ee03ac358c967335863bdea6f30
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
75
    http_response_code(505);
Open commit View diff
75 http_response_code(505);
same change 32f7ae1

[Rspamd] Prefix quarantine error_log messages with "QUARANTINE"

Full commit hash
32f7ae1d2e1d9ee03ac358c967335863bdea6f30
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
76
    exit;
Open commit View diff
76 exit;
andre.peters over 8 years ago 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
77
  }
Open commit View diff
77 }
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
78
  if ($exclude_domains = $redis->Get('Q_EXCLUDE_DOMAINS')) {
Open commit View diff
78 if ($exclude_domains = $redis->Get('Q_EXCLUDE_DOMAINS')) {
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
79
    $exclude_domains = json_decode($exclude_domains, true);
Open commit View diff
79 $exclude_domains = json_decode($exclude_domains, true);
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
80
  }
Open commit View diff
80 }
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
81
  $retention_size = (int)$redis->Get('Q_RETENTION_SIZE');
Open commit View diff
81 $retention_size = (int)$redis->Get('Q_RETENTION_SIZE');
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
82
}
Open commit View diff
82 }
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
83
catch (RedisException $e) {
Open commit View diff
83 catch (RedisException $e) {
andryyy over 6 years ago ccdb7fc

[Rspamd] Add metadata exporter for unauthed mail

Full commit hash
ccdb7fcd2693bd5f0e3929eec8daccb414403f47
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
84
  error_log("QUARANTINE: " . $e . PHP_EOL);
Open commit View diff
84 error_log("QUARANTINE: " . $e . PHP_EOL);
andre.peters over 8 years ago 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
85
  http_response_code(504);
Open commit View diff
85 http_response_code(504);
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
86
  exit;
Open commit View diff
86 exit;
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
87
}
Open commit View diff
87 }
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
88
Open commit View diff
88
andre.peters over 8 years ago 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
89
$rcpt_final_mailboxes = array();
Open commit View diff
89 $rcpt_final_mailboxes = array();
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
90
Open commit View diff
90
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
91
// Loop through all rcpts
Open commit View diff
91 // Loop through all rcpts
FreddleSpl0it about 1 month ago 24cc369

[Rspamd] Migrate metadata_exporter to multipart formatter

Full commit hash
24cc369d84935428f58a4c6bef5b18a58ad248ed
Author
FreddleSpl0it <[email protected]>
Date
about 1 month ago
Selected line
92
foreach ($rcpts as $rcpt) {
Open commit View diff
92 foreach ($rcpts as $rcpt) {
Aaron Larisch over 7 years ago 40a826a

Fix rejected mails not being quarantized properly if they are tagged

Full commit hash
40a826a3471db61349eb64f58dd35bdddd0ae19e
Author
Aaron Larisch <[email protected]>
Date
over 7 years ago
Selected line
93
  // Remove tag
Open commit View diff
93 // Remove tag
same change 40a826a

Fix rejected mails not being quarantized properly if they are tagged

Full commit hash
40a826a3471db61349eb64f58dd35bdddd0ae19e
Author
Aaron Larisch <[email protected]>
Date
over 7 years ago
Selected line
94
  $rcpt = preg_replace('/^(.*?)\+.*(@.*)$/', '$1$2', $rcpt);
Open commit View diff
94 $rcpt = preg_replace('/^(.*?)\+.*(@.*)$/', '$1$2', $rcpt);
FreddleSpl0it over 1 year ago 89fb132

Enable password protection for Redis

Full commit hash
89fb1322c6f486a9883e6435a73537b13fbf3582
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
95
Open commit View diff
95
andre.peters over 8 years ago 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
96
  // Break rcpt into local part and domain part
Open commit View diff
96 // Break rcpt into local part and domain part
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
97
  $parsed_rcpt = parse_email($rcpt);
Open commit View diff
97 $parsed_rcpt = parse_email($rcpt);
FreddleSpl0it over 1 year ago 89fb132

Enable password protection for Redis

Full commit hash
89fb1322c6f486a9883e6435a73537b13fbf3582
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
98
Open commit View diff
98
andre.peters over 8 years ago 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
99
  // Skip if not a mailcow handled domain
Open commit View diff
99 // Skip if not a mailcow handled domain
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
100
  try {
Open commit View diff
100 try {
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
101
    if (!$redis->hGet('DOMAIN_MAP', $parsed_rcpt['domain'])) {
Open commit View diff
101 if (!$redis->hGet('DOMAIN_MAP', $parsed_rcpt['domain'])) {
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
102
      continue;
Open commit View diff
102 continue;
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
103
    }
Open commit View diff
103 }
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
104
  }
Open commit View diff
104 }
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
105
  catch (RedisException $e) {
Open commit View diff
105 catch (RedisException $e) {
andryyy over 6 years ago ccdb7fc

[Rspamd] Add metadata exporter for unauthed mail

Full commit hash
ccdb7fcd2693bd5f0e3929eec8daccb414403f47
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
106
    error_log("QUARANTINE: " . $e . PHP_EOL);
Open commit View diff
106 error_log("QUARANTINE: " . $e . PHP_EOL);
andre.peters over 8 years ago 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
107
    http_response_code(504);
Open commit View diff
107 http_response_code(504);
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
108
    exit;
Open commit View diff
108 exit;
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
109
  }
Open commit View diff
109 }
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
110
Open commit View diff
110
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
111
  // Skip if domain is excluded
Open commit View diff
111 // Skip if domain is excluded
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
112
  if (in_array($parsed_rcpt['domain'], $exclude_domains)) {
Open commit View diff
112 if (in_array($parsed_rcpt['domain'], $exclude_domains)) {
andryyy over 6 years ago ccdb7fc

[Rspamd] Add metadata exporter for unauthed mail

Full commit hash
ccdb7fcd2693bd5f0e3929eec8daccb414403f47
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
113
    error_log(sprintf("QUARANTINE: Skipped domain %s", $parsed_rcpt['domain']) . PHP_EOL);
Open commit View diff
113 error_log(sprintf("QUARANTINE: Skipped domain %s", $parsed_rcpt['domain']) . PHP_EOL);
andre.peters over 8 years ago 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
114
    continue;
Open commit View diff
114 continue;
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
115
  }
Open commit View diff
115 }
andre.peters over 8 years ago 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
116
Open commit View diff
116
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
117
  // Always assume rcpt is not a final mailbox but an alias for a mailbox or further aliases
Open commit View diff
117 // Always assume rcpt is not a final mailbox but an alias for a mailbox or further aliases
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
118
  //
Open commit View diff
118 //
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
119
  //             rcpt
Open commit View diff
119 // rcpt
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
120
  //              |
Open commit View diff
120 // |
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
121
  // mailbox <-- goto ---> alias1, alias2, mailbox2
Open commit View diff
121 // mailbox <-- goto ---> alias1, alias2, mailbox2
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
122
  //                          |       |
Open commit View diff
122 // | |
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
123
  //                      mailbox3    |
Open commit View diff
123 // mailbox3 |
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
124
  //                                  |
Open commit View diff
124 // |
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
125
  //                               alias3 ---> mailbox4
Open commit View diff
125 // alias3 ---> mailbox4
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
126
  //
Open commit View diff
126 //
andre.peters over 8 years ago 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
127
  try {
Open commit View diff
127 try {
andryyy almost 6 years ago 1e244e9

[Rspamd] Quarantine, Pushover: Respect active = 2 while processing

Full commit hash
1e244e9c0c43a350e4365679cf0e32ef2c65efa8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
128
    $stmt = $pdo->prepare("SELECT `goto` FROM `alias` WHERE `address` = :rcpt AND `active` = '1'");
Open commit View diff
128 $stmt = $pdo->prepare("SELECT `goto` FROM `alias` WHERE `address` = :rcpt AND `active` = '1'");
andre.peters over 8 years ago 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
129
    $stmt->execute(array(
Open commit View diff
129 $stmt->execute(array(
andre.peters over 8 years ago 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
130
      ':rcpt' => $rcpt
Open commit View diff
130 ':rcpt' => $rcpt
andre.peters over 8 years ago 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
131
    ));
Open commit View diff
131 ));
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
132
    $gotos = $stmt->fetch(PDO::FETCH_ASSOC)['goto'];
Open commit View diff
132 $gotos = $stmt->fetch(PDO::FETCH_ASSOC)['goto'];
andre.peters over 8 years ago 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
133
    if (empty($gotos)) {
Open commit View diff
133 if (empty($gotos)) {
andryyy almost 6 years ago 1e244e9

[Rspamd] Quarantine, Pushover: Respect active = 2 while processing

Full commit hash
1e244e9c0c43a350e4365679cf0e32ef2c65efa8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
134
      $stmt = $pdo->prepare("SELECT `goto` FROM `alias` WHERE `address` = :rcpt AND `active` = '1'");
Open commit View diff
134 $stmt = $pdo->prepare("SELECT `goto` FROM `alias` WHERE `address` = :rcpt AND `active` = '1'");
andre.peters over 8 years ago 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
135
      $stmt->execute(array(
Open commit View diff
135 $stmt->execute(array(
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
136
        ':rcpt' => '@' . $parsed_rcpt['domain']
Open commit View diff
136 ':rcpt' => '@' . $parsed_rcpt['domain']
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
137
      ));
Open commit View diff
137 ));
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
138
      $gotos = $stmt->fetch(PDO::FETCH_ASSOC)['goto'];
Open commit View diff
138 $gotos = $stmt->fetch(PDO::FETCH_ASSOC)['goto'];
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
139
    }
Open commit View diff
139 }
Howaner about 7 years ago 17918b3

Added domain alias handling to quarantine mails and added recipients row to quarantine mail display

Full commit hash
17918b3e214d19fc4cc31da74511b3fe6b7038d1
Author
Howaner <[email protected]>
Date
about 7 years ago
Selected line
140
    if (empty($gotos)) {
Open commit View diff
140 if (empty($gotos)) {
same change 17918b3

Added domain alias handling to quarantine mails and added recipients row to quarantine mail display

Full commit hash
17918b3e214d19fc4cc31da74511b3fe6b7038d1
Author
Howaner <[email protected]>
Date
about 7 years ago
Selected line
141
      $stmt = $pdo->prepare("SELECT `target_domain` FROM `alias_domain` WHERE `alias_domain` = :rcpt AND `active` = '1'");
Open commit View diff
141 $stmt = $pdo->prepare("SELECT `target_domain` FROM `alias_domain` WHERE `alias_domain` = :rcpt AND `active` = '1'");
same change 17918b3

Added domain alias handling to quarantine mails and added recipients row to quarantine mail display

Full commit hash
17918b3e214d19fc4cc31da74511b3fe6b7038d1
Author
Howaner <[email protected]>
Date
about 7 years ago
Selected line
142
      $stmt->execute(array(':rcpt' => $parsed_rcpt['domain']));
Open commit View diff
142 $stmt->execute(array(':rcpt' => $parsed_rcpt['domain']));
same change 17918b3

Added domain alias handling to quarantine mails and added recipients row to quarantine mail display

Full commit hash
17918b3e214d19fc4cc31da74511b3fe6b7038d1
Author
Howaner <[email protected]>
Date
about 7 years ago
Selected line
143
      $goto_branch = $stmt->fetch(PDO::FETCH_ASSOC)['target_domain'];
Open commit View diff
143 $goto_branch = $stmt->fetch(PDO::FETCH_ASSOC)['target_domain'];
same change 17918b3

Added domain alias handling to quarantine mails and added recipients row to quarantine mail display

Full commit hash
17918b3e214d19fc4cc31da74511b3fe6b7038d1
Author
Howaner <[email protected]>
Date
about 7 years ago
Selected line
144
      if ($goto_branch) {
Open commit View diff
144 if ($goto_branch) {
same change 17918b3

Added domain alias handling to quarantine mails and added recipients row to quarantine mail display

Full commit hash
17918b3e214d19fc4cc31da74511b3fe6b7038d1
Author
Howaner <[email protected]>
Date
about 7 years ago
Selected line
145
        $gotos = $parsed_rcpt['local'] . '@' . $goto_branch;
Open commit View diff
145 $gotos = $parsed_rcpt['local'] . '@' . $goto_branch;
same change 17918b3

Added domain alias handling to quarantine mails and added recipients row to quarantine mail display

Full commit hash
17918b3e214d19fc4cc31da74511b3fe6b7038d1
Author
Howaner <[email protected]>
Date
about 7 years ago
Selected line
146
      }
Open commit View diff
146 }
same change 17918b3

Added domain alias handling to quarantine mails and added recipients row to quarantine mail display

Full commit hash
17918b3e214d19fc4cc31da74511b3fe6b7038d1
Author
Howaner <[email protected]>
Date
about 7 years ago
Selected line
147
    }
Open commit View diff
147 }
andre.peters over 8 years ago 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
148
    $gotos_array = explode(',', $gotos);
Open commit View diff
148 $gotos_array = explode(',', $gotos);
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
149
Open commit View diff
149
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
150
    $loop_c = 0;
Open commit View diff
150 $loop_c = 0;
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
151
Open commit View diff
151
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
152
    while (count($gotos_array) != 0 && $loop_c <= 20) {
Open commit View diff
152 while (count($gotos_array) != 0 && $loop_c <= 20) {
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
153
Open commit View diff
153
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
154
      // Loop through all found gotos
Open commit View diff
154 // Loop through all found gotos
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
155
      foreach ($gotos_array as $index => &$goto) {
Open commit View diff
155 foreach ($gotos_array as $index => &$goto) {
andryyy over 6 years ago ccdb7fc

[Rspamd] Add metadata exporter for unauthed mail

Full commit hash
ccdb7fcd2693bd5f0e3929eec8daccb414403f47
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
156
        error_log("RCPT RESOVLER: http pipe: query " . $goto . " as username from mailbox" . PHP_EOL);
Open commit View diff
156 error_log("RCPT RESOVLER: http pipe: query " . $goto . " as username from mailbox" . PHP_EOL);
andryyy almost 6 years ago 520056a

[Rspamd] Quarantine, Pushover: Respect active = 2 while processing

Full commit hash
520056a489701a11762e2daf1e3712001c5b548e
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
157
        $stmt = $pdo->prepare("SELECT `username` FROM `mailbox` WHERE `username` = :goto AND (`active`= '1' OR `active`= '2');");
Open commit View diff
157 $stmt = $pdo->prepare("SELECT `username` FROM `mailbox` WHERE `username` = :goto AND (`active`= '1' OR `active`= '2');");
andre.peters over 8 years ago 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
158
        $stmt->execute(array(':goto' => $goto));
Open commit View diff
158 $stmt->execute(array(':goto' => $goto));
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
159
        $username = $stmt->fetch(PDO::FETCH_ASSOC)['username'];
Open commit View diff
159 $username = $stmt->fetch(PDO::FETCH_ASSOC)['username'];
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
160
        if (!empty($username)) {
Open commit View diff
160 if (!empty($username)) {
andryyy over 6 years ago ccdb7fc

[Rspamd] Add metadata exporter for unauthed mail

Full commit hash
ccdb7fcd2693bd5f0e3929eec8daccb414403f47
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
161
          error_log("RCPT RESOVLER: http pipe: mailbox found: " . $username . PHP_EOL);
Open commit View diff
161 error_log("RCPT RESOVLER: http pipe: mailbox found: " . $username . PHP_EOL);
andre.peters over 8 years ago 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
162
          // Current goto is a mailbox, save to rcpt_final_mailboxes if not a duplicate
Open commit View diff
162 // Current goto is a mailbox, save to rcpt_final_mailboxes if not a duplicate
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
163
          if (!in_array($username, $rcpt_final_mailboxes)) {
Open commit View diff
163 if (!in_array($username, $rcpt_final_mailboxes)) {
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
164
            $rcpt_final_mailboxes[] = $username;
Open commit View diff
164 $rcpt_final_mailboxes[] = $username;
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
165
          }
Open commit View diff
165 }
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
166
        }
Open commit View diff
166 }
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
167
        else {
Open commit View diff
167 else {
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
168
          $parsed_goto = parse_email($goto);
Open commit View diff
168 $parsed_goto = parse_email($goto);
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
169
          if (!$redis->hGet('DOMAIN_MAP', $parsed_goto['domain'])) {
Open commit View diff
169 if (!$redis->hGet('DOMAIN_MAP', $parsed_goto['domain'])) {
andryyy over 6 years ago ccdb7fc

[Rspamd] Add metadata exporter for unauthed mail

Full commit hash
ccdb7fcd2693bd5f0e3929eec8daccb414403f47
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
170
            error_log("RCPT RESOVLER:" . $goto . " is not a mailcow handled mailbox or alias address" . PHP_EOL);
Open commit View diff
170 error_log("RCPT RESOVLER:" . $goto . " is not a mailcow handled mailbox or alias address" . PHP_EOL);
andre.peters over 8 years ago 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
171
          }
Open commit View diff
171 }
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
172
          else {
Open commit View diff
172 else {
andryyy almost 6 years ago 1e244e9

[Rspamd] Quarantine, Pushover: Respect active = 2 while processing

Full commit hash
1e244e9c0c43a350e4365679cf0e32ef2c65efa8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
173
            $stmt = $pdo->prepare("SELECT `goto` FROM `alias` WHERE `address` = :goto AND `active` = '1'");
Open commit View diff
173 $stmt = $pdo->prepare("SELECT `goto` FROM `alias` WHERE `address` = :goto AND `active` = '1'");
andre.peters over 8 years ago 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
174
            $stmt->execute(array(':goto' => $goto));
Open commit View diff
174 $stmt->execute(array(':goto' => $goto));
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
175
            $goto_branch = $stmt->fetch(PDO::FETCH_ASSOC)['goto'];
Open commit View diff
175 $goto_branch = $stmt->fetch(PDO::FETCH_ASSOC)['goto'];
Howaner about 7 years ago 17918b3

Added domain alias handling to quarantine mails and added recipients row to quarantine mail display

Full commit hash
17918b3e214d19fc4cc31da74511b3fe6b7038d1
Author
Howaner <[email protected]>
Date
about 7 years ago
Selected line
176
            if ($goto_branch) {
Open commit View diff
176 if ($goto_branch) {
andryyy almost 6 years ago 5cd6bed

[Rspamd] Fix typo in alias resolvers

Full commit hash
5cd6bed70155c63de3833eed65b80a6fe02b4e13
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
177
              error_log("RCPT RESOVLER: http pipe: goto address " . $goto . " is an alias branch for " . $goto_branch . PHP_EOL);
Open commit View diff
177 error_log("RCPT RESOVLER: http pipe: goto address " . $goto . " is an alias branch for " . $goto_branch . PHP_EOL);
Howaner about 7 years ago 17918b3

Added domain alias handling to quarantine mails and added recipients row to quarantine mail display

Full commit hash
17918b3e214d19fc4cc31da74511b3fe6b7038d1
Author
Howaner <[email protected]>
Date
about 7 years ago
Selected line
178
              $goto_branch_array = explode(',', $goto_branch);
Open commit View diff
178 $goto_branch_array = explode(',', $goto_branch);
same change 17918b3

Added domain alias handling to quarantine mails and added recipients row to quarantine mail display

Full commit hash
17918b3e214d19fc4cc31da74511b3fe6b7038d1
Author
Howaner <[email protected]>
Date
about 7 years ago
Selected line
179
            } else {
Open commit View diff
179 } else {
Patrik Kernstock 10 months ago d06d23b

Fix several SQL statements

Full commit hash
d06d23bbaf528f5edfb26d32d3d693b8005fc81e
Author
Patrik Kernstock <[email protected]>
Date
10 months ago
Selected line
180
              $stmt = $pdo->prepare("SELECT `target_domain` FROM `alias_domain` WHERE `alias_domain` = :domain AND `active` = '1'");
Open commit View diff
180 $stmt = $pdo->prepare("SELECT `target_domain` FROM `alias_domain` WHERE `alias_domain` = :domain AND `active` = '1'");
Howaner about 7 years ago 17918b3

Added domain alias handling to quarantine mails and added recipients row to quarantine mail display

Full commit hash
17918b3e214d19fc4cc31da74511b3fe6b7038d1
Author
Howaner <[email protected]>
Date
about 7 years ago
Selected line
181
              $stmt->execute(array(':domain' => $parsed_goto['domain']));
Open commit View diff
181 $stmt->execute(array(':domain' => $parsed_goto['domain']));
same change 17918b3

Added domain alias handling to quarantine mails and added recipients row to quarantine mail display

Full commit hash
17918b3e214d19fc4cc31da74511b3fe6b7038d1
Author
Howaner <[email protected]>
Date
about 7 years ago
Selected line
182
              $goto_branch = $stmt->fetch(PDO::FETCH_ASSOC)['target_domain'];
Open commit View diff
182 $goto_branch = $stmt->fetch(PDO::FETCH_ASSOC)['target_domain'];
same change 17918b3

Added domain alias handling to quarantine mails and added recipients row to quarantine mail display

Full commit hash
17918b3e214d19fc4cc31da74511b3fe6b7038d1
Author
Howaner <[email protected]>
Date
about 7 years ago
Selected line
183
              if ($goto_branch) {
Open commit View diff
183 if ($goto_branch) {
andryyy almost 6 years ago 5cd6bed

[Rspamd] Fix typo in alias resolvers

Full commit hash
5cd6bed70155c63de3833eed65b80a6fe02b4e13
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
184
                error_log("RCPT RESOVLER: http pipe: goto domain " . $parsed_goto['domain'] . " is a domain alias branch for " . $goto_branch . PHP_EOL);
Open commit View diff
184 error_log("RCPT RESOVLER: http pipe: goto domain " . $parsed_goto['domain'] . " is a domain alias branch for " . $goto_branch . PHP_EOL);
same change 5cd6bed

[Rspamd] Fix typo in alias resolvers

Full commit hash
5cd6bed70155c63de3833eed65b80a6fe02b4e13
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
185
                $goto_branch_array = array($parsed_goto['local'] . '@' . $goto_branch);
Open commit View diff
185 $goto_branch_array = array($parsed_goto['local'] . '@' . $goto_branch);
Howaner about 7 years ago 17918b3

Added domain alias handling to quarantine mails and added recipients row to quarantine mail display

Full commit hash
17918b3e214d19fc4cc31da74511b3fe6b7038d1
Author
Howaner <[email protected]>
Date
about 7 years ago
Selected line
186
              }
Open commit View diff
186 }
same change 17918b3

Added domain alias handling to quarantine mails and added recipients row to quarantine mail display

Full commit hash
17918b3e214d19fc4cc31da74511b3fe6b7038d1
Author
Howaner <[email protected]>
Date
about 7 years ago
Selected line
187
            }
Open commit View diff
187 }
andre.peters over 8 years ago 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
188
          }
Open commit View diff
188 }
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
189
        }
Open commit View diff
189 }
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
190
        // goto item was processed, unset
Open commit View diff
190 // goto item was processed, unset
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
191
        unset($gotos_array[$index]);
Open commit View diff
191 unset($gotos_array[$index]);
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
192
      }
Open commit View diff
192 }
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
193
Open commit View diff
193
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
194
      // Merge goto branch array derived from previous loop (if any), filter duplicates and unset goto branch array
Open commit View diff
194 // Merge goto branch array derived from previous loop (if any), filter duplicates and unset goto branch array
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
195
      if (!empty($goto_branch_array)) {
Open commit View diff
195 if (!empty($goto_branch_array)) {
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
196
        $gotos_array = array_unique(array_merge($gotos_array, $goto_branch_array));
Open commit View diff
196 $gotos_array = array_unique(array_merge($gotos_array, $goto_branch_array));
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
197
        unset($goto_branch_array);
Open commit View diff
197 unset($goto_branch_array);
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
198
      }
Open commit View diff
198 }
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
199
Open commit View diff
199
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
200
      // Reindex array
Open commit View diff
200 // Reindex array
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
201
      $gotos_array = array_values($gotos_array);
Open commit View diff
201 $gotos_array = array_values($gotos_array);
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
202
Open commit View diff
202
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
203
      // Force exit if loop cannot be solved
Open commit View diff
203 // Force exit if loop cannot be solved
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
204
      // Postfix does not allow for alias loops, so this should never happen.
Open commit View diff
204 // Postfix does not allow for alias loops, so this should never happen.
same change 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
205
      $loop_c++;
Open commit View diff
205 $loop_c++;
andryyy over 6 years ago ccdb7fc

[Rspamd] Add metadata exporter for unauthed mail

Full commit hash
ccdb7fcd2693bd5f0e3929eec8daccb414403f47
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
206
      error_log("RCPT RESOVLER: http pipe: goto array count on loop #". $loop_c . " is " . count($gotos_array) . PHP_EOL);
Open commit View diff
206 error_log("RCPT RESOVLER: http pipe: goto array count on loop #". $loop_c . " is " . count($gotos_array) . PHP_EOL);
andre.peters over 8 years ago 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
207
    }
Open commit View diff
207 }
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
208
  }
Open commit View diff
208 }
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
209
  catch (PDOException $e) {
Open commit View diff
209 catch (PDOException $e) {
andryyy over 6 years ago ccdb7fc

[Rspamd] Add metadata exporter for unauthed mail

Full commit hash
ccdb7fcd2693bd5f0e3929eec8daccb414403f47
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
210
    error_log("RCPT RESOVLER: " . $e->getMessage() . PHP_EOL);
Open commit View diff
210 error_log("RCPT RESOVLER: " . $e->getMessage() . PHP_EOL);
andre.peters over 8 years ago 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
211
    http_response_code(502);
Open commit View diff
211 http_response_code(502);
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
212
    exit;
Open commit View diff
212 exit;
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
213
  }
Open commit View diff
213 }
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
214
}
Open commit View diff
214 }
andre.peters over 8 years ago 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
215
Open commit View diff
215
andryyy over 6 years ago cb599db

[Rspamd] Fix quarantine and pushover notifications

Full commit hash
cb599db61e911a78cc9ead1c0f041140bd754c29
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
216
foreach ($rcpt_final_mailboxes as $rcpt_final) {
Open commit View diff
216 foreach ($rcpt_final_mailboxes as $rcpt_final) {
same change cb599db

[Rspamd] Fix quarantine and pushover notifications

Full commit hash
cb599db61e911a78cc9ead1c0f041140bd754c29
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
217
  error_log("QUARANTINE: quarantine pipe: processing quarantine message for rcpt " . $rcpt_final . PHP_EOL);
Open commit View diff
217 error_log("QUARANTINE: quarantine pipe: processing quarantine message for rcpt " . $rcpt_final . PHP_EOL);
andre.peters over 8 years ago 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
218
  try {
Open commit View diff
218 try {
andryyy over 5 years ago 6d46ee7

[Rspamd] Log mail that was put into junk folder and keep a copy in quarantine

Full commit hash
6d46ee795b3ef6e772ba754b263a8be37a12fe65
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
219
    $stmt = $pdo->prepare("INSERT INTO `quarantine` (`qid`, `subject`, `score`, `sender`, `rcpt`, `symbols`, `user`, `ip`, `msg`, `action`, `fuzzy_hashes`)
Open commit View diff
219 $stmt = $pdo->prepare("INSERT INTO `quarantine` (`qid`, `subject`, `score`, `sender`, `rcpt`, `symbols`, `user`, `ip`, `msg`, `action`, `fuzzy_hashes`)
same change 6d46ee7

[Rspamd] Log mail that was put into junk folder and keep a copy in quarantine

Full commit hash
6d46ee795b3ef6e772ba754b263a8be37a12fe65
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
220
      VALUES (:qid, :subject, :score, :sender, :rcpt, :symbols, :user, :ip, :msg, :action, :fuzzy_hashes)");
Open commit View diff
220 VALUES (:qid, :subject, :score, :sender, :rcpt, :symbols, :user, :ip, :msg, :action, :fuzzy_hashes)");
andre.peters over 8 years ago 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
221
    $stmt->execute(array(
Open commit View diff
221 $stmt->execute(array(
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
222
      ':qid' => $qid,
Open commit View diff
222 ':qid' => $qid,
André Peters over 7 years ago f3dfe34

[Dovecot] Allow setting ACL_ANYONE in mailcow.conf

Full commit hash
f3dfe346bf2aed1d54c82ce1efb2697c99c36053
Author
André Peters <[email protected]>
Date
over 7 years ago
Selected line
223
      ':subject' => $subject,
Open commit View diff
223 ':subject' => $subject,
andre.peters over 8 years ago 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
224
      ':score' => $score,
Open commit View diff
224 ':score' => $score,
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
225
      ':sender' => $sender,
Open commit View diff
225 ':sender' => $sender,
andryyy over 6 years ago cb599db

[Rspamd] Fix quarantine and pushover notifications

Full commit hash
cb599db61e911a78cc9ead1c0f041140bd754c29
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
226
      ':rcpt' => $rcpt_final,
Open commit View diff
226 ':rcpt' => $rcpt_final,
andre.peters over 8 years ago 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
227
      ':symbols' => $symbols,
Open commit View diff
227 ':symbols' => $symbols,
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
228
      ':user' => $user,
Open commit View diff
228 ':user' => $user,
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
229
      ':ip' => $ip,
Open commit View diff
229 ':ip' => $ip,
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
230
      ':msg' => $raw_data,
Open commit View diff
230 ':msg' => $raw_data,
andryyy over 5 years ago 0165c9d

[Web] Show fuzzy hash of rejected mail, if any

Full commit hash
0165c9d26b71b696a848ca1145e105b6a66b55c0
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
231
      ':action' => $action,
Open commit View diff
231 ':action' => $action,
andryyy over 5 years ago 6d46ee7

[Rspamd] Log mail that was put into junk folder and keep a copy in quarantine

Full commit hash
6d46ee795b3ef6e772ba754b263a8be37a12fe65
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
232
      ':fuzzy_hashes' => $fuzzy
Open commit View diff
232 ':fuzzy_hashes' => $fuzzy
andre.peters over 8 years ago 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
233
    ));
Open commit View diff
233 ));
Christoph Lechleitner 12 months ago 2b2da16

[DB][Web] optimize qhandler by keeping SHA2 in new column qhash (#6556)

Full commit hash
2b2da1679e7f05a61c268db208c5e1fbacb70a78
Author
Christoph Lechleitner <[email protected]>
Date
12 months ago
Selected line
234
    $lastId = $pdo->lastInsertId();
Open commit View diff
234 $lastId = $pdo->lastInsertId();
same change 2b2da16

[DB][Web] optimize qhandler by keeping SHA2 in new column qhash (#6556)

Full commit hash
2b2da1679e7f05a61c268db208c5e1fbacb70a78
Author
Christoph Lechleitner <[email protected]>
Date
12 months ago
Selected line
235
    $stmt_update = $pdo->prepare("UPDATE `quarantine` SET `qhash` = SHA2(CONCAT(`id`, `qid`), 256) WHERE `id` = :id");
Open commit View diff
235 $stmt_update = $pdo->prepare("UPDATE `quarantine` SET `qhash` = SHA2(CONCAT(`id`, `qid`), 256) WHERE `id` = :id");
same change 2b2da16

[DB][Web] optimize qhandler by keeping SHA2 in new column qhash (#6556)

Full commit hash
2b2da1679e7f05a61c268db208c5e1fbacb70a78
Author
Christoph Lechleitner <[email protected]>
Date
12 months ago
Selected line
236
    $stmt_update->execute(array(':id' => $lastId));
Open commit View diff
236 $stmt_update->execute(array(':id' => $lastId));
André Peters over 8 years ago a500364

[Web] Mind was set to french, reverting to english

Full commit hash
a50036477eee7d80d58c3147c5b1dfbe013f4380
Author
André Peters <[email protected]>
Date
over 8 years ago
Selected line
237
    $stmt = $pdo->prepare('DELETE FROM `quarantine` WHERE `rcpt` = :rcpt AND `id` NOT IN (
Open commit View diff
237 $stmt = $pdo->prepare('DELETE FROM `quarantine` WHERE `rcpt` = :rcpt AND `id` NOT IN (
andre.peters over 8 years ago 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
238
      SELECT `id`
Open commit View diff
238 SELECT `id`
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
239
      FROM (
Open commit View diff
239 FROM (
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
240
        SELECT `id`
Open commit View diff
240 SELECT `id`
André Peters over 8 years ago a500364

[Web] Mind was set to french, reverting to english

Full commit hash
a50036477eee7d80d58c3147c5b1dfbe013f4380
Author
André Peters <[email protected]>
Date
over 8 years ago
Selected line
241
        FROM `quarantine`
Open commit View diff
241 FROM `quarantine`
andre.peters over 8 years ago 003e6ef

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
003e6ef5cda773cccbb8febdec8e2ad915e514d1
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
242
        WHERE `rcpt` = :rcpt2
Open commit View diff
242 WHERE `rcpt` = :rcpt2
andre.peters over 8 years ago 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
243
        ORDER BY id DESC
Open commit View diff
243 ORDER BY id DESC
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
244
        LIMIT :retention_size
Open commit View diff
244 LIMIT :retention_size
FreddleSpl0it over 1 year ago 89fb132

Enable password protection for Redis

Full commit hash
89fb1322c6f486a9883e6435a73537b13fbf3582
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
245
      ) x
Open commit View diff
245 ) x
andre.peters over 8 years ago 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
246
    );');
Open commit View diff
246 );');
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
247
    $stmt->execute(array(
Open commit View diff
247 $stmt->execute(array(
andryyy over 6 years ago cb599db

[Rspamd] Fix quarantine and pushover notifications

Full commit hash
cb599db61e911a78cc9ead1c0f041140bd754c29
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
248
      ':rcpt' => $rcpt_final,
Open commit View diff
248 ':rcpt' => $rcpt_final,
same change cb599db

[Rspamd] Fix quarantine and pushover notifications

Full commit hash
cb599db61e911a78cc9ead1c0f041140bd754c29
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
249
      ':rcpt2' => $rcpt_final,
Open commit View diff
249 ':rcpt2' => $rcpt_final,
andre.peters over 8 years ago 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
250
      ':retention_size' => $retention_size
Open commit View diff
250 ':retention_size' => $retention_size
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
251
    ));
Open commit View diff
251 ));
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
252
  }
Open commit View diff
252 }
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
253
  catch (PDOException $e) {
Open commit View diff
253 catch (PDOException $e) {
andryyy over 6 years ago ccdb7fc

[Rspamd] Add metadata exporter for unauthed mail

Full commit hash
ccdb7fcd2693bd5f0e3929eec8daccb414403f47
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
254
    error_log("QUARANTINE: " . $e->getMessage() . PHP_EOL);
Open commit View diff
254 error_log("QUARANTINE: " . $e->getMessage() . PHP_EOL);
andre.peters over 8 years ago 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
255
    http_response_code(503);
Open commit View diff
255 http_response_code(503);
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
256
    exit;
Open commit View diff
256 exit;
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
257
  }
Open commit View diff
257 }
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
258
}
Open commit View diff
258 }
same change 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
259
Open commit View diff
259