Calibre

Calibre ebook server

ref: How To Create a Calibre Ebook Server on Ubuntu 14.04

install Calibre on a Ubuntu server

sending books to kindle

ref: [Running Calibre server as a news server - MobileRead Forums](http://www.mobileread.com/forums/showthread.php?t=210327)

$ calibre-smtp -r smtp.gmail.com -u user@gmail.com -p 'yourpass' --port 587 -e TLS  user@gmail.com user@kindle.com 'command line sending test' -a 'a.jpg' -s 'Testing - a image'

Traceback (most recent call last):
  File "site.py", line 66, in main
  File "site-packages/calibre/utils/smtp.py", line 268, in main
  File "site-packages/calibre/utils/smtp.py", line 135, in sendmail
  File "site-packages/calibre/utils/smtplib.py", line 617, in login
SMTPAuthenticationError: (534, '5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbte\n5.7.14 fvTi1_jCLaDAkvaHHV2eRHqnQI52T_AFmuudtnHK7QAuR1qwOo7A6iCc_ihR3RzMEj02Kw\n5.7.14 8bSb4eWOD5LyCejYdfTWAiMT6hOgx5QldR1kaH20h0-JsUzTaLlzBfrHeAHpVVp2c3kc_c\n5.7.14 Xn1GMWviyRdfaQAQ_o5ONQMnFCm4jK5FEEb4-4mqITnJZ52utoOF15uf4JTZt2d6DwFm49\n5.7.14 OWCIjZV1QRl8c70_IOwY1KLWTu6og> Please log in via your web browser and\n5.7.14 then try again.\n5.7.14  Learn more at\n5.7.14  https://support.google.com/mail/answer/78754 to9sm24538347pab.27 - gsmtp')

when using calibre-smtp to sending emails, you may encounter a SMTPAuthenticationError,

  1. go to the following pages to clear captcha and update the Less secure apps setting, ref: stackoverflow google smtp error

    https://support.google.com/mail/answer/14257
    http://www.google.com/accounts/DisplayUnlockCaptcha https://www.google.com/settings/security/lesssecureapps

  2. make sure the 'SENDER' or 'FROM' header is like 'lee@localhost', not the SMTP relay server account