Tagged: Digital Ocean Toggle Comment Threads | Keyboard Shortcuts

  • Tuan Pembual 17:18 on 18 February 2017 Permalink | Reply
    Tags: AWS, , Digital Ocean, GCE,   

    Perpaduan Chef, Knife, AWS CLI, Digital Ocean, dan Google Compute Engine 

    6-alasan-wanita-tertarik-pada-pria-jago-masak
    Idenya, saya ingin memanajemen beberapa provider layanan awan dalam satu tools. Kebetulan kantor menggunakan beberapa, diantaranya aws, digital ocean, gce.

     

    Saya terbiasa menggunakan ChefDK dan knife sebagai alat masak. Mari kita pasang-pasang tools pendamping.

    1. ChefDK (Chef, Ruby, Knife)
    2. AWS CLI
       $ pip install awscli
      
    3. Google Cloud SDK
    4. Gem (knife-ec2, knife-digital_ocean, knife-google)
      $ chef gem install knife-ec2 knife-digital_ocean knife-google
      
    5. Atur knife.rb untuk masing-masing provider
      $ vim ~/.chef/knife.rb
      

      Atur kira kira seperti ini

      knife[:aws_credential_file] = File.join(ENV['HOME'], "/.aws/credentials")
      knife[:aws_config_file] = File.join(ENV['HOME'], "/.aws/config")
      knife[:aws_profile] = "default"
      knife[:digital_ocean_access_token]  = "xxxxxxxxxxxxxxxxxx"
      knife[:gce_project] = 'my-project-name'
      knife[:gce_zone]    = 'asia-east1-a'
      
    6. Knife siap digunakan
      $ knife ec2 server list
      $ knife digital_ocean droplet list
      $ knife google server list
      

    Dah kira-kira begitu.
    Sumber gambar dari sini.

    Estu~

    Advertisements
     
  • Tuan Pembual 09:52 on 16 January 2016 Permalink | Reply
    Tags: Digital Ocean, Email, Forward, ,   

    Membuat Penerusan Surel dengan postfix di VPS Digital Ocean 

    Postfix_logo

    Task awal. Meneruskan email dari hello@domain.com ke akun gmail menggunakan postfix. Caranya:

    1. Set domain untuk mengarah ke vps DO. Address maupun mx.

    2. Login ke vps
    3. Install postfix
      #apt install postfix
    4. Atur konfigurasi postfix
      # /etc/postfix/main.cf
      
      smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
      biff = no
      
      # appending .domain is the MUA's job.
      append_dot_mydomain = no
      
      # Uncomment the next line to generate "delayed mail" warnings
      #delay_warning_time = 4h
      
      readme_directory = no
      
      # TLS parameters
      smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
      smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
      smtpd_use_tls=yes
      smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
      smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
      
      # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
      # information on enabling SSL in the smtp client.
      
      smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
      myhostname = domain.com
      alias_maps = hash:/etc/aliases
      alias_database = hash:/etc/aliases
      virtual_alias_domains = domain.com
      virtual_alias_maps = hash:/etc/postfix/virtual
      myorigin = /etc/mailname
      mydestination = domain, localhost.localdomain, localhost
      relayhost =
      mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
      mailbox_size_limit = 0
      recipient_delimiter = +
      inet_interfaces = all
      inet_protocols = ipv4
    5. Atur email alias
      # /etc/postfix/virtual
      hello@domain.com youremail@gmail.com
    6. Remap and reload postfix
      # postmap /etc/postfix/virtual
      # service postfix reload
    7. Lakukan testing dari konsole komputer lokal, dan cek kotak masuk gmail anda (even spam box too)
      # echo "\n-- BEGIN MESSAGE --\nHi All,\nThere is a new testing "test-fordward-mail".\nYour Dev Friend, Tuan Bot\n-- END MESSAGE --" | mail -s "test-fordward-mail" "hello@domain.com"
      # tail -f /var/log/mail.log

    Kelar! Next Task, bikin SMTP Relay

    Selamat utik-utik
    Estu yang lagi ketik-ketik

    Bacaan:

    [0] http://www.kevinsweet.com/forwarding-email-digital-ocean-ubuntu/

     
c
Compose new post
j
Next post/Next comment
k
Previous post/Previous comment
r
Reply
e
Edit
o
Show/Hide comments
t
Go to top
l
Go to login
h
Show/Hide help
shift + esc
Cancel