baumi's blog

baumi's personal blog … Linux, OS X, Windows, Random things, …

Improving SPAM Rating (adding SPF records)

https://help.ubuntu.com/community/Postfix/SPF and http://www.conhost.net/faq_artikel-18.htm http://www.labnol.org/internet/authenticate-google-apps-email-with-spf/13877/ Example syntax for the SPF record: b-nm.at v=spf1 include:_spf.google.com ip4:78.46.156.164 ip6:2a01:4f8:190:6423::2 ~all Hinweis -all vs. ~all: https://support.google.com/a/answer/178723?hl=en Tool for checking the SFP entries / syntax: http://kitterman.com/spf/validate.html Google check tool: https://toolbox.googleapps.com/apps/checkmx/

How to reset HGST Hitachi SMART values S.M.A.R.T. Spin_Retry_Count degraded mdadm raid array problem raid5 raid6 raid1 raid01 raid10 smartctl ultrastar deskstar a7k2000 a7k3000 a7k1000

Problem: your raid array has degraded, one or multiple disks are failing S.M.A.R.T. tests, because of Spin_retry_count. Actually all the data is OK, just the spin_retry_count keeps happening. The drives are perfecly fine, but the S.M.A.R.T. value makes the drive almost useless because bios and/or mdadm won’t accept it anymore for your raid array. This […]

InterSSL RapidSSL unter nginx einrichten

in nginx/conf/gitlab-http.conf listen *:443 ssl; server_name git.b-nm.at; ssl_certificate /var/opt/gitlab/nginx/ssl/git.b-nm.at.crt.ca.pem; ssl_certificate_key /var/opt/gitlab/nginx/ssl/git.b-nm.at.key; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers HIGH:!aNULL:!MD5; wobei git.b-nm.at.crt.ca.pem eine zuammenkopierte datei ist aus: a) dem git.b-nm.at.crt (wie von InterSSL geliefert) b) dem https://www.interssl.at/ca_interssl_rapidssl_osx.pem

IMAP mit self-signed SSL Zertifikat per PHP abrufen

< ? php /* connect to IMAP */ $hostname = '{my.b-nm.at:993/imap/novalidate-cert/ssl}INBOX'; $username = 'mailuser'; $password = 'kennwort'; /* try to connect */ $inbox = imap_open($hostname,$username,$password) or die('Cannot connect to B-NM: ' . imap_last_error()); /* grab emails */ $emails = imap_search($inbox,'ALL'); /* if emails are returned, cycle through each... */ if($emails) { /* begin output var […]

Optipng und Jpegoptim

find ./ -type f -name "*.png" -exec optipng {} \; find ./ -type f -name "*.jpg" -exec jpegoptim –strip-all {} \; find ./ -type f -name "*.jpeg" -exec jpegoptim –strip-all {} \;

Previous Posts Next posts