On 15/03/02 Kanagesh did speaketh: > Hi, > > I'm using mutt to connect to a mail server. I can access my mail box and > receive all mails, but when I try to send a mail, I am not able to. I guess > mutt uses sendmail in the local system to SEND mails and POP to access mails > from the server (am I right??) . I am able to connect to the server > successfully and access all my mails. Initially, mutt was assuming the FROM > address as [EMAIL PROTECTED] (but it should have been > [EMAIL PROTECTED] ). I added "hclinfinet.com" to the "from" field of > .muttrc, but that hasn't helped sending a mail out of my system. > > any help would be great. thanks in advance.
Mutt expects to use sendmail to send it's email, yes. So, this is primarily a sendmail configuration problem, not a problem in Mutt. You can test sendmail directly to see what it does: [msoulier@tigger msoulier]$ /usr/sbin/sendmail [EMAIL PROTECTED] testing Note that I hit Ctrl-D at the end to send an EOF char to sendmail. This message now arrives in my inbox successfully, and even though I sent it from the command-line as "msoulier", the From: field is "[EMAIL PROTECTED]", because I have instructed the mail server to perform that mapping for me. I'm actually using Exim, not Sendmail. I assume you're using sendmail? Is your sendmail configured to deliver mail to internet hosts? If it's just the From: field you need to fix, that shouldn't be a problem. In the sendmail.mc file, put FEATURE(`masquerade_envelope')dnl MASQUERADE_AS(your.domain.com)dnl Regenerate with m4 ../m4/cf.m4 sendmail.mc > sendmail.cf (or add include(`../m4/cf.m4') at the top) Install your new sendmail.cf and restart sendmail. Mike -- Michael P. Soulier <[EMAIL PROTECTED]>, GnuPG pub key: 5BC8BE08 "...the word HACK is used as a verb to indicate a massive amount of nerd-like effort." -Harley Hahn, A Student's Guide to Unix
msg25560/pgp00000.pgp
Description: PGP signature