-
Notifications
You must be signed in to change notification settings - Fork 565
Install and configure a simple mail server for sending mails using PHP mail function in Faveo on Ubuntu 16.04 server
This document will list steps on how to install a simple mail server for Faveo.
We need following dependencies in order to make mail server work:
- PHP 7.1
- PHP Extensions: listed in server requirement
- Composer
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/bin/composer
chmod +x /usr/bin/composer
composer require phpmailer/phpmailer
You will need to set your firewall(s) to allow access to the following ports:
- SMTP: 25
- POP3: 110
- IMAP: 143
- SMTP Secure: 465
By default, the Cloud Panel Firewall denies access to all but the most commonly-used ports. For instructions on how to allow port access, consult our article "Creating a Cloud Panel Firewall".
sudo apt-get update
sudo apt-get install postfix
sudo dpkg-reconfigure postfix
Enter the following values at the prompts, replacing example.com with your own domain name. Use the up arrow and down arrow to move up and down to highlight answers, and Enter to select your answer.
Select OK to proceed
Choose Internet Site
System Mail Name: example.com
Root and postmaster mail recipient:root
Other destinations for mail: example.com, localhost.example.com, localhost
Force synchronous updates on mail queue?: No
Local networks: 127.0.0.0/8
Use procmail for local delivery?: No
Mailbox size limit (bytes): 0
Local address extension character: +
Internet protocols to use: all
After the initial Postfix configuration has been done, you can change Postfix settings with the command:
sudo postconf -e '[new setting]'
Restart Postfix
sudo systemctl restart postfix
sudo postconf -e 'myhostname = example.com'
To test Postfix we will telnet to the server and perform a basic "handshake protocol," just as an email program would. First, install Telnet:
sudo apt-get install telnet
Once Telnet is installed, use it to connect to the server's SMTP port:
telnet localhost 25
The server will respond with:
[user@localhost ~]$ telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 localhost.localdomain ESMTP Postfix (Ubuntu)
Start by telling the server who the mail is being sent from:
mail from: [email protected]
Then tell the server who you are sending mail to, replacing [email protected] with your own username and domain name:
rcpt to: [email protected]
Now add a simple message. Tell the server your message body starts here:
data
Type the message, then follow it with [Enter], a period ., and [Enter]:
hello world
.
Close the session by typing quit and hitting Enter.
Did you find it helpful? If not email us on [email protected]
Installation and Upgrade Guide
- GUI Install Wizard
- Manual Install
- CLI Install
- Server Requirements
- Installation with Apache
- Installation with cPanel
- Cron Job or any Job scheduler
- Faveo Helpdesk Installation on CentOS 7 with Apache on PHP 7.1
- Faveo Helpdesk Installation on CentOS 7 with Nginx on PHP 7.1
- Faveo Helpdesk Installation on Ubuntu 18.04 LTS with Apache on PHP 7.1
- Faveo Helpdesk Installation on Ubuntu 18.04 LTS with Nginx on PHP 7.1
- Faveo Helpdesk Installation on Debian 9 with Nginx on PHP 7.1
- Faveo Helpdesk Installation on Debian 9 with Apache on PHP 7.1
- Migrating Faveo from one server to another
- Configuration of Redis with Faveo
- Install and configure Redis, Supervisor and Worker for Faveo on Ubuntu 16.04
- Install Let’s Encrypt SSL on CentOS 7 Running Apache Web Server
- Install and configure a simple mail server for sending mails using PHP mail function in Faveo on Ubuntu 16.04 server
- Install and configure Redis, Supervisor and Worker for Faveo on Centos 7
- Install and configure a simple mail server for sending mails using PHP mail function in Faveo on Centos 7 server
- Faveo Helpdesk Pro Installation on Windows Server 2012 R2
- Install Active Directory Domain Services in Windows Server 2012 R2
- Install Faveo Helpdesk Community on Centos, Ubuntu or Debian Using Script
- Set up automatic backup for Faveo-Helpdesk
Administrator's Guide
- Faveo File Storage
- Change client side theme color
- How to edit or change the footer in faveo
- How to change agent and admin panel Faveo logo link and logo
- Agents
- Departments
- Team
- Priority
- SLA
- Workflow
- Helptopic
- Default Ticket Settings
- Status
- Rating
- Close Ticket Workflow
- Company Settings
- Social Login
- Language
- Security
- Debugging/Logs
- Ban Emails
- Widgets
Agent's Guide
Email Integration
Release & Upgrade Notes
- General Faveo Upgrade Guide Manual
- General Faveo Upgrade Guide Auto
- Upgrade guide to v1.9.2
- Upgrade guide to v1.9.0
- How to update v1.0.7.9 to v1.0.8.0
- Manual Upgrade from v1.0.7.8 to v1.0.7.9
- Faveo Release notes & upgrade guide for V1.0.7.7
- Faveo Release notes & upgrade guide for V1.0.7.5
- Faveo Release notes & upgrade guide for V1.0.7
Known Issues
- The open_basedir restriction in effect
- 404 Not Found
- 500 Internal Server Error
- Bug after update from 1.0.7.4 to 1.0.7.5 or higher version
- Syntax error, unexpected ‘var’(T_VAR), expecting ‘;’
Contribute & Feedback
- Support the community edition
- Contribution Guide
- Faveo Feedback & Customisation
- Help in language translate
Knowledge Base
Third Party Integration
Plugins
API