[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

smail (sendmail) setup

Posted on 1998-09-04
5
Medium Priority
?
303 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

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
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é.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
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.
Suggested Courses

656 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