Difference between revisions of "Email"
(12 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
== Users == | == Users == | ||
− | Access mail in your web browser by visiting http://mail.{{PrimaryDomainName}} <ref>This is | + | Access mail in your web browser by visiting http://mail.{{PrimaryDomainName}} <ref>This is easy to setup by creating a cname (alias) record in your DNS</ref> |
== Security / Privacy == | == Security / Privacy == | ||
Line 9: | Line 9: | ||
== HOWTO == | == HOWTO == | ||
=== My website needs a contact form === | === My website needs a contact form === | ||
− | If you want to add email to your PHP application or website, then use | + | If you want to add email to your PHP application or website, then use https://github.com/PHPMailer/PHPMailer (or many fine alternatives). Don't use PHP's mail function unless you are really going for basic messaging to yourself only. And, you can use Google's SMTP server to send so you don't have to get blocked and deal with all kinds of other crap. |
− | Make sure your server IP is not blacklisted or firewalled. | + | Make sure your server IP is not blacklisted or firewalled. Telnet to Google: |
<source lang="bash"> | <source lang="bash"> | ||
telnet smtp.gmail.com 25 | telnet smtp.gmail.com 25 | ||
Line 31: | Line 31: | ||
telnet> quit | telnet> quit | ||
Connection closed. | Connection closed. | ||
+ | |||
</pre> | </pre> | ||
+ | |||
Check your server IP with a tool like http://mxtoolbox.com/blacklists.aspx | Check your server IP with a tool like http://mxtoolbox.com/blacklists.aspx | ||
+ | |||
=== My wiki won't send email === | === My wiki won't send email === | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
If your application already has email capability, but it won't send, then turn on the mail_log feature in php.ini and check that sendmail/postfix is installed on your system. You might start with <code>sudo apt-get install mailutils</code>. If on AWS or datacenter, you can set up as an internet site and be done. If you are behind a consumer broadband IP, you will probably need to setup a 'smarthosted' site and use (your own) IMAP credentials to send email through another provider. | If your application already has email capability, but it won't send, then turn on the mail_log feature in php.ini and check that sendmail/postfix is installed on your system. You might start with <code>sudo apt-get install mailutils</code>. If on AWS or datacenter, you can set up as an internet site and be done. If you are behind a consumer broadband IP, you will probably need to setup a 'smarthosted' site and use (your own) IMAP credentials to send email through another provider. | ||
=== I need a server to send email === | === I need a server to send email === | ||
− | You can setup [[Postfix]] to send as an Internet Site. And you can even use it to send mail through an external service like GMail (called 'smart hosting'). Once you do, you certainly need to add or reconfigure your domains | + | You can setup [[Postfix]] to send as an Internet Site. And you can even use it to send mail through an external service like GMail (called 'smart hosting'). Once you do, you certainly need to add or reconfigure your domains <abbr title="Sender Policy Framework">SPF</abbr> record in [[DNS]]<ref>https://www.digitalocean.com/community/tutorials/how-to-use-an-spf-record-to-prevent-spoofing-improve-e-mail-reliability</ref>. If you just want to use the MX records and A records to control who is valid, then <code>"v=spf1 mx a -all"</code> is the record that works. This [http://www.spfwizard.net/ wizard] can help. Once you're done, you can check on things with |
+ | <code>nslookup -query=mx</code> | ||
− | + | == Tools == | |
− | + | # http://mxtoolbox.com/ | |
− | |||
− | |||
− | |||
− | + | == Issues == | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Users can be blocked for going over usage limits (messages per day, recipients per message, etc) | Users can be blocked for going over usage limits (messages per day, recipients per message, etc) | ||
https://support.google.com/a/answer/166852?hl=en | https://support.google.com/a/answer/166852?hl=en | ||
− | |||
− | |||
{{References}} | {{References}} |
Revision as of 12:56, 11 August 2015
eQuality Technology uses Google Apps For Your Domain (GAFYD) also referred to as GoogleApps, which includes mail services. eQuality Technology is a Google Apps consultant and is happy to help you with your Email services. See the Email Marketing page for information pertinent to managing things like newsletters, mailing lists, and bulk email marketing.
Contents
Users[edit | edit source]
Access mail in your web browser by visiting http://mail.eQuality-Tech.com [1]
Security / Privacy[edit | edit source]
You can't have privacy in your email unless you use a service like Kolab Now which is located outside the U.S. and uses encryption of the contents. [2]
HOWTO[edit | edit source]
My website needs a contact form[edit | edit source]
If you want to add email to your PHP application or website, then use https://github.com/PHPMailer/PHPMailer (or many fine alternatives). Don't use PHP's mail function unless you are really going for basic messaging to yourself only. And, you can use Google's SMTP server to send so you don't have to get blocked and deal with all kinds of other crap.
Make sure your server IP is not blacklisted or firewalled. Telnet to Google:
telnet smtp.gmail.com 25
# then
^] # get a telnet prompt with the Ctrl key plus right square bracket key
quit [enter]
So a successful test ends up looking like this:
$ telnet smtp.gmail.com 25 Trying 2607:f8b0:400d:c03::6d... Trying 64.233.171.108... Connected to smtp.gmail.com. Escape character is '^]'. 220 mx.google.com ESMTP b16sm2116075qga.48 - gsmtp ^] telnet> quit Connection closed.
Check your server IP with a tool like http://mxtoolbox.com/blacklists.aspx
My wiki won't send email[edit | edit source]
If your application already has email capability, but it won't send, then turn on the mail_log feature in php.ini and check that sendmail/postfix is installed on your system. You might start with sudo apt-get install mailutils
. If on AWS or datacenter, you can set up as an internet site and be done. If you are behind a consumer broadband IP, you will probably need to setup a 'smarthosted' site and use (your own) IMAP credentials to send email through another provider.
I need a server to send email[edit | edit source]
You can setup Postfix to send as an Internet Site. And you can even use it to send mail through an external service like GMail (called 'smart hosting'). Once you do, you certainly need to add or reconfigure your domains SPF record in DNS[3]. If you just want to use the MX records and A records to control who is valid, then "v=spf1 mx a -all"
is the record that works. This wizard can help. Once you're done, you can check on things with
nslookup -query=mx
Tools[edit | edit source]
Issues[edit | edit source]
Users can be blocked for going over usage limits (messages per day, recipients per message, etc) https://support.google.com/a/answer/166852?hl=en
References[edit source]
- ↑ This is easy to setup by creating a cname (alias) record in your DNS
- ↑ http://lavabit.com/
- ↑ https://www.digitalocean.com/community/tutorials/how-to-use-an-spf-record-to-prevent-spoofing-improve-e-mail-reliability