Solved

Sendmail Remote Protocol Error

Posted on 1998-11-25
9
653 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
 

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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

746 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

12 Experts available now in Live!

Get 1:1 Help Now