From owner-freebsd-questions Sun May 20 21: 1:31 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id 67ECD37B424 for ; Sun, 20 May 2001 21:01:26 -0700 (PDT) (envelope-from keramidi@otenet.gr) Received: from hades.hell.gr (patr530-b115.otenet.gr [195.167.121.243]) by mailsrv.otenet.gr (8.11.1/8.11.1) with ESMTP id f4L41LO21879; Mon, 21 May 2001 07:01:21 +0300 (EEST) Received: (from charon@localhost) by hades.hell.gr (8.11.3/8.11.3) id f4L41VD14624; Mon, 21 May 2001 07:01:31 +0300 (EEST) (envelope-from keramidi@otenet.gr) Date: Mon, 21 May 2001 07:01:31 +0300 From: Giorgos Keramidas To: Munish Chopra Cc: freebsd-questions@FreeBSD.ORG Subject: Re: mutt/sendmail/SMTP trouble Message-ID: <20010521070130.A11649@hades.hell.gr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from messiah_man@hotmail.com on Sun, May 20, 2001 at 01:08:53PM +0200 X-PGP-Fingerprint: 3A 75 52 EB F1 58 56 0D - C5 B8 21 B6 1B 5E 4A C2 X-URL: http://students.ceid.upatras.gr/~keramida/index.html 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 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message