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

helper-scripts/update_postscreen_whitelist.sh

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

update_postscreen_whitelist.sh on main
Author Date Commit Line Code
friedPotat0 almost 7 years ago 6d41561

add postscreen whitelist update script

Full commit hash
6d41561faa8ab7215d89fee46a6356df76c8b8f7
Author
friedPotat0 <[email protected]>
Date
almost 7 years ago
Selected line
1
#!/usr/bin/env bash
Open commit View diff
1 #!/usr/bin/env bash
same change 6d41561

add postscreen whitelist update script

Full commit hash
6d41561faa8ab7215d89fee46a6356df76c8b8f7
Author
friedPotat0 <[email protected]>
Date
almost 7 years ago
Selected line
2
Open commit View diff
2
same change 6d41561

add postscreen whitelist update script

Full commit hash
6d41561faa8ab7215d89fee46a6356df76c8b8f7
Author
friedPotat0 <[email protected]>
Date
almost 7 years ago
Selected line
3
SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )"
Open commit View diff
3 SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )"
same change 6d41561

add postscreen whitelist update script

Full commit hash
6d41561faa8ab7215d89fee46a6356df76c8b8f7
Author
friedPotat0 <[email protected]>
Date
almost 7 years ago
Selected line
4
WORKING_DIR=${SCRIPT_DIR}/postwhite_tmp
Open commit View diff
4 WORKING_DIR=${SCRIPT_DIR}/postwhite_tmp
same change 6d41561

add postscreen whitelist update script

Full commit hash
6d41561faa8ab7215d89fee46a6356df76c8b8f7
Author
friedPotat0 <[email protected]>
Date
almost 7 years ago
Selected line
5
SPFTOOLS_DIR=${WORKING_DIR}/spf-tools
Open commit View diff
5 SPFTOOLS_DIR=${WORKING_DIR}/spf-tools
same change 6d41561

add postscreen whitelist update script

Full commit hash
6d41561faa8ab7215d89fee46a6356df76c8b8f7
Author
friedPotat0 <[email protected]>
Date
almost 7 years ago
Selected line
6
POSTWHITE_DIR=${WORKING_DIR}/postwhite
Open commit View diff
6 POSTWHITE_DIR=${WORKING_DIR}/postwhite
same change 6d41561

add postscreen whitelist update script

Full commit hash
6d41561faa8ab7215d89fee46a6356df76c8b8f7
Author
friedPotat0 <[email protected]>
Date
almost 7 years ago
Selected line
7
POSTWHITE_CONF=${POSTWHITE_DIR}/postwhite.conf
Open commit View diff
7 POSTWHITE_CONF=${POSTWHITE_DIR}/postwhite.conf
same change 6d41561

add postscreen whitelist update script

Full commit hash
6d41561faa8ab7215d89fee46a6356df76c8b8f7
Author
friedPotat0 <[email protected]>
Date
almost 7 years ago
Selected line
8
Open commit View diff
8
DerLinkman 11 months ago 6c5d82c

expanded postscreen whitelist with modern freemailers + included checks.mailcow.email

Full commit hash
6c5d82c4df2cf24be38608e45b4e1e6bed6e61b2
Author
DerLinkman <[email protected]>
Date
11 months ago
Selected line
9
CUSTOM_HOSTS='"web.de gmx.net mail.de freenet.de arcor.de unity-mail.de protonmail.ch ionos.com strato.com t-online.de"'
Open commit View diff
9 CUSTOM_HOSTS='"web.de gmx.net mail.de freenet.de arcor.de unity-mail.de protonmail.ch ionos.com strato.com t-online.de"'
friedPotat0 almost 7 years ago 6d41561

add postscreen whitelist update script

Full commit hash
6d41561faa8ab7215d89fee46a6356df76c8b8f7
Author
friedPotat0 <[email protected]>
Date
almost 7 years ago
Selected line
10
STATIC_HOSTS=(
Open commit View diff
10 STATIC_HOSTS=(
DerLinkman 11 months ago 6c5d82c

expanded postscreen whitelist with modern freemailers + included checks.mailcow.email

Full commit hash
6c5d82c4df2cf24be38608e45b4e1e6bed6e61b2
Author
DerLinkman <[email protected]>
Date
11 months ago
Selected line
11
    "49.12.4.251 permit # checks.mailcow.email"
Open commit View diff
11 "49.12.4.251 permit # checks.mailcow.email"
same change 6c5d82c

expanded postscreen whitelist with modern freemailers + included checks.mailcow.email

Full commit hash
6c5d82c4df2cf24be38608e45b4e1e6bed6e61b2
Author
DerLinkman <[email protected]>
Date
11 months ago
Selected line
12
    "2a01:4f8:c17:7906::10 permit # checks.mailcow.email"
Open commit View diff
12 "2a01:4f8:c17:7906::10 permit # checks.mailcow.email"
friedPotat0 almost 7 years ago 6d41561

add postscreen whitelist update script

Full commit hash
6d41561faa8ab7215d89fee46a6356df76c8b8f7
Author
friedPotat0 <[email protected]>
Date
almost 7 years ago
Selected line
13
)
Open commit View diff
13 )
same change 6d41561

add postscreen whitelist update script

Full commit hash
6d41561faa8ab7215d89fee46a6356df76c8b8f7
Author
friedPotat0 <[email protected]>
Date
almost 7 years ago
Selected line
14
Open commit View diff
14
same change 6d41561

add postscreen whitelist update script

Full commit hash
6d41561faa8ab7215d89fee46a6356df76c8b8f7
Author
friedPotat0 <[email protected]>
Date
almost 7 years ago
Selected line
15
mkdir ${SCRIPT_DIR}/postwhite_tmp
Open commit View diff
15 mkdir ${SCRIPT_DIR}/postwhite_tmp
same change 6d41561

add postscreen whitelist update script

Full commit hash
6d41561faa8ab7215d89fee46a6356df76c8b8f7
Author
friedPotat0 <[email protected]>
Date
almost 7 years ago
Selected line
16
git clone https://github.com/spf-tools/spf-tools.git ${SPFTOOLS_DIR}
Open commit View diff
16 git clone https://github.com/spf-tools/spf-tools.git ${SPFTOOLS_DIR}
same change 6d41561

add postscreen whitelist update script

Full commit hash
6d41561faa8ab7215d89fee46a6356df76c8b8f7
Author
friedPotat0 <[email protected]>
Date
almost 7 years ago
Selected line
17
git clone https://github.com/stevejenkins/postwhite.git ${POSTWHITE_DIR}
Open commit View diff
17 git clone https://github.com/stevejenkins/postwhite.git ${POSTWHITE_DIR}
same change 6d41561

add postscreen whitelist update script

Full commit hash
6d41561faa8ab7215d89fee46a6356df76c8b8f7
Author
friedPotat0 <[email protected]>
Date
almost 7 years ago
Selected line
18
Open commit View diff
18
same change 6d41561

add postscreen whitelist update script

Full commit hash
6d41561faa8ab7215d89fee46a6356df76c8b8f7
Author
friedPotat0 <[email protected]>
Date
almost 7 years ago
Selected line
19
function set_config() {
Open commit View diff
19 function set_config() {
same change 6d41561

add postscreen whitelist update script

Full commit hash
6d41561faa8ab7215d89fee46a6356df76c8b8f7
Author
friedPotat0 <[email protected]>
Date
almost 7 years ago
Selected line
20
    sudo sed -i "s@^\($1\s*=\s*\).*\$@\1$2@" ${POSTWHITE_CONF}
Open commit View diff
20 sudo sed -i "s@^\($1\s*=\s*\).*\$@\1$2@" ${POSTWHITE_CONF}
same change 6d41561

add postscreen whitelist update script

Full commit hash
6d41561faa8ab7215d89fee46a6356df76c8b8f7
Author
friedPotat0 <[email protected]>
Date
almost 7 years ago
Selected line
21
}
Open commit View diff
21 }
same change 6d41561

add postscreen whitelist update script

Full commit hash
6d41561faa8ab7215d89fee46a6356df76c8b8f7
Author
friedPotat0 <[email protected]>
Date
almost 7 years ago
Selected line
22
Open commit View diff
22
Peter about 3 years ago e5f03e8

Update update_postscreen_whitelist.sh

Full commit hash
e5f03e85260acc16e35a00f43d65990524b57db3
Author
Peter <[email protected]>
Date
about 3 years ago
Selected line
23
set_config custom_hosts "${CUSTOM_HOSTS}"
Open commit View diff
23 set_config custom_hosts "${CUSTOM_HOSTS}"
friedPotat0 almost 7 years ago 6d41561

add postscreen whitelist update script

Full commit hash
6d41561faa8ab7215d89fee46a6356df76c8b8f7
Author
friedPotat0 <[email protected]>
Date
almost 7 years ago
Selected line
24
set_config reload_postfix no
Open commit View diff
24 set_config reload_postfix no
same change 6d41561

add postscreen whitelist update script

Full commit hash
6d41561faa8ab7215d89fee46a6356df76c8b8f7
Author
friedPotat0 <[email protected]>
Date
almost 7 years ago
Selected line
25
set_config postfixpath /.
Open commit View diff
25 set_config postfixpath /.
same change 6d41561

add postscreen whitelist update script

Full commit hash
6d41561faa8ab7215d89fee46a6356df76c8b8f7
Author
friedPotat0 <[email protected]>
Date
almost 7 years ago
Selected line
26
set_config spftoolspath ${WORKING_DIR}/spf-tools
Open commit View diff
26 set_config spftoolspath ${WORKING_DIR}/spf-tools
same change 6d41561

add postscreen whitelist update script

Full commit hash
6d41561faa8ab7215d89fee46a6356df76c8b8f7
Author
friedPotat0 <[email protected]>
Date
almost 7 years ago
Selected line
27
set_config whitelist .${SCRIPT_DIR}/../data/conf/postfix/postscreen_access.cidr
Open commit View diff
27 set_config whitelist .${SCRIPT_DIR}/../data/conf/postfix/postscreen_access.cidr
same change 6d41561

add postscreen whitelist update script

Full commit hash
6d41561faa8ab7215d89fee46a6356df76c8b8f7
Author
friedPotat0 <[email protected]>
Date
almost 7 years ago
Selected line
28
set_config yahoo_static_hosts ${POSTWHITE_DIR}/yahoo_static_hosts.txt
Open commit View diff
28 set_config yahoo_static_hosts ${POSTWHITE_DIR}/yahoo_static_hosts.txt
same change 6d41561

add postscreen whitelist update script

Full commit hash
6d41561faa8ab7215d89fee46a6356df76c8b8f7
Author
friedPotat0 <[email protected]>
Date
almost 7 years ago
Selected line
29
Open commit View diff
29
Peter about 3 years ago e5f03e8

Update update_postscreen_whitelist.sh

Full commit hash
e5f03e85260acc16e35a00f43d65990524b57db3
Author
Peter <[email protected]>
Date
about 3 years ago
Selected line
30
#Fix URL for Yahoo!: https://github.com/stevejenkins/postwhite/issues/59
Open commit View diff
30 #Fix URL for Yahoo!: https://github.com/stevejenkins/postwhite/issues/59
same change e5f03e8

Update update_postscreen_whitelist.sh

Full commit hash
e5f03e85260acc16e35a00f43d65990524b57db3
Author
Peter <[email protected]>
Date
about 3 years ago
Selected line
31
sudo sed -i \
Open commit View diff
31 sudo sed -i \
same change e5f03e8

Update update_postscreen_whitelist.sh

Full commit hash
e5f03e85260acc16e35a00f43d65990524b57db3
Author
Peter <[email protected]>
Date
about 3 years ago
Selected line
32
      -e 's#yahoo_url="https://help.yahoo.com/kb/SLN23997.html"#yahoo_url="https://senders.yahooinc.com/outbound-mail-servers/"#' \
Open commit View diff
32 -e 's#yahoo_url="https://help.yahoo.com/kb/SLN23997.html"#yahoo_url="https://senders.yahooinc.com/outbound-mail-servers/"#' \
same change e5f03e8

Update update_postscreen_whitelist.sh

Full commit hash
e5f03e85260acc16e35a00f43d65990524b57db3
Author
Peter <[email protected]>
Date
about 3 years ago
Selected line
33
      -e 's#echo "ipv6:$line";#echo "ipv6:$line" | grep -v "ipv6:::";#' \
Open commit View diff
33 -e 's#echo "ipv6:$line";#echo "ipv6:$line" | grep -v "ipv6:::";#' \
same change e5f03e8

Update update_postscreen_whitelist.sh

Full commit hash
e5f03e85260acc16e35a00f43d65990524b57db3
Author
Peter <[email protected]>
Date
about 3 years ago
Selected line
34
      -e 's#`command -v wget`#`command -v skip-wget`#' \
Open commit View diff
34 -e 's#`command -v wget`#`command -v skip-wget`#' \
same change e5f03e8

Update update_postscreen_whitelist.sh

Full commit hash
e5f03e85260acc16e35a00f43d65990524b57db3
Author
Peter <[email protected]>
Date
about 3 years ago
Selected line
35
      ${POSTWHITE_DIR}/scrape_yahoo
Open commit View diff
35 ${POSTWHITE_DIR}/scrape_yahoo
same change e5f03e8

Update update_postscreen_whitelist.sh

Full commit hash
e5f03e85260acc16e35a00f43d65990524b57db3
Author
Peter <[email protected]>
Date
about 3 years ago
Selected line
36
Open commit View diff
36
friedPotat0 almost 7 years ago 6d41561

add postscreen whitelist update script

Full commit hash
6d41561faa8ab7215d89fee46a6356df76c8b8f7
Author
friedPotat0 <[email protected]>
Date
almost 7 years ago
Selected line
37
cd ${POSTWHITE_DIR}
Open commit View diff
37 cd ${POSTWHITE_DIR}
same change 6d41561

add postscreen whitelist update script

Full commit hash
6d41561faa8ab7215d89fee46a6356df76c8b8f7
Author
friedPotat0 <[email protected]>
Date
almost 7 years ago
Selected line
38
./postwhite ${POSTWHITE_CONF}
Open commit View diff
38 ./postwhite ${POSTWHITE_CONF}
same change 6d41561

add postscreen whitelist update script

Full commit hash
6d41561faa8ab7215d89fee46a6356df76c8b8f7
Author
friedPotat0 <[email protected]>
Date
almost 7 years ago
Selected line
39
Open commit View diff
39
same change 6d41561

add postscreen whitelist update script

Full commit hash
6d41561faa8ab7215d89fee46a6356df76c8b8f7
Author
friedPotat0 <[email protected]>
Date
almost 7 years ago
Selected line
40
( IFS=$'\n'; echo "${STATIC_HOSTS[*]}" >> "${SCRIPT_DIR}/../data/conf/postfix/postscreen_access.cidr")
Open commit View diff
40 ( IFS=$'\n'; echo "${STATIC_HOSTS[*]}" >> "${SCRIPT_DIR}/../data/conf/postfix/postscreen_access.cidr")
same change 6d41561

add postscreen whitelist update script

Full commit hash
6d41561faa8ab7215d89fee46a6356df76c8b8f7
Author
friedPotat0 <[email protected]>
Date
almost 7 years ago
Selected line
41
Open commit View diff
41
Peter about 3 years ago e5f03e8

Update update_postscreen_whitelist.sh

Full commit hash
e5f03e85260acc16e35a00f43d65990524b57db3
Author
Peter <[email protected]>
Date
about 3 years ago
Selected line
42
rm -r ${WORKING_DIR}
Open commit View diff
42 rm -r ${WORKING_DIR}