SMTP Server Used?

What sort of an SMTP server do most people use around here for sending
emails?

I ask because I would like to look into this: an SMTP server that is not
just used as a relay to send outgoing messages, but a server which can
accept incoming messages, process, filter and assign email addresses
programmatic ally using ROR naturally... would anyone have any
recommendations?