Skip to main content

Hotel Phone System (VoIP)

Hotel Phone System (VoIP) Hotel Phone System should be a must for most hoteels or motels, which has been using Analog Phone System(Analog PBX) in past decades.  There were some technical and financial issues if swifting to IP-PBX: 911 service IP-phone expensive than analog hotel phone Ethernet cable running Billing System Solution for replacement: e-911 are supported  VoIP gateway Sharing same Ethernet cable with IPTV A2billing Module for IP-PBX Therefore, you could  build a PBX  for hotels or motels if you are the owner  Analog VoIP Gateway For Hotel Phone System IP phone is recommended because many functions can work only on IP phone, but IP phone still expensive than analog hotel phone. Alternatively, hotels or motels can use VOIP gateway instead. In addtion, no need to run Ethernet cable. Software for For Hotel Phone System Issabel FreePBX FusionPBX You should consider Issabel or FreePBX first:Issabel with very friendly Web console and almost all modules are...

Gmail: How to send email from linux server?

Gmail: How to send email from linux server?


Gmail: How to send email from linux server?  Gmail is the first email choice for personal uses. Very convenient, easy to use, but you have to do some configuration if gmail is used to send system notice from your linux server.

01 Turn on less security in Gmail

  1. Login in your Gmail account from web browser
  2. Click Google Apps and select “Account”
  3. Click “Security”
  4. Find “Less secure app access”
  5. Turn on it

Gmail: How to send email from  linux server?

 

02 Configuration

CentOS:

Login in with root via SSH

  • Install POSTFIX and mailx

yum install postfix

systemctl restart postfix

yum install cyrus-sasl cyrus-sasl-lib cyrus-sasl-plain

yum install mailx

 

  • Edit main.cf

nano /etc/postfix/main.cf

  • Add blow lines to the end of main.cf

#postfix send email via gmail on Aug 09 2020

relayhost = [smtp.gmail.com]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_use_tls = yes

 

  • Create the file /etc/postfix/sasl_passwd with the following contents:

nano /etc/postfix/sasl_passwd

  • Add your Gmail information
[smtp.gmail.com]:587 user.name@gmail.com:password
  • Restrict permissions on the postfix file:

chmod 400 /etc/postfix/sasl_passwd

chown root.root /etc/postfix/sasl_passwd

  • Hash the file into a .db that Postfix will read:
postmap /etc/postfix/sasl_passwd
  • Change the owner of the sasl_passwd to the postfix user:

chown postfix /etc/postfix/sasl_passwd

  • Reload postfix:

service postfix restart

  • Test email

echo “Test mail from postfix” | mail -s “Test Postfix” youremail@gmail.com

 

Debian or Ubuntu Server:

The process is almost same as CentOS, the only difference is to install mailutils instead of mailx.

sudo apt install mailutils

 

 

 

Comments

Popular posts from this blog

CentOS Firewall: firewalld commands

CentOS Firewall:  firewalld commands I. Introduction Centos7 and above releases have tried to bring firewalld firewall, firewalld to bring iptables firewall.  The reason is that the firewall policy of iptables is handled by the netfilter network filter at the kernel level, while firewalld is handled by the nftables packet filtering framework at the kernel level.  Compared with iptables firewall, firewalld supports dynamic update technology and adds the concept of zone.  To put it simply, the area is that firewalld has prepared several sets of firewall policy sets (policy templates) in advance. Users can choose the appropriate policy set according to different production scenarios to achieve rapid switching between firewall policies. Zone is a major feature for firewalld, but for us, Centos7 is generally on the server, and there is less need to switch zones, so this article will not introduce it. There are more online information. You can go to Baidu to find informati...

Debian/Ubuntu: Best Replacement of CentOS

  Debian/Ubuntu: Best Replacement of CentOS Debian/Ubuntu: Best Replacement of CentOS. CentOS 8 will not be supported at the end of 2021. Althought CentOS 8 could be swifted to CentOS 8 Stream, the situation would be changed significantly and CentOS 8 stream is rolling-release version. In other words: CentOS is Redhat’s downstreaming version. CentOS stream is Redhat’s upstreaming version. That means CentOS Stream is actually “beta” version, and its bugs should be more than CentOS.   What’s the crucial goal as server? Absolutely it’s Stablility!  CentOS Stream is not suitable for production server if you care about this issue. Unfortunately. You have to buy commercial license to swift to Redhat Linux if you still want to use server OS as stable as CentOS. Alternatively, you can swift to other free version Linux, but the easiest way to replace CentOs by  Debian  or  Ubuntu . Let’s compare CentOS, Debian and Ubuntu first.   Which is more suitabl...

FreePBX vs. FusionFBX

FreePBX vs. FusionFBX FreePBX vs FusionFBX has been being a topic for many years. Both FreePBX and FusionPBX are great projects, but two systems have different sources and architectures. Actually both are the Web-Gui developped from Asterisk and Freeswitch instead of command lines. FreePBX FreePBX  is developped from Asterisk on CentOS Linux, also support other Linux. FreeBPX provides free Distro disk. Most modules of FreePBX are free, but commercial modules need to pay. Some  PBX  projects were also developped from FreePBX, like  Trixbox, Elastix and PBX in a Flash . Pros: Free Distro. Based on CentOS Friendly Web-Gui Easy to use and configure Long History Wide Community  Support Support Arch Linux, Ubuntu, Debian, Raspbian Support both x86 and ARM CPU Good support for telephony hardware Cons: Not all modules are free, some commercial modules need to pay. Web-Gui uses much system resource. However, a powerful ARM-device like Raspberry Pi 4 might not have such p...