sendmail domain configuration

Matthew Seaman m.seaman at infracaninophile.co.uk
Mon Oct 19 19:55:52 UTC 2009


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 259 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20091019/c9b8ada1/signature.pgp


More information about the freebsd-questions mailing list