Date: Sat, 5 Jul 2003 13:29:39 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Thomas Beutler <storugglan@telia.com> Cc: freebsd-questions@freebsd.org Subject: Re: Need help with a strange mail/domain problem! Message-ID: <20030705122939.GA30058@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <003501c342ec$788eb7c0$9700a8c0@beutler.se> References: <003501c342ec$788eb7c0$9700a8c0@beutler.se>
next in thread | previous in thread | raw e-mail | index | archive | help
--VS++wcV0S1rZb1Fb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jul 05, 2003 at 01:56:25PM +0200, Thomas Beutler wrote: > The server accepts incoming mail all right - no problems there... BUT... > ...whatever I do, all outgoing mail get the address > user@visthusboden.beutler.se instead of user@beutler.se You need to build yourself a customised sendmail configuration, which you can do in the following way. % cd /etc/mail # make (# here implies you'll need root privileges to do this command) This will create a file named after your host (referred to as `hostname`.mc) which can be processed through the macro processor m4(1) in order to generate a sendmail configuration file. Now, edit the `hostname`.mc file and add lines according to the following patch: --- visthusboden.beutler.se.mc.old Sat Jul 5 13:22:31 2003 +++ visthusboden.beutler.se.mc Sat Jul 5 13:25:09 2003 @@ -54,6 +54,12 @@ FEATURE(mailertable, `hash -o /etc/mail/mailertable') FEATURE(virtusertable, `hash -o /etc/mail/virtusertable') =20 +FEATURE(allmasquerade)dnl +FEATURE(masquerade_envelope)dnl +FEATURE(masquerade_entire_domain)dnl +MASQUERADE_AS(`beutler.se')dnl +MASQUERADE_DOMAIN(`beutler.se')dnl + dnl Uncomment to allow relaying based on your MX records. dnl NOTE: This can allow sites to use your server as a backup MX without dnl your permission. Now, process the `hostname`.mc file into a sendmail configuration file, install it as /etc/mail/sendmail.cf and restart sendmail so it picks up the changes. # make all # make install # make restart_mta Et voila. Read the file /usr/share/sendmail/cf/README for details about how to generate a sendmail configuration. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --VS++wcV0S1rZb1Fb Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/BsSzdtESqEQa7a0RAorjAJ9mSexNWlWxEHSv474Y/DLKheI77gCcDMXc 26RkpKOAqGn1k0AFOsH4v/Q= =edvI -----END PGP SIGNATURE----- --VS++wcV0S1rZb1Fb--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030705122939.GA30058>