(((((b[0] * 10) + b[1]) * 60) + (b[2] * 10) + b[3])) * 1000


Convert serial port returned byte to millisecond
I'm looking to replace our current use of an external smtp provider with an in-house installation. It should handle the following situations:


Certain addresses should be forwarded to gmail addresses; we'd like to continue to use gmail as our primary email interface.
Other addresses should be available as pop/imap mailboxes.
Other addresses will be handled programmatically: they'll kick off various tasks, get logged, etc. These addresses should either kick off a process to the handle the email addresses, or should store in an easily processable format.
It should also be fairly easily configurable with domain keys, spf, and anything else it takes to allow email deliverability.


I've used sendmail in the distant past. It seems postfix and exim are the recommended options these days. My main question is: what's the best choice and setup for the forwarding of the addresses to gmail, and for the programmatic access? Is procmail still the way to go or are there better options these days?

We're using linux/ubuntu servers.
