There are three macros that point to your "mail relay" host:
DY<name-of-host>.domain.name
DB<name-of-host>.domain.name
DS # 'smart' relay host - may be null
DG<name-of-host>.domain.name
Thus, if my workstation is gh.well.com and my mail relay is mh.well.com,
the macro in /etc/sendmail.cf would read
# UUCP relay host
DYmh.well.com.
CPUUCP
# BITNET relay host
DBmh.well.com.
CPBITNET
Further on in sendmail.cf, you'll find another macro 'DG':
# gateway out of our domain
DGmh.well.com.
Change all three 'gateway' macros... They should do what you want...
Also, if you want to 'hack' the sendmail source, take a look at main.c
and headers.c ... You'll probably have more luck with headers.c ...
Regards,
Gregory Hicks
> From: "Delmer Harris" <[EMAIL PROTECTED]>
> Date: Wed, 19 Apr 2000 11:02:17 -0500
>
> Simple, non-elegant method:
>
> Turn off 'sendmail' on the Solaris system. You don't need 'sendmail'
> running as a daemon if all you want to do is to just send mail. Read the
> sendmail book to find what configuration file to change so that your
> Solaris system uses the smtp server in the DMZ as its default SMTP host.
> This is ugly but it does work. Sorry I don't remember the exact
> configuration file to change.
>
> "Daniel Crichton" <[EMAIL PROTECTED]> on 04/19/2000 09:29:09 AM
>
> Please respond to [EMAIL PROTECTED]
>
> I've currently got some consultants setting up my Solaris box to enable me
> to send mail to our company mail server for sending out to the internet. At
> the moment the way that they have configured it brings up the host name
> and the current user id in the mail headers before passing to my mail
> server,
> and obviously I would rather hide these. The headers look like:
>
> Received from user@localhost (8.8.8+Solaris/8.8.8) by host.domain.com
>
> where host.domain.com is the name assigned to the Solaris box in it's
> configuration.
>
> The Solaris box is inside my firewall, and the SMTP mail server is in my
> "dmz", so I'd rather have the headers look like the Solaris box is just
> another
> PC mail client on my LAN (which do not add Received headers themselves).
>
> Can anyone give me pointers on the configuration of sendmail (I believe
> this
> is what they are using) on my Solaris box so that it does not create
> headers
> in the message before passing to my SMTP mail server? I have no Unix
> experience which is why consultants are setting it up (and also because
> they own the box, we rent it off them along with the application software
> we
> have running on the system).
>
> Dan
-
[To unsubscribe, send mail to [EMAIL PROTECTED] with
"unsubscribe firewalls" in the body of the message.]