From owner-freebsd-questions Sat Aug 14 12:49:14 1999 Delivered-To: freebsd-questions@freebsd.org Received: from pop.uniserve.com (pop.uniserve.com [204.244.156.3]) by hub.freebsd.org (Postfix) with SMTP id EE2C714EDC for ; Sat, 14 Aug 1999 12:49:10 -0700 (PDT) (envelope-from sreid@sea-to-sky.net) Received: from squ1a12.dial.uniserve.ca (grok.localnet) [204.244.90.76] by pop.uniserve.com with esmtp (Exim 1.82 #4) id 11Fjm9-0003d3-00; Sat, 14 Aug 1999 12:47:33 -0700 Received: by grok.localnet (Postfix, from userid 1000) id 043DC212ECD; Sat, 14 Aug 1999 12:48:05 -0700 (PDT) Date: Sat, 14 Aug 1999 12:48:05 -0700 From: Steve To: Christopher Michaels Cc: "'vallo@matti.ee'" , Steve Reid , freebsd-questions@FreeBSD.ORG Subject: Re: Sendmail, dialup connection, multiple users. Message-ID: <19990814124805.C488@grok.localnet> References: <6C37EE640B78D2118D2F00A0C90FCB4401105AAD@site2s1> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <6C37EE640B78D2118D2F00A0C90FCB4401105AAD@site2s1>; from Christopher Michaels on Wed, Jul 14, 1999 at 04:19:21PM -0400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I think I've finally solved my problem. I'm posting it now so the solution gets into the archives. I got around the "sendmail.cf" business by installing Postfix, which is pretty much a drop-in replacement except for the human-readable config files (yay!). From there, "man 5 canonical" and sample-canonical.cf gave me what I needed to do the address rewriting stuff. This solved the "Sender domain must exist" problems. Some mail systems, including hub.freebsd.org, continued to refuse mail saying ": Host not found". I solved this by setting postfix to use my ISP's mail server as a relay. The result: Other systems accept connections from my ISP's mail server because it has a real domain name, and they accept my emails because postfix rewrites "sender" to my real address. I think. If you know what to look for, please take a peek at my mail headers. If it's getting through to freebsd-questions, though, it's an improvement. :) In my search for a solution I saw many posts archived on the web from people with similar problems, but with no answers. So I'll post step-by-step instructions here: 1- Install Postfix. Using the FreeBSD ports collection this is easy: cd /usr/ports/mail/postfix && make && make install && make clean Next reboot it warned about missing directories, but created them and continued on it's way. 2- Add these lines to /usr/local/etc/postfix/main.cf: sender_canonical_maps = hash:/usr/local/etc/postfix/sender_canonical relayhost = mail.myserviceprovider.com 3- Add lines like this to /usr/local/etc/postfix/sender_canonical: jane jdoe@janesaddress.com 4- postmap /usr/local/etc/postfix/sender_canonical && postfix reload 5- Test it out. Mail an address that has strict sanity checking, which you couldn't mail before (eg. majordomo@freebsd.org). HTH. :) Keywords: "501 Sender domain must exist" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message