Nospam install
Aus HS Syswiki
(Unterschied zwischen Versionen)
Tch (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „Category:ServerAdmin requirements: :- additional ip adress, it's also possible to use an ip from a customer with ssl cert. :- set the dns on tux1 (nospam.…“) |
Tch (Diskussion | Beiträge) |
||
Zeile 7: | Zeile 7: | ||
from bkp001 | from bkp001 | ||
− | < | + | <syntaxhighlight lang="bash" style="font-size:9pt;"> |
ssh tuxXX "mkdir ~/sysadmin/nospam" | ssh tuxXX "mkdir ~/sysadmin/nospam" | ||
cd ~/tch/nospam/clean | cd ~/tch/nospam/clean | ||
scp * tuxXX:~/sysadmin/nospam | scp * tuxXX:~/sysadmin/nospam | ||
− | </ | + | </syntaxhighlight> |
on target server stop sendmail | on target server stop sendmail | ||
− | < | + | <syntaxhighlight lang="bash" style="font-size:9pt;"> |
/etc/init.d/sendmail stop | /etc/init.d/sendmail stop | ||
killall -9 sendmail | killall -9 sendmail | ||
ps faux | grep sendmail | ps faux | grep sendmail | ||
− | </ | + | </syntaxhighlight> |
run the bash script with the following arguments. | run the bash script with the following arguments. | ||
Zeile 26: | Zeile 26: | ||
:argument 3: hostname of the nospam installation (nospam.login-X.hoststar.ch) | :argument 3: hostname of the nospam installation (nospam.login-X.hoststar.ch) | ||
− | < | + | <syntaxhighlight lang="bash" style="font-size:9pt;"> |
cd ~/sysadmin/nospam | cd ~/sysadmin/nospam | ||
bash hsinstallnospam 85.10.201.5 85.10.220.46 nospam.login-116.hoststar.ch | bash hsinstallnospam 85.10.201.5 85.10.220.46 nospam.login-116.hoststar.ch | ||
− | </ | + | </syntaxhighlight> |
start sendmail and check if it is working | start sendmail and check if it is working | ||
− | < | + | <syntaxhighlight lang="bash" style="font-size:9pt;"> |
/etc/init.d/sendmail start | /etc/init.d/sendmail start | ||
− | </ | + | </syntaxhighlight> |
telnet on port 25 | telnet on port 25 |
Version vom 21. August 2015, 17:02 Uhr
requirements:
- - additional ip adress, it's also possible to use an ip from a customer with ssl cert.
- - set the dns on tux1 (nospam.login-XX.hoststar.ch)
from bkp001
ssh tuxXX "mkdir ~/sysadmin/nospam" cd ~/tch/nospam/clean scp * tuxXX:~/sysadmin/nospam
on target server stop sendmail
/etc/init.d/sendmail stop killall -9 sendmail ps faux | grep sendmail
run the bash script with the following arguments.
- argument 1: ip of the host server
- argument 2: ip for the nospam installation
- argument 3: hostname of the nospam installation (nospam.login-X.hoststar.ch)
cd ~/sysadmin/nospam bash hsinstallnospam 85.10.201.5 85.10.220.46 nospam.login-116.hoststar.ch
start sendmail and check if it is working
/etc/init.d/sendmail start
telnet on port 25