ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Topics
    2. killmasta93
    3. Best
    K
    • Profile
    • Following 0
    • Followers 0
    • Topics 9
    • Posts 26
    • Best 8
    • Controversial 0
    • Groups 0

    Best posts made by killmasta93

    • NGINX configure 2 roots with same subdomain?

      Hi,

      I was wondering if someone could point me to the right direction, currently have NGINX working with rainloop using SSL letsencrypt works great. now im trying to get the Active Sync with zpush working. I got it working by taking down the rainloop, my question is how can i have rainloop and zpush on the same config with 2 roots? i was looking at the manual and saw alias but not sure if i did it correctly this is what i got so far.

      Rainloop

                  server {
                      server_name mail.mydomain.com;
                      root /var/www/rainloop/;
                      access_log /var/www/rainloop/logs/access.log;
                      error_log /var/www/rainloop/logs/error.log;
                      index index.php;
                  
                      location / {
                          try_files $uri $uri/ /index.php?$query_string;
                      }
                  
                      location ~ \.php$ {
                          fastcgi_index index.php;
                          fastcgi_split_path_info ^(.+\.php)(.*)$;
                          fastcgi_keep_conn on;
                          include /etc/nginx/fastcgi_params;
                          fastcgi_pass unix:/var/run/php5-fpm.sock;
                          fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                  
                      }
                  
                      location ~ /\.ht {
                          deny all;
                      }
                  
                      location ^~ /data {
                        deny all;
                      }
                  
                  
                      listen 443 ssl; # managed by Certbot
                      ssl_certificate /etc/letsencrypt/live/mail.mydomain.com/fullchain.pem; # managed by Certbot
                      ssl_certificate_key /etc/letsencrypt/live/mail.mydomain.com/privkey.pem; # managed by Certbot
                      include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
                      ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
                  
                  
                      ssl_trusted_certificate /etc/letsencrypt/live/mail.mydomain.com/chain.pem; # managed by Certbot
                      ssl_stapling on; # managed by Certbot
                      ssl_stapling_verify on; # managed by Certbot
                  
                  }
                  server {
                      if ($host = mail.mydomain.com) {
                          return 301 https://$host$request_uri;
                      } # managed by Certbot
                  
                  
                      server_name mail.mydomain.com;
                      listen 80;
                      return 404; # managed by Certbot
                  
                  
                  }
                  # HTTP TO HTTPS REDIRECT
                  server {
                      listen 80;
                      server_name mail.mydomain.com;
                  return 301 https://$host$request_uri;
                  }
      

      and this is my zpush (active sync)

                server {
                   listen 443;
                   server_name mail.mydomain.com autodiscover.mydomain.com;
               
                   ssl on;
                   ssl_certificate         /etc/letsencrypt/live/mail.mydomain.com/fullchain.pem;
                   ssl_certificate_key     /etc/letsencrypt/live/mail.mydomain.com/privkey.pem;
               
                   root    /var/www/zpush;
                   index   index.php;
               
                   error_log /var/log/nginx/zpush-error.log;
                   access_log /var/log/nginx/zpush-access.log;
               
                   location / {
                       try_files $uri $uri/ index.php;
                   }
               
                   location /Microsoft-Server-ActiveSync {
                       rewrite ^(.*)$  /index.php last;
                   }
               
                  
               
                   location ~ .php$ {
                       include /etc/nginx/fastcgi_params;
                       fastcgi_index index.php;
                       fastcgi_param HTTPS on;
                       fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                       fastcgi_pass unix:/var/run/php5-fpm.sock;
                       # Z-Push Ping command will be alive for 470s, but be safe
                       fastcgi_read_timeout 630;
                   }
               
               }
      

      I was reading about putting the alias but i tried many options and could not get it work.
      Any ideas?

      Thank you

      posted in IT Discussion
      K
      killmasta93
    • Syncoid To usb retention policy ZFS?

      Hi,
      I was wondering if someone could shed some light on the issue im having, currently trying to backup my vm using ZFS
      currently using syncoid to backup to a usb which i have accomplished by this command

      syncoid -r rpool/data/vm-125-disk-0 usbbak/vm-125-disk
      
      

      the issue is that there is no retention policy something like to keep 4 days or so 4 snapshots. i checked the manpage does not say anything about retention any ideas?

      Thank you

      posted in IT Discussion linux storage sanoid syncoid zfs
      K
      killmasta93
    • Script to prune mailbox zimbra?

      Hi,
      I was wondering if someone else has had the same dilemma, so currently i have postfix email server which im moving to zimbra.

      On my postfix server i had this script that would clean 90 days of emails

      #!/bin/bash
       /usr/bin/find /home/in/Maildir/cur -type f -mtime +90 -delete -name "*.mail.mydomain.com:2"
       /usr/bin/find /home/in/Maildir/cur -type f -mtime +90 -delete -name "*.mail.mydomain.com:2,S"
      /usr/bin/find /home/in/Maildir/cur -type f -mtime +90 -delete -name "*.mail.mydomain.com"
      

      and this script to clean the other mailboxes

       #!/bin/bash
      MAILDIRS=$(find /home/*/Maildir/ -maxdepth 0 -type d)
      for basedir in $MAILDIRS; do
        for dir in .Trash .Junk .Spam .Low\ Priority; do
          for dir2 in cur new; do
            [ -e "$basedir/$dir/$dir2" ] && (
              echo "Processing $basedir/$dir/$dir2..."
              find "$basedir/$dir/$dir2/" -type f -mtime +90 -delete
            )
          done
        done
      done
      

      I also saw an option on zimbra about retention policy but i think its not automatic as it needs user permission manually?
      or am i wrong?

      I was looking around but i found a few scripts for zimbra but it deletes amounts of email but not by time

      Thank you

      posted in IT Discussion
      K
      killmasta93
    • Zabbix Agent alert on active mode?

      Hi
      I was wondering if someone could shed some light on the issue im having. Before i had my zabbix agents connecting directly to my zabbix server on different remote sites which worked fine until my zabbix got overloaded. Then on each remote site i put a zabbix proxy which helped alot on my server. So one day one of servers got shutdown and didn't alert me only 30min later which is odd. So my question is how can configure the alert of zabbix when the data stops coming in after 5min rather then 30min?

      Thank you

      posted in IT Discussion
      K
      killmasta93
    • Zimbra Filter rules?

      Hi i was wondering if someone has accomplished what im trying to do,
      Currently i need to create a filter for all the email users and future users.
      I could not find a way on the web console to add that filter without doing one by one,
      I did see this command

      zmmailbox addFilterRule
      

      but it would be the same way adding one by one so not sure if any more ideas?

      Thank you

      posted in IT Discussion zimbra
      K
      killmasta93
    • RE: Proxmox: Unable to parse lvm volume name

      @gjacobse

      why dont you just import it directly?

      qm importdisk 100 DietPi_VMware-x86_64-Buster.vmdk zfs-vmdata
      

      this case im running ZFS just change the zfs-vmdata to your lvm location

      posted in IT Discussion
      K
      killmasta93
    • RE: Zimbra Filter rules?

      @scottalanmiller
      found out how to do it

      first enable headers

      zmprov mc default zimbraSieveEditHeaderEnabled TRUE
      

      then create filter

      cat /tmp/myfilters
      
      require ["fileinto", "reject", "tag", "flag", "editheader"];
      
      #Filter email based on a subject
      if header :contains "Subject" [
        "SPAM"
        ]
      {
          fileinto "Junk";
          stop;
      }
      

      then copy the sieve filters

      cat /tmp/myfilters |xargs -0 zmprov md domain.com zimbraAdminSieveScriptBefore
      

      and it works

      posted in IT Discussion
      K
      killmasta93
    • RE: Issue with NGINX passthough TLS

      @pete-s
      correct, whats odd is that it works perfectly fine on HA proxy on pfSense its just that i want to move better to a virtual machine and not depend on pfSense
      Im not sure howcome it works on HA proxy and not on NGINX

      posted in IT Discussion
      K
      killmasta93
    • 1 / 1