Nospam install

Aus HS Syswiki
(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
(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.…“)
 
 
(5 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt)
Zeile 7: Zeile 7:
 
from bkp001
 
from bkp001
  
<pre>
+
<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
</pre>
+
</syntaxhighlight>
  
 
on target server stop sendmail
 
on target server stop sendmail
<pre>
+
<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
</pre>
+
</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)
  
<pre>
+
<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
</pre>
+
</syntaxhighlight>
 +
 
 +
Check if the file /etc/mail/sendmail.cf has listening on port 465 for server and localhost IP
  
 
start sendmail and check if it is working
 
start sendmail and check if it is working
<pre>
+
<syntaxhighlight lang="bash" style="font-size:9pt;">
 
/etc/init.d/sendmail start
 
/etc/init.d/sendmail start
</pre>
+
</syntaxhighlight>
  
 
telnet on port 25
 
telnet on port 25
 +
 +
Following command must show listenings on server-, localhost- and nospam IP
 +
<syntaxhighlight lang="bash" style="font-size:9pt;">
 +
netstat -neptula | grep LIST | egrep "465|587|25"
 +
</syntaxhighlight>
 +
 +
Add the new IP to the SNDS list of hotmail:
 +
 +
https://postmaster.live.com/snds/addnetwork.aspx

Aktuelle Version vom 16. Oktober 2015, 13:37 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

Check if the file /etc/mail/sendmail.cf has listening on port 465 for server and localhost IP

start sendmail and check if it is working

/etc/init.d/sendmail start

telnet on port 25

Following command must show listenings on server-, localhost- and nospam IP

netstat -neptula | grep LIST | egrep "465|587|25"

Add the new IP to the SNDS list of hotmail:

https://postmaster.live.com/snds/addnetwork.aspx

Meine Werkzeuge
Namensräume

Varianten
Aktionen
Navigation
Werkzeuge