Tran Nghi's Site  - Make notes and share experience

PyAPNS – a Python library for interacting with the Apple Push Notification service

Author: Simon Whitaker at http://www.netcetera.org/ Seems that this project was no longer available when I am writing this post. Don’t know why.. but I just know that my webdev team is stilling using this great tool to make Push Notification on Apple devices. Hereby the guidance for running it up. Copy the pushmail.tar.gz to this location: /etc/postfix/pushmail…..

Generate File of a certain size?

You can use dd: dd if=/dev/zero of=output.dat bs=24M count=1 or dd if=/dev/zero of=output.dat bs=1M count=24 or dd if=/dev/zero of=outputfile.out bs=1024k count=24 or use bs=1M and count=24. Many find it nicer and easier to read… On the Mac, use 24m (small m), because the Mac doesn’t like the big M. dd if=/dev/zero of=output.dat bs=24m count=1   GIT…

Học Regular Expression dễ dàng hơn với RegexOne

Regular Expression là gì? Regular Expression (biểu thức chính quy – Regex) là một chuỗi kí tự đặc biệt được dùng làm mẫu (pattern) để so khớp với một chuỗi nào đó. Hầu hết các ngôn ngữ lập trình đều cung cấp cho lập trình viên các thư viện hoặc hàm để làm việc với…

Cannot Send e-mails, Does Not Allow Relaying – Fixed

I was getting this crazy error when sending out an email on my iPhone.. After some research, I just realize that there is a my mistake when making adjustment of /etc/postfix/main.cf Hereby my mistake:     mynetworks = 127.0.0.0/8 113.xxx.77.xxx/32 192.168.1.0/24 Do you recognize it? Do never forget the , comma sign “,” among each…

Mail filtering and improving the score of sending email

Resources: 1) Ubuntu – Mail Filtering 2) Ubuntu – PostfixAmavisNew The recommended and easiest way to install Pyzor is with pip: [email protected]:~# pip install pyzor In order to upgrade your Pyzor version run: [email protected]:~# pip install –upgrade pyzor For me, the latest pyzor-1.0.0 seemed to not working on my environment. Ubuntu 16.04.3 Postfix 3.1.0 Dovecot 0.4.13 SpamAssassin…

Autodiscover mail setting for automatically Outlook setup

Some mail clients will use a system called “Autodiscover” to figure out which settings to use for the pop/imap/smtp settings. You can set this up if you’d like, it basically requires a subdomain and a SRV record. You can add the SRV record into any domain you want to use these settings for. If you’ve…

Force IMAPS and SMTPS and AMAVIS TLS

config postfix/dovecot using tls/ssl – force encrypt Protocol Usage Plain text/encrypted session Encrypted session only POP3 Incoming mail 110 995 IMAP Incoming mail 143 993 SMTP Outgoing mail 25 465 Submission Outgoing mail 587   Disable IMAP protocol and force IMAPS Older versions of dovecot had an array in the file: /etc/dovecot/dovecot.conf If you find an…

Postfix – Config SPF, DKIM and DMARC

Below is some articles that I have referred to config SPF and DKIM on my self-host mail server. 1) SPF The first article that I found: “Authenticating with SPF: -all or ~all” And more detail: “Configure SPF and DKIM With Postfix on Debian 8” Below is my work – I was setting up for a sub-domain…

SysDev (System Development) JD

More things in the JD need to be learned as quickly as possible!!! What the hell is “Chef vs. Puppet vs. Ansible vs. SaltStack vs. Fabric vs. Docker“??? Find the article: “Deployment Management Tools: Chef vs. Puppet vs. Ansible vs. SaltStack vs. Fabric”; and read it.

Problem with Amazon EC2 Ubuntu instance after installing whereami

The Debian version of whereami is designed to provide multiple network connectivity options for laptops or other portable devices capable of running Debian/Ubuntu Linux. Attempted installation of the whereami package on an Amazon EC2 Debian/Ubuntu Linux instance will terminate any existing connection to the instance and cause all future connection attempts to fail.

Message