Skip to content

Instantly share code, notes, and snippets.


去年买了个登山包 qnmlgdsb

View GitHub Profile
solusipse /
Last active Mar 10, 2022
Postfix + Dovecot + Postgresql + Postfixadmin + Roundcube

Postfix Installer

Following script may be used for configuring complete and secure email server on fresh install of Debian 7. It will probably work on other distributions using apt-get. After minor changes you'll be able to use it on other Linux distros.


  1. Run script.
  2. Configure postgres to allow connections.
  3. Configure postfix admin. Remember to set these:
sureshsaggar / Setup GeoIP with NginX & PHP
Last active Jun 26, 2022
Setup GeoIP with NginX & PHP
View Setup GeoIP with NginX & PHP
On my Ubuntu machine I located the GeoIP.dat file. If not available then download/intall the same.
root@localhost:~# locate GeoIP.dat
Open Nginx configuration (/etc/nginx/nginx.conf) and specify <geoip_country> <path to GeoIP.dat>
line under the "http" block. Example block:
http {
# SS - meant to find country code from the client IP