Solved

smail (sendmail) setup

Posted on 1998-09-04
5
297 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

776 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