Skip to content

Instantly share code, notes, and snippets.

Avatar

去年买了个登山包 qnmlgdsb

View GitHub Profile
@solusipse
solusipse / 01_postfix_installer.md
Last active Sep 27, 2020
Postfix + Dovecot + Postgresql + Postfixadmin + Roundcube
View 01_postfix_installer.md

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.

Usage

  1. Run postfix.sh script.
  2. Configure postgres to allow connections.
  3. Configure postfix admin. Remember to set these:
@sureshsaggar
sureshsaggar / Setup GeoIP with NginX & PHP
Last active Jan 20, 2020
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
/usr/share/GeoIP/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
You can’t perform that action at this time.