Solved

Sendmail Remote Protocol Error

Posted on 1998-11-25
9
658 Views
Last Modified: 2013-12-16
I am installing sendmail for the first time. I sent email from one user id on one workstation to the other workstation. The source workstation is running the standard solaris sendmail and the destination workstation is running 8.9.1 with a default configuration file.

When sending email from the source workstation, I get my email returned with a "Remote Protocol Error". If on the destination file I change back to the standard sendmail then the email makes it there.

How can I fix this ?

0
Comment
Question by:andrewmchorney
  • 6
  • 3
9 Comments
 
LVL 4

Expert Comment

by:davidmwilliams
ID: 1812415
 It's hard to say precisely what the problem is without looking into it, but clearly there is some mismatching of sendmails and also their cf files.
  What might be safest and best for you, is to upgrade both workstations to the latest sendmail, and build a new cf file, for this version of sendmail.

Here's (hopefully) simple instructions ...

1/ Use an ftp program to get the latest sendmail (8.9.1) from ftp.sendmail.org, or get it from the Web at www.sendmail.org 

2/ Put this into a suitable directory, say /usr/local/src by typing

  mv sendmail.8.9.1.tar.gz /usr/local/src

(replace sendmail.8.9.1.tar.gz with the filename you actually download)

3/ uncompress this archive

  gunzip sendmail.8.9.1.tar.gz

4/ extract this archive

  tar xf sendmail.8.9.1.tar

5/ build sendmail ...

  cd sendmail-8.9.1/src
  sh Build

6/ Put the sendmail binary where it should be

  mv obj*/sendmail /usr/lib/sendmail

7/ set its protections

  chmod 4551 /usr/lib/sendmail
  chown root /usr/lib/sendmail
  chgrp other /usr/lib/sendmail

8/ Go to the configuration file directory

  cd ../cf

9/ Make a configuration file called my.mc using an editor, that says ..

OSTYPE(solaris)dnl
DOMAIN(generic)
MAILER(local)
MAILER(smtp)

10/ Build it, using the following -

  m4 m4/cf.m4 my.mc > sendmail.cf

11/ Put it in place

  mv sendmail.cf /etc/sendmail.cf
  chmod 644 /etc/sendmail.cf
  chown root /etc/sendmail.cf
  chgrp other /etc/sendmail.cf

12/ Run it ...

  /usr/lib/sendmail -bd -q15m
0
 

Author Comment

by:andrewmchorney
ID: 1812416
I have already done the build. I was launching sendmail from a different directory. I will do the m4 stuff on Monday morning and test sending mail from one user on one workstation to another user on the other workstation and the reverse.


0
 

Author Comment

by:andrewmchorney
ID: 1812417
I installed the new .cf file on the new workstation. The remote protocol error indicates says "Sender domain must exist". How can I fix this ?

Andrew
0
ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

 

Author Comment

by:andrewmchorney
ID: 1812418
David

I got sendmail to receive and send mail. The reason I am not accepting the answer is that there is an error in step 10 of the above instructions. I worked around it to get the confuration working.

Errors :

1. The OSTYPE ( from step 9 ) should be solaris2. Otherwise it will look for the file solaris.m4 in the ostype directory.

2. The file cf.m4 has a line that defines _CF_DIR_ to be `../'  should be `' or else the ../m4/cfhead.m4 file cannot be found. Do you see an easier way to execute lines 9 and 10.

Andrew


0
 

Author Comment

by:andrewmchorney
ID: 1812419
Line 8 should be changed to cd ../cf/m4

Line 10 should be m4 cd.m4 my.mc > sendmail.cf

Otherwise there will be an error in step 10.
0
 
LVL 4

Expert Comment

by:davidmwilliams
ID: 1812420
 Thanks for pointing out the errors, sorry about that !  Glad you were able to figure it out ok.
0
 

Author Comment

by:andrewmchorney
ID: 1812421
David

If you want credit for the answer please indicate you have an answer and  I will deem it fix with the noted changes.

Andrew
0
 
LVL 4

Accepted Solution

by:
davidmwilliams earned 20 total points
ID: 1812422
Thanks, Andrew - nice dealing with you again !
0
 

Author Comment

by:andrewmchorney
ID: 1812423
Adjusted points to 20
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
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…

810 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