Hadron Quark <[EMAIL PROTECTED]> writes:
> But this still begs the question : how to configure gnus to > (preferably using procmail rules) palm off emails destined to local users > and NOT to send them off to the smtp server I am using from smtpmail. > I don't use gnus for mail, but rather VM. With vm, there is an add-on package called vm-pcrisis, which I *think* allows vm to use different smtp servers based on criteria like the from address being used or the domain mail is being sent to. The main objective of this package is to allow you to use one configuration to represent yourself as different people (i.e. different mail addresses). It might be worth having a look at this package to get some ideas. Off the top of my head - - Write a function which will set the smtpmail-smtp-server variable to an appropriate server based on the recipient address i.e. if it is localhost or does not have a domain attached, use the local smtp server, otherwise send it to the remote smtp server. - Have this function then call the smtp-mail-send-it function as its last form. - Set this function as the value for message-sned-mail-function Another alternative would be to use defadvice around smtpmail-send-it using the 'before form to set the smtpmail-smtp-server variable before the function proper is called. This would have the possible advantage of working regardless of the mail sending interface used (i.e. send-mail-function or message-send-mail-function). HTH Tim -- tcross (at) rapttech dot com dot au _______________________________________________ info-gnus-english mailing list info-gnus-english@gnu.org http://lists.gnu.org/mailman/listinfo/info-gnus-english