Mail server: Difference between revisions
(→SSL) |
|||
Line 71: | Line 71: | ||
send = TRUE) | send = TRUE) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
= Use Zoho Mail With Your Domain = | |||
[https://www.makeuseof.com/how-to-migrate-gmail-to-zoho-mail-with-your-domain/ How to Migrate from Gmail to Zoho Mail With Your Domain] | |||
= How to Send an Email with a Different “From” Address in Outlook = | = How to Send an Email with a Different “From” Address in Outlook = |
Revision as of 08:29, 11 April 2022
Running an Email Server
- Mail Transport/Transfer Agents (MTAs) - send messages between servers (required)
- Mail Delivery Agents (MDAs) - store messages in the recipient's mailbox (required)
- Mail User Agents (MUA) - software for reading messages
You need a domain name and appropriate MX records in your DNS.
See lynda.com
- Linux: Email Services
- Linux System Engineer: Mail Systems Using Postfix
- Linux Foundation Cert Prep: Email Services (Ubuntu)
POP, IMAP and Exchange
- https://support.office.com/en-US/article/What-are-IMAP-and-POP-ca2c5799-49f9-4079-aefe-ddca85d5b1c9?ui=en-US&rs=en-US&ad=US&fromAR=1
- https://www.howtogeek.com/99423/email-whats-the-difference-in-pop3-imap-and-exchange/
POP works by contacting your email service and downloading all of your new messages from it. Once they are downloaded onto your PC or Mac, they are deleted from the email service.
IMAP allows you to access your email wherever you are, from any device. When you read an email message using IMAP, you aren't actually downloading or storing it on your computer; instead, you're reading it from the email service. As a result, you can check your email from different devices, anywhere in the world: your phone, a computer, a friend's computer.
Exchange offers the same syncing capabilities as IMAP, plus much more. Exchange is a Microsoft product, giving you the ability to still use Outlook as your email service and benefit from Exchange functionality.
Configure Postfix to use Gmail as a Mail Relay
- https://www.howtoforge.com/tutorial/configure-postfix-to-use-gmail-as-a-mail-relay/. Note one comment says to use App Passwords instead of the regular google account password.
- How to Set Up a Mail Agent for Command Line Email
How to Build an Email Server on Ubuntu Linux
- https://www.linux.com/learn/how-build-email-server-ubuntu-linux, Part 2 & Part 3
- https://help.ubuntu.com/community/Postfix
- https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-postfix-as-a-send-only-smtp-server-on-ubuntu-14-04
- https://www.digitalocean.com/community/tutorials/how-to-install-and-setup-postfix-on-ubuntu-14-04
- How to Setup IRedMail Server on Ubuntu 18.04 LTS
Docker
See Docker method
SSL
- How to create a Mail server with SSL/TLS on Linux
- How To Secure Your Linux Email Services with SSL/TLS
- Email forwarding
- Mail forwarding using Sendmail
Send from google emails on Ubuntu
- How to configure Postfix to use Gmail SMTP on Ubuntu 16.04 / 17.10.
- Configure Postfix to use Gmail as a Mail Relay
- How to configure Postfix to use Gmail SMTP on Ubuntu 18.04 & 16.04
Change your google account to use less secure authentication. Otherwise it won't work and you will receive an email with a subject "Critical security alert" after you try to send out an email.
sudo apt install mailutils sudo nano /etc/postfix/main.cf # no account information sudo nano /etc/postfix/sasl_passwd # contains account information cat /etc/ssl/certs/thawte_Primary_Root_CA.pem | sudo tee -a /etc/postfix/cacert.pem sudo chown root:root /etc/postfix/sasl_passwd /etc/postfix/sasl_passwd.db sudo chmod 0600 /etc/postfix/sasl_passwd /etc/postfix/sasl_passwd.db sudo apt-get install --reinstall postfix sudo /etc/init.d/postfix restart sudo /etc/init.d/postfix reload echo "Test Email message body" | mail -s "Email test subject" [email protected] # works
We can actually send to other email accounts. For example, we can use mailR package to send emails in R
send.mail(from = "[email protected]", to = c("[email protected]"), replyTo = c("[email protected]"), subject = "Test", body = "test", smtp = list(host.name = "smtp.gmail.com", port = 465, user.name = "yourname", passwd = "XX", ssl = TRUE), authenticate = TRUE, send = TRUE)
Use Zoho Mail With Your Domain
How to Migrate from Gmail to Zoho Mail With Your Domain
How to Send an Email with a Different “From” Address in Outlook
How to Send an Email with a Different “From” Address in Outlook. How Email Providers Handle Messages Sent From a Different “From” Address? How Do Scammers Use Fake “From” Addresses?
Bash Script to Send a Mail When ...
Bash Script to Send a Mail About New User Account Creation
Webmail
Install WebMail Lite PHP based Webmail Client on Debian 9.1
Command line tools
6 Ways to Send Email from the Linux Command Line:
- mailx
- mutt
- mpack
- sendmail
- ssmtp
mutt
Mutt is a command line email app for Linux and here's how to set it up
sendemail package
- http://bhfsteve.blogspot.com/2013/03/monitoring-web-page-for-changes-using.html
- sudo apt-get install sendemail
- Usage
sendEmail -f $USERNAME -s smtp.gmail.com:587 \ -xu $USERNAME -xp $PASSWORD -t $USERNAME \ -o tls=yes \ -u "Web page changed" \ -m "Visit it at $URL" sendEmail -f [email protected] -t [email protected] \ -s smtp.gmail.com:587 -xu [email protected] -xp YOURPASSWORD \ -o tls=yes \ -u "Hello from sendEmail" \ -m "How are you? I'm testing sendEmail from the command line."
Modoboa
How to Set Up a Mail Server with Modoboa on Debian 10
Kolab
Install and Configure Kolab Groupware on Ubuntu 16.04 LTS
Criptext: private email service
- https://www.criptext.com/
- https://www.linuxuprising.com/2018/10/criptext-is-new-encrypted-email-service.html
Zimbra
How to Install Zimbra Collaboration Suite 8.8 on Ubuntu
Temporary/Disposable email
Create A Temporary Email From The Command Line With tmpmail