The server (running AIX 4.3.3.10) do not have any DNS configured since there
are none available in this particular situation, therefore all local mail
works fine but external mail obviusly wont work since there is no name
resolution available. The hostname is configured and the FQDN should be (if
there had existed a DNS-server) hostname.mydomain.com, the mail should go to
mailgw.mydomain.com (I have its IP-adress and I am of course able to ping
it). What I need to acomplish is that all non-local mail is forwarded to
this gateway without any name-resolution taking place locally.
I have been reading about sendmail and I have tried editing sendmail.cf but
without luck, I have spent to many hours trying to solve this problem and
since I am not a AIX/sendmail expert I really need some help. If possible
please take it step by step so I understand what I need to do to get this to
work.
Please advice.
it's very simple if you only wish the transfer all your mails from your AIX
server to a mail server to send them from this one.
Look into /etc/sendmail.cf for the following section and change/insert only the
'DS'-statement as described below.
# "Smart" relay host (may be null)
# Relay host to forward outgoing mail not in the local domain to.
# To forward ALL mail to this relay host, uncomment the appropriate
# rule in ruleset 0, as indicated by the ruleset's comments.
#DSmailer:relayhostname
DSxyz.com
|
|--> xyz.com is the hostname of your mail server.
this address must be the first name in the /etc/hosts-entry
Hope this helps,
Bye
Roland
Jan Israelsson schrieb:
Dw # local hostname
Dm # local domain name
Cwlocalhost
DS # something it can relay off of
voila
brett
In article <999lt1$qlg$1...@sp15at20.hursley.ibm.com>,
janisr...@hotmail.com says...
define(`SMART_HOST', host.domain.com)dnl
to the sendmail.mc file and run m4 to create a new sendmail.cf file.
While many will argue that the end result is the same, since this
builds the DShost.domain.com line in the sendmail.cf, editing the
sendmail.cf file directly can burn you in the long run. Every person
who works extensively with sendmail will give this advice. Building a
new sendmail.cf file is too simple a process to take shortcuts.