Skip to main content

Posts

Showing posts with the label Server

mailgun forward incoming mail

Mailgun is email service provider. For detail infomration about mailgun you can visit its site mailgun.com . Untill my last project( blogger-editor.xyz ) i was just using mailgun sending mails. There was no need to receive emails on that domain. But in blogger-editor.xyz , I need to have a domain based email address on which i should send and receive email. Its quite straight forward setup to receive email through mailgun. Just you have to do these two things : Make sure your mx record points to mailgun. [ It should be ticked verfied on mailgun dns verification ] Setup route on mailgun MX Record setup with Domain Registrar In domain verification and Dns section of mailgun you will find that you have to setup two mx record with your domain service provider. mxb.mailgun.org ( priority 10 ) mxb.mailgun.org ( priority 10 ) During creation of mx record you will be asked for host. Host value for your record is the @ if you are using root domain with mailgun , and it w...

Setup forward proxy in apache2

Proxy word is noramally used for forward proxy. It forwards requst to other server and pass downs the response to the client. This post is not supposed to describe the differneace between forward and revsers proxy.  But if you want to find out exact differance you can refer this stackoverflow post.   https://stackoverflow.com/questions/224664/difference-between-proxy-server-and-reverse-proxy-server To setup forward proxy on your apahce2. you have to install [ if you are on linux ] / enable [ if you are using windows ] modules mod_proxy.so mod_proxy_ajp.so mod_proxy_balancer.so mod_proxy_connect.so mod_proxy_http.so mod_slotmem_shm.so mod_ssl.so [ If I am includeing any extra please corrent me. But I had to eanble all this modules. ] You have to make virtual host for proxy forward < VirtualHost *: XX  > ProxyRequests On ProxyVia On < Proxy * >   Require all granted < /Proxy > </VirtualHost...

use elasticmail api with golang example

I am not going describe anything about elasticmail itself. You can look at the elasticmails site for details about it. I am writing this post to show you how to use it with your GoLang application. First Create a template in the elastic mail panel. I Don't know why but when I tried to send an email as complete HTML string. It was returning the 404 error. But when using small pieces of HTML tags like just passing <h2> Hello </h2> it was working. So instead of struggling with it, I found another way, Create Custome template on the elasticmails site panel Use the template for mail with passing necessary details[fields] during the API call Create A Template with placeholders Elastic Mail Template Designer Highlighted elements from the left side Templets menu Templet Name / Id Example Placeholders GoLang Code  function to send the email through ElasticMail with the template shown in the image with ...

Apache : setup basic auth with apache in windows

Authentication is any process by which you verify that someone is who they claim they are. Authorization is any process by which someone is allowed to be where they want to go or to have information that they want to have. I will show here how to set up basic auth on the apache with windows. Pre-requests  Windows VPS Apache server ( That's it ) ( In windows it might be difficult to setup the Apache alone. So instead use something ling xampp , wamp or laragon .) RestClient (  I personally use the postman , but you can use your preferable client)  Windows VPS provider Steps  Enable the necessary modules in the Apache Create the password file Set the auth directives in the virtual host file. Verify basic auth. Enable the  necessary   modules  in the Apache Open the httpd.conf file in the apache's conf folder. httpd.conf file Enable the necessary modules to make the basic auth workin...