Solved

smail (sendmail) setup

Posted on 1998-09-04
5
294 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
ID: 1630625
Any takers? I'm willing to raise the points even further !!
0
 

Expert Comment

by:hpaul
ID: 1630626
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
ID: 1630627
sendmail would also be fine. PLease go for it.
0
 

Accepted Solution

by:
hpaul earned 150 total points
ID: 1630628
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
ID: 1630629
Excuse my ignorance but how do you turn DNS on/off ?

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
iptables limit connection per ip correct way ? 2 93
Virtual Box issue 6 85
bash script question (chmod) 10 56
High Available Storage based on linux 6 68
In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.

910 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

20 Experts available now in Live!

Get 1:1 Help Now