• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 306
  • Last Modified:

smail (sendmail) setup

I've my Linux box on the local network (genx) inside the firewall and I've a mail server(polaris) sitting outside the firewall. Assuming I have access to polaris through the firewall, how do I setup my 'smail' on genx so that it
can use polaris to communicate with the outside world (only for sending mails). There is NO DNS server and host lookup is all done through either the 'yp' NIS services or the /etc/hosts file on each individual machine. (I'm trying to use elm for email, if that matters).
I'm running RH4.2, kernel 2.0.30 on a Cyrix-150MHz with 96M RAM and 72M swap. And smail-, elm-2.4.25-7.

Any suggestions ?

My /etc/smail/config has
#smart_transport=uux            # transport
#smart_path=uunet               # smart host's uucp name
smart_path=polaris               # smart host's hostname
#smart_user=root                 # Forward to another user
#smart_user=$user@mailhub.mydomain.com  # Forward to same user at another host

/etc/hosts has genx    genx.nspco.com              #mail client  polaris polaris.nspco.com nspco.com #mail host

/etc/resolv.conf has
domain nspco.com
search nspco.com
nameserver polaris.nspco.com
  • 3
  • 2
1 Solution
nkapoorAuthor Commented:
Any takers? I'm willing to raise the points even further !!
I'm not sure how to do it in smail, but I could probably manage in sendmail.  Let me know if you want me to give it a shot.
nkapoorAuthor Commented:
sendmail would also be fine. PLease go for it.
1. Turn dns off in the services files if you haven't already done
2. Compile and install sendmail-8.9.1
3. Put the following two lines into a file called nkapoor.mc
define(`SMART_HOST', `polaris.nspco.com')dnl
4. Run the following command:
m4 sendmail-8.9.1/cf/m4/cf.m4 nkapoor.mc > /etc/sendmail.cf
5. start sendmail
6. Let me know how it works.
nkapoorAuthor Commented:
Excuse my ignorance but how do you turn DNS on/off ?

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now