Solved

smail (sendmail) setup

Posted on 1998-09-04
5
293 Views
Last Modified: 2013-12-15
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-3.2.0.92-1, elm-2.4.25-7.

Any suggestions ?
Nishi

My /etc/smail/config has
domains=nspco.com
#auth_domains=mydomain.com
#uucp_name=myuucpname
#more_hostnames=mydomain.com
#smart_transport=uux            # transport
#smart_path=uunet               # smart host's uucp name
smart_transport=smtp
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
#visible_name=mydomain.com

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

/etc/resolv.conf has
domain nspco.com
search nspco.com
nameserver polaris.nspco.com
0
Comment
Question by:nkapoor
  • 3
  • 2
5 Comments
 

Author Comment

by:nkapoor
Comment Utility
Any takers? I'm willing to raise the points even further !!
0
 

Expert Comment

by:hpaul
Comment Utility
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.
0
 

Author Comment

by:nkapoor
Comment Utility
sendmail would also be fine. PLease go for it.
0
 

Accepted Solution

by:
hpaul earned 150 total points
Comment Utility
1. Turn dns off in the services files if you haven't already done
   so.
2. Compile and install sendmail-8.9.1
3. Put the following two lines into a file called nkapoor.mc
OSTYPE(linux)dnl
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.
0
 

Author Comment

by:nkapoor
Comment Utility
Excuse my ignorance but how do you turn DNS on/off ?

0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now