Created
March 19, 2020 08:13
-
-
Save iamdylanngo/2e372806ee80ba644f0c38d0e5805a82 to your computer and use it in GitHub Desktop.
postfix-ubuntu.readme
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.linuxbabe.com/mail-server/setup-basic-postfix-mail-sever-ubuntu | |
# Check host name | |
hostname -f | |
if host not contain in resutl | |
sudo hostnamectl set-hostname mail.demo.local | |
sudo vim /etc/hosts | |
127.0.1.1 mail.demo.local | |
# check postfix | |
sudo netstat -lnpt | |
dpkg -L postfix | grep /usr/sbin/ | |
postconf mail_spool_directory | |
sudo tail -f /var/log/mail.log | |
# Advance | |
postconf | grep message_size_limit | |
sudo postconf -e message_size_limit=52428800 | |
# change myhostname | |
sudo vim /etc/postfix/main.cf | |
# change email alias | |
sudo vim /etc/aliases | |
sudo newaliases |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment