> 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 >> [EMAIL PROTECTED] instead of [EMAIL PROTECTED] > >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') > > +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
Thank you *very* much Matthew (and thanks also to Stacey, Jamie and Bill) !!! :-) Though the FreeBSD manual is quite good as manulas go, this particular part about masquerading I found a little bit confusing. But Matthew's explanation made it all clear to me. Again, thanks! Kind Regards /Thomas _______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"