Solved

sendmail and clients smtp email

Posted on 1998-06-12
7
208 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
  • 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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
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…
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.

919 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

18 Experts available now in Live!

Get 1:1 Help Now