Compare commits
3 Commits
bbfbbbc2a8
...
main
Author | SHA1 | Date | |
---|---|---|---|
cef2114520 | |||
4f2e601edf | |||
cef6edc9c1
|
@ -37,12 +37,12 @@ systemctl daemon-reload && systemctl restart tor@default.service
|
|||||||
|
|
||||||
Replace the default .onion domain with your domain:
|
Replace the default .onion domain with your domain:
|
||||||
```
|
```
|
||||||
sed -i "s/danielas3rtn54uwmofdo3x2bsdifr47huasnmbgqzfrec5ubupvtpid.onion/`cat /var/lib/tor/hidden_service/hostname`/g" /etc/prosody/prosody.cfg.lua /etc/nginx/sites-enabled/mail /var/www/mail/common_config.php /etc/postfix/main.cf /var/www/mail/cron.php
|
sed -i "s/danielas3rtn54uwmofdo3x2bsdifr47huasnmbgqzfrec5ubupvtpid.onion/`cat /var/lib/tor/hidden_service/hostname`/g" /etc/prosody/prosody.cfg.lua /etc/nginx/sites-enabled/mail /var/www/mail/common_config.php /etc/postfix/main.cf
|
||||||
```
|
```
|
||||||
|
|
||||||
Replace the default clearnet domain with your domain:
|
Replace the default clearnet domain with your domain:
|
||||||
```
|
```
|
||||||
sed -i "s/danwin1210.de/YOUR_DOMAIN/g" /etc/prosody/prosody.cfg.lua /etc/postfix/main.cf /etc/dovecot/dovecot.conf /etc/nginx/sites-enabled/* /var/www/mail/common_config.php /var/www/mail/www/squirrelmail/config/config.php /var/www/mail/cron.php
|
sed -i "s/danwin1210.de/YOUR_DOMAIN/g" /etc/prosody/prosody.cfg.lua /etc/postfix/main.cf /etc/dovecot/dovecot.conf /etc/nginx/sites-enabled/* /var/www/mail/common_config.php /var/www/mail/www/squirrelmail/config/config.php
|
||||||
```
|
```
|
||||||
|
|
||||||
Create a mysql users and databases:
|
Create a mysql users and databases:
|
||||||
|
4
cron.php
4
cron.php
@ -37,8 +37,8 @@ while ( $tmp = $stmt->fetch( PDO::FETCH_ASSOC ) ) {
|
|||||||
exec( 'rm -r ' . escapeshellarg( $snapmail_files ) );
|
exec( 'rm -r ' . escapeshellarg( $snapmail_files ) );
|
||||||
}
|
}
|
||||||
$files = glob( '/var/local/squirrelmail/data/' . $local_basename . '@' . $domain_basename . '.{pref,abook,sig}', GLOB_BRACE );
|
$files = glob( '/var/local/squirrelmail/data/' . $local_basename . '@' . $domain_basename . '.{pref,abook,sig}', GLOB_BRACE );
|
||||||
if ( $tmp[ 'domain' ] === 'danwin1210.de' ) {
|
if ( $tmp[ 'domain' ] === CLEARNET_SERVER ) {
|
||||||
$files = array_merge( $files, glob( '/var/local/squirrelmail/data/' . $local_basename . '{@danielas3rtn54uwmofdo3x2bsdifr47huasnmbgqzfrec5ubupvtpid.onion,}.{pref,abook,sig}', GLOB_BRACE ) );
|
$files = array_merge( $files, glob( '/var/local/squirrelmail/data/' . $local_basename . '{@'.ONION_SERVER.',}.{pref,abook,sig}', GLOB_BRACE ) );
|
||||||
$delete_prosody->execute( [ $tmp[ 'local_part' ], $tmp[ 'domain' ] ] );
|
$delete_prosody->execute( [ $tmp[ 'local_part' ], $tmp[ 'domain' ] ] );
|
||||||
$delete_prosody_archive->execute( [ $tmp[ 'local_part' ], $tmp[ 'domain' ] ] );
|
$delete_prosody_archive->execute( [ $tmp[ 'local_part' ], $tmp[ 'domain' ] ] );
|
||||||
}
|
}
|
||||||
|
@ -238,7 +238,7 @@ aliases = {
|
|||||||
["danielas3rtn54uwmofdo3x2bsdifr47huasnmbgqzfrec5ubupvtpid.onion"] = "danwin1210.de";
|
["danielas3rtn54uwmofdo3x2bsdifr47huasnmbgqzfrec5ubupvtpid.onion"] = "danwin1210.de";
|
||||||
}
|
}
|
||||||
alias_response = "User $alias can be contacted at $target";
|
alias_response = "User $alias can be contacted at $target";
|
||||||
defautl_storage = "sql"
|
default_storage = "sql"
|
||||||
interfaces = { "0.0.0.0", "::" } -- Listen address
|
interfaces = { "0.0.0.0", "::" } -- Listen address
|
||||||
contact_info = {
|
contact_info = {
|
||||||
abuse = { "https://danwin1210.de/contact.php", "mailto:daniel@danwin1210.de" };
|
abuse = { "https://danwin1210.de/contact.php", "mailto:daniel@danwin1210.de" };
|
||||||
|
Reference in New Issue
Block a user