Solved

sendmail and clients smtp email

Posted on 1998-06-12
7
235 Views
Last Modified: 2013-12-15
I have just installed red hat linux v5.  It is a internet server for www,ftp and email.  Sendmail is working fine, in and out, from the server box.  But the clients (Win95, or WinNT) are having trouble sending mail to the outside.  I am using Microsoft Internet Mail program, and it returns a message 551 <XXXXXXXX>  "we dont relay".  I am not at the office and i cant remember the exact message.  The <XXXXXXXX> are something else i cant remember either.  But the message "we dont relay" or something like that hinted to another coworker that the problem may lie in the /etc/mail/relay_allow file on the linux server.  Neither of us know what the syntax is for this file and i could not find any documentation.
Are we headed in the right direction?
Do you know the Syntax of the /etc/mail/relay_allow file?
Thanks
0
Comment
Question by:j_k
[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
  • 4
  • 3
7 Comments
 
LVL 1

Accepted Solution

by:
dyp earned 50 total points
ID: 1627771
Yeps, you are right...

Syntax is easy:
------ relay_allow -----
shu.inetlab.com
blues.inetlab.com
--------------

It is simple list of client you wonna relay.

0
 

Author Comment

by:j_k
ID: 1627772
It is simple list of client you wonna relay.

I am not sure i understand your answer.  Is this a list of each client in our LAN?  If so, then i guess this is how everyone in our LAN could have and receive email, but only certain workstations to send email to the outside!!   Is this correct?

0
 

Author Comment

by:j_k
ID: 1627773
It is simple list of client you wonna relay.

I am not sure i understand your answer.  Is this a list of each client in our LAN?  If so, then i guess this is how everyone in our LAN could have and receive email, but only certain workstations to send email to the outside!!   Is this correct?

0
PowerShell Core for Advanced Linux Administrators

Understand advanced principals around Powershell Core with a focus on the Linux Administrator.  This course covers how to administer numerous environments across multiple platforms including Linux, Azure, AWS, and Google Cloud from a single shell instance.

 

Author Comment

by:j_k
ID: 1627774
I have now tried to enter the clients name in the /etc/mail/relay_allow, and i still get the same error.

551 < email@address.net> ... we do not relay

I have tried each of the following at seperate times:
1. the hostname of the client
2. the hostname.domain.com of the client
3. the IP address of the client

After each time i stopped and started the sendmail daemon.
Should this have worked?
Do i need to stop and restart sendmail when changes are made to /etc/mail/relay_allow?
Where would i find documentation on /etc/mail/relay_allow?

Thanks



0
 
LVL 1

Expert Comment

by:dyp
ID: 1627775
Try to add username to
/etc/mail/name_allow

0
 
LVL 1

Expert Comment

by:dyp
ID: 1627776
I am sorry I did not read documentation carefully...
You should add all ip addresses to
/etc/mail/ip_allow

Here is a part of sendmail.cf
----------------
# file containing IP numbers of machines which can use our relay
F{LocalIP} /etc/mail/ip_allow
----------------

 
0
 

Author Comment

by:j_k
ID: 1627777
Thats it, /etc/mail/ip_allow.  It works now
Thank You

0

Featured Post

Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
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…
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

617 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