gmail – How can I reverse moving messages from archive to trash?

Concerned about space in my gmail I just took a rash and stupid action, and “deleted” everything from the “archive.” I did this on mozilla thunderbird on my mac. It’s clear to me I haven’t lost the messages (They’re now in my gmail trash, plus I have a second laptop that until it syncs has everything where it belongs, and time machine backups from a couple weeks ago….), but I am unsure how to restore the messages (i.e. get them all back in their appropriate folders). I would be happy with either

1) the best way to restore my gmail based on the version sitting on thunderbird on another computer or time machine backup

2) the best way to reverse this mass “deletion”

Do you have suggestions?

reverse engineering – mit Kat Williams, der berüchtigten Rock n Roll Braut mekleid.de

http://www.mekleid.de/g/9ce2-m1fzy-normale-taille-reissverschluss-a-linie-mini-brautjungfernkleid-mit-borduere.jpg

Rachel Simpson sagt: “Vintage-Mode feiert weiterhin ein Comeback und niemals mehr als auf dem Brautmarkt. Bei so vielen kreativen Talenten aus dem Herzen des Landes war es absolut sinnvoll, sie unter einem Dach zusammenzubringen, um die erste Vintage-Brautparade in den Midlands zu veranstalten. ” 

Clare Guest berichtet, dass” Bräute uns immer öfter fragen, wo Sie können sich Ideen für eine Hochzeit im Vintage-Stil einfallen lassen… “ 

Es ist eine ziemlich fabelhafte Linie, direkt darüber, oder?!

In der Highbury Hall kleider schwarz, einem beeindruckenden viktorianischen Haus, findet die zweitägige Veranstaltung statt, bei der die Gäste durch eine Explosion von Epochen schlendern können. Jeder Bereich ist einem Jahrzehnt des Stils gewidmet und voller Schätze und Must- hat für die vintage liebende zukünftige Braut. 

Und falls Sie das Detail im obigen Beitrag nicht bemerkt haben, lassen Sie mich Sie ein bisschen mehr für Sie in die Luft jagen … 

Ja, ich werde mit Kat Williams brautkleider Weiß, der berüchtigten Braut Rock n Roll, da sein – Bräute zu treffen und mit ihnen zu plaudern, um ihre Hochzeit zu planen und einen guten alten Kinnwedel mit Branchenkontakten zu haben. 

nginx – reverse proxy, ssl, and load balance same connection?

Application we use has an extended path that we would want shortened to just one subfolder. The method to do this was to use nginx. Along with this was to have the SSL terminated on the proxy server and not the actual web application servers. So far so good. But after reading through docs on nginx load balancing, I do not see how this can be added on the same nginx server.

server {
    listen       443 ssl http2 default_server;
    listen       [::]:443 ssl http2 default_server;
    server_name  ****.****.com;
    ssl_certificate "/etc/pki/tls/certs/***_****_com.crt";
    ssl_certificate_key "/etc/pki/tls/certs/ssl.key";
    ssl_session_cache shared:SSL:1m;
    ssl_session_timeout  10m;
    ssl_ciphers HIGH:!aNULL:!MD5;
    ssl_prefer_server_ciphers on;

    location /{
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_pass http://1.xx.xx.5;
    }

    location /LakeCityMN{
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_pass http://1.xx.xx.5/data/****/****/Lake;
        rewrite ^/Lake$ /data/****/****/Lake/ permanent;

Is there a means with nginx to load balance a 2nd proxy_pass? Adding in the 2nd proxy_pass server does not work and that is the only line that defines the backend server. So I am either lost in how to add this correctly, or this is not doable with nginx.

reverse proxy – How to redirect port 80 and 8080 to 443 using nginx for a Jenkins server

I am try to redirect anything going to port 80 and 8080 to 443 (https) using nginx. This is for a Jenkins server. I am using ubuntu. This is the nginx config I have at the moment:

server {
  listen 80;
  server_name jenkins.mydomain.com;

  location / {
    proxy_pass          http://localhost:8080;
    proxy_set_header    Host      $host;
    proxy_redirect      http://localhost:8080 https://jenkins.mydomain.com;
  }

  return 301 https://jenkins.mydomain.com$request_uri;
}

server {
  listen (::):443 ssl ipv6only=on;
  listen 443 ssl;
  server_name jenkins.mydomain.com;

  ssl on;
  ssl_certificate /path/to/wildcard.mydomain.com.crt;
  ssl_certificate_key /path/to/wildcard.mydomain.com.key;

  location / {
    add_header Cache-Control private;
    expires epoch;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto https;
    proxy_set_header Host $host;
    proxy_ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    proxy_ssl_server_name on;

    include /etc/nginx/proxy_params;
    proxy_pass          http://localhost:8080;
    proxy_read_timeout  90s;
    proxy_redirect      http://localhost:8080 https://jenkins.mydomain.com;
  }
}

As you can see I tried adding the proxy related headers to the port 80 server block but that is not working. When I go to http://jenkins.mydomain.com or http://jenkins.mydomain.com:8080 it does not redirect to https://jenkins.mydomain.com. How do I redirect anything going to port 80 and 8080 to 443?

nginx – server name aliases not work with reverse proxy

I have a problem parking a domain to my website.
everything is OK on domain.com and when I browse domain.com, it reverse proxy my NodeJS program on domain.com well.

I just have add domain.org and everything is OK in dns service but if I browse domain.org it just show me the Nginx welcome page.
it seems like it doesn’t get domain.org as alias of my canonical domain.com and not understand the document root of that. so what should I do?

if it helps I’m on Ubuntu 18.04.
Nginx as web-server and reverse proxy of NodeJS.
bind9 as dns-service.

dovecot – Postfix: With SASL on Thunderbird can connect to Postfix but Node.js app can’t. With SASL off the reverse is true. Why is this?

Environment: Postfix 3.3, Dovecot 2.2, Node.js – Postfix/Dovecot is running next to a Node.js app inside of a Digital Ocean Droplet.

Question: With SASL on Thunderbird can connect to Postfix but Node.js app can’t. With SASL off the reverse is true. Why is this? I need both to to work.

Background: With these 4 lines added to main.cf Thunderbird connects up to Postfix/Dovecot and sends and receives normally.

smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_auth_enable = yes

Unfortunately with SASL turned on the Node.js app cannot connect to the server. It produces this error when Node attempts to send.

auth(3552): pam_unix(dovecot:auth): check pass; user unknown
auth(3552): pam_unix(dovecot:auth): authentication failure; logname= uid=0 euid=0 tty=dovecot ruser=user@example.com rhost=155.100.100.101
postfix/smtpd(3540): warning: unknown(155.100.100.101): SASL PLAIN authentication failed:

On the flip side when those 4 lines are commented out in main.cf Node.js can connect up and send mail without a problem.

Unfortunately with SASL turned off I lose the ability to send and receieve email in Thunderbird. I get this error in an alert box in Thunderbird.

An error occurred while sending mail. The mail server responded:
454 4.7.1 <test@gmail.com>: Relay access denied.

linux – Sed: Perform pattern search in reverse order in a certain range and get the line number of each match

I want to search the pattern in a certain range but in reverse order. For example if I give the range say 200,250 then I want that search should be performed in reverse order means search should start from line number 250 and if any line matche the pattern then print the line number

I have tried this command sed -n '!G;h;200,250{|perl: warning:|=}' a.txt but it actually perform the search in ascending order

I have searched on internet and found if we do sed '1!G;h;$!d' a.txt then it actually print the file in reverse order. Just want to modify this command such that it print the line number in reverse order on each pattern match.

So How can I modify the command. Please help

postfix – How to solve reverse DNS lookup error when mail.example.com is stored on server.example.com

Environment: Digital Ocean, Centos 8, Postfix/Dovecot

Background: For my droplet I used a FQDN, server.example.com. Digital Ocean configures the PTR record (reverse DNS entry) on their end based on the droplet name.

This works fine with my web server. Unfortunately I’m getting a reverse DNS lookup error for my Postfix email server. In Postfix main.cf I used mail.server.com as the value for the myhostname parameter.
Below are some relevant entries from my DNS records.

Type: A
Name: example.com
Value: 100.100.100.100

Type: A
Name: mail.example.com
Value: 100.100.100.100

Type: MX
Name: example.com
Value: mail.example.com

The error I get on MXToolbox is,

Reverse DNS does not match SMTP Banner.

I tried adding an additional DNS record to fix the problem but the error didn’t go away.

Type: A
Name: server.example.com
Value: 100.100.100.100

Question: Is there a DNS record I can add to fix this problem? I’m not sure how to fix a reverse DNS lookup problem.

reverse proxy – Chaining multiple nginx error pages

I’m fighting a bit with nginx and try to get a “chain” of nginx error pages to work. Current state looks like this:

server {
    listen       443 ssl;
    server_name  ~^((?<repo>.*).)example.de$;

    ssl_certificate /etc/pki/tls/certs/cert.pem;
    ssl_certificate_key /etc/pki/tls/private/key.pem;
    client_max_body_size 100M;

    location / {
        proxy_pass http://backend_example/example/${repo}$request_uri;
        proxy_http_version 1.1;
        proxy_buffering off;
        proxy_connect_timeout 300;
        proxy_intercept_errors on;

        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_redirect off;

        rewrite  ^/$  /index.html  permanent;
        error_page 404 /backend_404.html;
    }

    location /backend_404.html {
        proxy_pass http://backend_example/example/${repo}/404.html;
        proxy_intercept_errors on;

        error_page 404 /error.html;
    }

    location /error.html {
        ssi on;
        internal;
        root /usr/share/nginx/html;
    }
}

What’s working:

  • if the file 404.html is available on the backend it will be delivered as intended
  • if the 404.html is not available on the backend I get the standard 404 from nginx instead of the local custom error.html
  • if I replace error_page 404 /backend_404.html; with error_page 404 /error.html; the error.html location also works

What I want to achieve:

  • if 404.html exists on the backend, deliver it
  • if 404.html not exist, deliver a custom error page error.html instead of the default one

Is there a search engine with reverse search mechanism: processing multiple queries and retrieving a single result for each of them?

A regular search engine retrieves a number of results matching a single query. I need one that does the opposite: enables to input a number of queries and displays a single match to each of them. If there is no match, I need to know it too. An implementation of this approach exists, but its application is limited to the database embedding it (PubMed). Batch Citation Matcher enables a user to identify unique content in databases covering material also present in PubMed. A user can submit a text file and the engine transforms the content of the file separated in a required way into a number of queries, then displays a table with queries in one column and the information on whether the text of the queries was found in a database being compared to PubMed in another column. Is there an analogues application which can be applied to any website?