Solved

Sendmail Remote Protocol Error

Posted on 1998-11-25
9
661 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
[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
  • 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
pauing printer deamon in AIX 10 66
Unix/bash: scripted arithmetic 13 103
Expiration and Locking of Unix/Solaris OS Accounts 7 87
Shell Script- gzip 5 85
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
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.
Suggested Courses

734 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