Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

AIX and sendmail without DNS

257 views
Skip to first unread message

Jan Israelsson

unread,
Mar 21, 2001, 2:40:23 AM3/21/01
to
Hi,
I need some help regarding AIX (4.3.3.10) and sendmail, my problem is that I
must configure sendmail to forward emails (not local mail like root@system
but external like user...@company.com) to a specific mail-gateway
(mailserver). Here is the situation:

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.


Roland Schmidt

unread,
Mar 21, 2001, 4:11:41 AM3/21/01
to
Hi Jan,

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:

schmidtr.vcf

bob

unread,
Mar 21, 2001, 4:23:28 AM3/21/01
to
Make the following settings in the /etc/sendmail.cf file.

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...

Chuck DeBault

unread,
Mar 21, 2001, 7:37:18 AM3/21/01
to
Does the .cf file have to be compiled or anything to work? I am also having the
same typr of problem.

Chuck DeBault

unread,
Mar 21, 2001, 7:57:27 AM3/21/01
to
Or what is the best way to test and see if it is relaying?

Tom Hoffmann

unread,
Mar 21, 2001, 7:04:46 PM3/21/01
to
Better yet, rebuild the sendmail.cf file using m4. Add the line:

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.

0 new messages