Estou usando msmtp e esta configuração e alguns gnus-posting-styles
com sucesso no Emacs 24.1.1.
(defun cg-feed-msmtp ()
(if (message-mail-p)
(save-excursion
(let* ((from
(save-restriction
(message-narrow-to-headers)
(message-fetch-field "from")))
(account
(cond
;; I use email address as account label in ~/.msmtprc
((string-match "[email protected]" from) "example1")
;; Add more string-match lines for your email accounts
((string-match "[email protected]" from) "example2"))))
(setq message-sendmail-extra-arguments (list '"-a" account))))))
(setq message-sendmail-envelope-from 'header)
(add-hook 'message-send-mail-hook 'cg-feed-msmtp)
(setq gnus-posting-styles
'(("nnimap\+EXAMPLE2:INBOX"
(address "[email protected]"))))