Date: Mon, 19 Oct 2009 20:55:35 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Free BSD Questions list <freebsd-questions@freebsd.org> Subject: Re: sendmail domain configuration Message-ID: <4ADCC437.6030304@infracaninophile.co.uk> In-Reply-To: <20091019193203.GA6357@teddy.fas.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
stan wrote:
> I am trying to work around some design issues. Some of out FreeBSD macines
> must live in a made up domain. As a result from these machines gtes
> discarded by an sensible mail handling system.
>
> I have solved this problem on some Soalris machines that also si`uffer from
> this same design by settting the doamin macro in thier sendmail.cf as
> follows:
>
> Dj$w.realdomain.com
>
> OI know that in FreeBSD I should not edit sendmail.cf directly, but instead
> should edit the appropriate .mc file, and remake the .cf file. But I cannot
> find the documentation as to how to set this particular sendmail macro from
> the .mc file
>
> Can anyou give me some guidance here?
>
/usr/share/sendmail/cf/README documents what you can put into a sendmail .mc
file. The specific thing you want is:
define(`confDOMAIN_NAME', `$w.realdomain.com')dnl
Add this to the `hostname`.mc file, and then just type 'make' in /etc/mail to generate a .cf file from it. To generate and install that .cf file and restart sendmail to use it all in one, just do:
# make all install restart
Cheers,
Matthew
--
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
Kent, CT11 9PW
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.13 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEAREIAAYFAkrcxD8ACgkQ8Mjk52CukIz7GgCeNfRArk+HmZBBcOLYYXbbm38B
aRMAn1KLalSdEqonQriAw3/5ae/M0MiF
=5DpU
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4ADCC437.6030304>
