Any Sendmail guru's?
Richard Smith
rdls at rdls.net
Tue Aug 29 09:04:52 BST 2000
Kirill Ponomarew wrote:
>
> On Sun, 27 Aug 2000, Dan Cuthbert wrote:
>
> |Hi
> |anyone out there fantastic with sendmail?
> |i have setup sendmail 8.11, configured it as said in the howto, yet
> |when i send a mail it uses the hostname and domain name of my box, not
> |the mailaddress (afx.org.uk)
> |this is what i changed as per instructed...
> |
> |# my official domain name
> |# ... define this only if sendmail cannot automatically determine your
> |domain
> |#Djafx.org.uk
> |# "Smart" relay host (may be null)
> |DSrelay.clara.net
> |
> |# who I masquerade as (null for no masquerading) (see also $=M)
> |DMafx.org.uk
> |
> |hmm this has me stumped!
> |
> |Cheers for any help!
> |
> |Dan
>
> did you use your .mc file ?
> If you want to change your domain name - try MASQUERADE feature
> add the following line in your .mc file
> MASQUERADE_DOMAIN(domain's_name_you_want)
> FEATURE(`masquerade_envelope')
> FEATURE(`allmasquerade')
> rebuild .mc file with m4
> m4 sendmail.cf< sendmail.mc
>
If you want outgoing mail to be rewritten as if from `afx.org.uk', you
will need to add:
MASQUERADE_AS(afx.org.uk)dnl
to your .mc file. The file `/usr/src/etc/sendmail/freebsd.mc' is a good
starting point. To compile it you need something like:
m4 -D_CF_DIR_=/usr/src/contrib/sendmail/cf/
/usr/src/contrib/sendmail/cf/m4/cf.m4 your.mc > sendmail.cf
The file `/usr/src/contrib/sendmail/cf/README' is a good reference.
Richard.
More information about the Ukfreebsd
mailing list