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
--
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
pgp00000.pgp
Description: PGP signature
