Postfix+DKIM email signatures in amavisd-new

DKIM is a system to verify the sender and integrity of emails.

A DKIM standard (RFC 4871) states the following, which applies to its predecessor DomainKeys (historical: RFC 4870) as well:

DomainKeys Identified Mail (DKIM) defines a mechanism by which email messages can be cryptographically signed, permitting a signing domain to claim responsibility for the introduction of a message into the mail stream. Message recipients can verify the signature by querying the signer’s domain directly to retrieve the appropriate public key, and thereby confirm that the message was attested to by a party in possession of the private key for the signing domain.

The DomainKeys specification was a primary source from which the DomainKeys Identified Mail [DKIM] specification has been derived. The purpose in submitting the RFC 4870 document is as an historical reference for deployed implementations written prior to the DKIM specification.

Implementation and mail flow

              +------+
              |verify|          (verify)
              +--+---+              | (by amavisd and/or SA)
                ^^^ milter          |
incoming:       |||             +---v-------+
  MX ---->  25 smtpd ---> 10024 >           >---> 10025 smtpd -->
                 ||             |           |
  SASL -->  25 smtpd \          |  amavisd  | (notifications)
submission        |   +->       |           >--->_
  mynets->  25 smtpd ---> 10026 >ORIGINATING>---> 10027 smtpd -->
submission            +->       +-------^---+            |
       --> 587 smtpd /  :               |                v milter
                       (convert         |             +------+
                       to 7-bit)      (sign)          | sign |
                                                      +------+

Tasikmalaya earthquake

  Strong earthquake!! The earthquake that occurred on Wednesday (2 / 9) at 14:55 pm magnitude 7.3 on the Richter scale (SR). "Earthquake Center at the South Sea, 104 kilometers southwest of Tasikmalaya," said Head of the Center Volcanology and Geological Hazard Mitigation (PVMBG) Surono based on data from the…

i forgot mysql root password!

With lots of server to maintained, sometimes this occasionally happened. how to reset root password you forgotten root password?? seems like chicken egg problem to me :) Don't worry here's the solutions First of all you will need to ensure that your database is stopped: Now we should start the…

ukulele hero

i've just re-stringing my old, cheap ukulele yesterday :) now, i can continue reciting Jake Shimabukuro's While My Guitar Gently Weeps recital :P i used to be well memorized that song note by note, after few months not touching my ukulele.it's completely forgotten. :D 

auto remote backup with unison

First, we should create ssh auto login when remote generating dsa key you'll be asked for passphrase(twice), just press "enter" now, test ssh autologin ok, it work. now, i want to backup my local data to remote server say, my local data is in /var/data/ (local server), and i want…