Manoj Naik wrote:
> I want to use mutt to send mail to non-local SMTP server.
Mutt does not do that. What it will do is call a commandline
program, (usually sendmail,) and feed it the complete message,
header and body. Generally, that commandline program called by
Mutt will then send the message out over SMTP, but not
necessarily. Whatever it does, though, is independent of Mutt.
Mutt leaves transporting mail to the mail transport agent, as it
should.
> I have read FAQ which says it is not mutts job and I have to configyre the
> MTa for this.
Yep.
> Can anybody help me out on how to configure the MTA like sendmail/null
> mailer to do this and any changes in mutt configuration required for the
> purpose.
First of all, your $sendmail variable must be correct in the
~/.muttrc file. This is the command Mutt will execute and to
which it will feed the message. For example:
set sendmail="/usr/sbin/sendmail -oem -oi"
I don't know about nullmailer, but for sendmail, include this in
your sendmail.mc, then regenerate sendmail.cf through the m4
macro processor:
define(`SMART_HOST', `the.remote.smtp.server')
Then, in your ~/.muttrc file (or some file sourced by ~/.muttrc)
you'll probably be best served to set the $envelope_from
variable.
set envelope_from
This will cause Mutt to derive the envelope sender from the
"From:" header.
Good luck!
-- Mr. Wade
--
Linux: The Choice of the GNU Generation