From owner-freebsd-questions Tue May 22 8:13:43 2001 Delivered-To: freebsd-questions@freebsd.org Received: from hotmail.com (f25.law4.hotmail.com [216.33.149.25]) by hub.freebsd.org (Postfix) with ESMTP id 1228137B422 for ; Tue, 22 May 2001 08:13:38 -0700 (PDT) (envelope-from messiah_man@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 22 May 2001 08:13:34 -0700 Received: from 62.242.79.117 by lw4fd.law4.hotmail.msn.com with HTTP; Tue, 22 May 2001 15:13:34 GMT X-Originating-IP: [62.242.79.117] From: "Munish Chopra" To: keramidi@otenet.gr Cc: freebsd-questions@FreeBSD.ORG Subject: Re: mutt/sendmail/SMTP trouble Date: Tue, 22 May 2001 17:13:34 +0200 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 22 May 2001 15:13:34.0304 (UTC) FILETIME=[C4BB8600:01C0E2D1] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thanks to everyone for their help, I finally got it working doing the following... In /etc/mail/freebsd.mc, I dumped in : MASQUERADE_AS(runbox.com) FEATURE(masquerade_envelope) FEATURE(masquerade_entire_domain) define(`SMART_HOST', smtp.runbox.com) ..then I did this: cd /usr/share/sendmail/cf/m4 m4 cf.m4 /etc/mail/freebsd.mc > /etc/mail/sendmail.cf ...and the thingy automagically worked. I should say I tried handing sendmail the -f flag in my .muttrc, but I got some kind of child 127 error. Anyway, off to learn more about the beast. -Munish >From: Giorgos Keramidas >To: Munish Chopra >CC: freebsd-questions@FreeBSD.ORG >Subject: Re: mutt/sendmail/SMTP trouble >Date: Mon, 21 May 2001 07:01:31 +0300 > >On Sun, May 20, 2001 at 01:08:53PM +0200, Munish Chopra wrote: > > I finally thought I had mutt handing my outgoing mail to sendmail, which > > would hand it over to an SMTP-server. I'm not sure where things are >going > > wrong, but whenever I send a mail to a server that does reverse DNS, I >get > > the following: > > > > ---snip--- > > > > [-- Type: message/delivery-status, Encoding: 7bit, Size: 0.4K --] > > > > Reporting-MTA: dns; messiah.megadeb.org > > Arrival-Date: Sun, 20 May 2001 12:56:10 +0200 (CEST) > > > > Final-Recipient: RFC822; majordomo@bsd-dk.dk > > Action: failed > > Status: 5.1.8 > > Diagnostic-Code: SMTP; 501 5.1.8 ... Domain >of > > +sender address messiah@messiah.megadeb.org does not exist > > Last-Attempt-Date: Sun, 20 May 2001 12:56:13 +0200 (CEST) > >You have to set Sendmail up to masquerade outgoing mail to have >an 'envelope from' address from a domain that *does* resolve properly. > >There are many ways to do this. One of them, that will masquerade ALL >messages sent from your local Sendmail to an outgoing SMTP is to add to >your >master-config the macros: > > MASQUERADE_AS(`some.domain')dnl > FEATURE(`masquerade_entire_domain')dnl > FEATURE(`masquerade_envelope')dnl > >Then, after the usual sendmail.cf generate, copy to /etc/mail, and restart >of >Sendmail, all the mail going out will be seen as coming from `some.domain'. >A good choise for `some.domain' is the domain of your ISP. > >Another quick way of handling this is to set your MUA up to call sendmail >with >the -f option, and masquerade all the mail sent from this MUA as coming >from >some valid user@domain address. For instance, I had in my .muttrc for >quite >some time the following: > > set sendmail="/usr/sbin/sendmail -oem -oi -f keramidi@otenet.gr" > >Where `keramidi@otenet.gr' is my normal mailbox address at my ISP's mail >servers. This works like a charm, but you might need to add your local >account to the `trusted users' class of Sendmail to inhibit the automatic >generation of an `X-Authentication-Warning' header (which is automagically >inserted in the outgoing mail headers by Sendmail, if some non-trusted user >fires up Sendmail with the -f option to change their envelope from >address). > >--giorgos > _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message