`
sillycat
  • 浏览: 2550972 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

Mail Server Solution(1)List Solutions and Mailin Demo

 
阅读更多
Mail Server Solution(1)List Solutions and Mailin Demo

1. Some Introduction
Mail User Agent(MUA)  ———> Mail Transfer Agent(MTA) / Mail Deliver Agent(MDA) —— internet transfer ——> Mail Transfer Agent(MTA) / Mail Delivery Agent(MDA)

POP3 - Post Office Protocol 3
Allow users fetch emails from the server to local, remove the emails on the remote servers.

SMTP - Simple Mail Transfer Protocol
Send email, SMTP authentication with username and password.

IMAP - Internet Mail Access Protocol


2. Commercial Solution
Mailgun
http://www.mailgun.com/pricing     
Price 10,000 free, next 500,000  100 emails for 5 cents
700,000  $316.50

dyn

SendGrid
https://sendgrid.com/
https://sendgrid.com/docs/API_Reference/Webhooks/parse.html
https://sendgrid.com/blog/sendgrids-parse-api-parsing-incoming-email-is-now-faster-and-easier/
40,000  $9.95 /month
700,000 $399.95 /month
https://sendgrid.com/blog/test-webhooks-ngrok/  test sendgrid with ngrok
Some demos
https://github.com/sendgrid/sendgrid-parse-api-example
https://github.com/sendgrid/sendgrid-parse-demo
https://github.com/phpmasterdotcom/HandleEmailWithSendGrid
https://github.com/theycallmeswift/playlist.sendgriddemos.com

3. Opensource Solution
Apache James
http://www.ibm.com/developerworks/java/library/j-james1/index.html
http://www.ibm.com/developerworks/library/j-james2/

Mailin-nodejs
http://mailin.io/doc

SubEtha SMTP
https://github.com/voodoodyne/subethasmtp

Anti-Spam Solution
http://spamassassin.apache.org/

Haraka
https://haraka.github.io/
https://github.com/jplock/haraka-http-forward

4. ESB Solution
Apache Camel
http://camel.apache.org/
http://camel.apache.org/mail.html
https://github.com/rmortale/EmailService

Mule
https://www.mulesoft.com/

ServiceMix
http://servicemix.apache.org/

5. Try to Use Mailin
> node --version
v0.12.0

> python --version
Python 2.7.9

To handle the spam score computation, Mailin depends on spamassassin and its server interface spamc
> sudo apt-get install spamassassin
> sudo apt-get install spamc

Find the file to enable the anti-spam
> vi /etc/default/spamassassin
# /etc/default/spamassassin
# Duncan Findlay

# WARNING: please read README.spamd before using.
# There may be security risks.

# If you're using systemd (default for jessie), the ENABLED setting is
# not used. Instead, enable spamd by issuing:
# systemctl enable spamassassin.service
# Change to "1" to enable spamd on systems using sysvinit:
ENABLED=0

Install mailin globally
http://community.spiceworks.com/how_to/11-test-email-flow-using-smtp-commands test your smtp


The way I run that, easily switch to root then I can run the command to open port 25. ( or I can consider to run that from authbind http://respectthecode.tumblr.com/post/16461876216/using-authbind-to-run-node-js-on-port-80-with)
>mailin --webhook http://requestb.in/zye6onzy

The URL http://requestb.in/zye6onzy
That is generate from http://requestb.in/

How to use command line to test that
http://community.spiceworks.com/how_to/11-test-email-flow-using-smtp-commands
>telnet ubuntu-pilot 25
Trying 192.168.56.104...
Connected to ubuntu-pilot.
Escape character is '^]'.
220 ubuntu-pilot ESMTP Mailin Smtp Server
ehlo ubuntu-pilot
250-ubuntu-pilot at your service, [::ffff:192.168.56.1]
250-8BITMIME
250-ENHANCEDSTATUSCODES
250 STARTTLS
mail from: <luohuazju@ubuntu-pilot>
250 2.1.0 Ok
rcpt to: <luohuazju@gmail.com>
250 2.1.0 Ok
data
354 End data with <CR><LF>.<CR><LF>
This is a test, please do not response
.
250 2.0.0 Ok: queued as 20a86260136b4828d4c7
quit
221 2.0.0 Goodbye!
Connection closed by foreign host.


References:
JAMES
http://alikevin2011.iteye.com/blog/1174140
http://stackoverflow.com/questions/26252000/create-user-accounts-in-apache-james-with-java-api

MX Record
https://en.wikipedia.org/wiki/MX_record
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics