?
Solved

smail (sendmail) setup

Posted on 1998-09-04
5
Medium Priority
?
301 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 600 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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Fine Tune your automatic Updates for Ubuntu / Debian
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month14 days, 1 hour left to enroll

801 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