Richard Riley writes: > > my advice would be to use nognus and the built in multi smtp support. > > in your .authinfo: > > something like: > > machine smtp.gmail.com login accid1 port 587 password password1 > machine smtp.gmail.com login accid2 port 587 password password2 > > In your gnus posting styles for the group in question:- > > (X-Message-SMTP-Method "smtp smtp.gmail.com 587 acc1") > > Its there somewhere in the gnus manual. But googling for > x-message-smtp-method will show a previous thread on this. > > regards > > r. Hi. I took your advice and it works great. Thanks! Now my gnus init file look alot cleaner. I was able to discard (defvar smtp-accounts ...) (defadvice smtpmail-via-smtp ... ) (defun change-smtp () ... ) Just for those who tackle with the same problem. My updated gnus-posting-style looks like this: ;; Let Gnus change the "From:" line by looking at current group we are ;; in. (setq gnus-posting-styles '(("account1" (address "account1@gmail.com") (name "myname") (X-Message-SMTP-Method "smtp smtp.gmail.com 587 account1@gmail.com")) ("account2" (address "account2@gmail.com") (name "myname") (X-Message-SMTP-Method "smtp smtp.gmail.com 587 account2@gmail.com")) ("account3" (address "account3@gmail.com") (name "myname") (X-Message-SMTP-Method "smtp smtp.gmail.com 587 account3@gmail.com")) ("account4" (address "account4@gmail.com") (name "myname") (X-Message-SMTP-Method "smtp smtp.gmail.com 587 chino.toru@gmail.com")) ("account5" (address "account5@hot.ee") (name "myname") (X-Message-SMTP-Method "smtp mail.hot.ee 25 account5")) )) mihkel