Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-22-2005, 12:34 PM   #1
LQ Newbie
Registered: Nov 2004
Posts: 15

Rep: Reputation: 0
Unable to send email "Relaying denied"

Hi Friends,
I am unable to send email via outlook express from mine VPS on Fedora Core 2 . I am running webmin as the control panel.

I made the entry in file like 'dnl DAEMON_OPTIONS (Port=smtp,Addr=, Name=MTA)'and rebuild the file. Then the file contains the entry like
O DaemonPortOptions=Name=MTA .

The /var/log/maillog looks like this:

May 22 12:41:31 hidden sendmail[11942]: j4MGf9Yp011942: ruleset=check_rcpt, arg1=<hidden-email>, relay=[ip-hidden], reject=550 5.7.1 <email-hidden>... Relaying denied. IP name lookup failed [ip-hidden]

Please help me what should i do.
Thanks for your time and effort.
Abhishek Jain
Old 05-23-2005, 09:06 AM   #2
LQ Newbie
Registered: May 2005
Location: Bangalore
Posts: 2

Rep: Reputation: 0
(1) open /etc/mail/access using your favourite editor and add entries of IP's. By default sendmail will relay only localhost.localdomain.

sample access file

# Check the /usr/share/doc/sendmail/ file for a description
# of the format of this file. (search for access_db in that file)
# The /usr/share/doc/sendmail/ is part of the sendmail-doc
# package.
# by default we allow relaying from localhost...
localhost.localdomain RELAY
localhost RELAY RELAY
# list of local lan ip's to which you need to relay (IP of the machines from where you need to use outlook) RELAY RELAY RELAY RELAY

(2) make -C /etc/mail

Then restart your sendmail

(3) service sendmail restart
Old 05-27-2005, 12:35 PM   #3
LQ Newbie
Registered: Nov 2004
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks for your kind response.
But the problem with me is that i own a server for webspace and i want to give users access to the SMTP which may not be on a local ip or a fixed ip.
Pl. tell me how can i make SMTP available to them.
Abhishek jain
Old 05-30-2005, 10:31 AM   #4
LQ Newbie
Registered: May 2005
Location: Bangalore
Posts: 2

Rep: Reputation: 0
Hi Abishek,

I have been using sendmail and collected some information for our usage about the sendmail.

I am just sending the cut n paste from my own collections.

See if that would help you...


Configuration for SMTP_AUTH:

There are some options for the .cf (.mc) file which you may want to change from their default values:

DefaultAuthInfo (confDEF_AUTH_INFO)

specifies a file in which the authorization identity, the authentication identity, the secret, and the realm to be used for authentication are stored. This file must be in a safe directory and unreadable by everyone except root. It is used when sendmail acts as a client to authenticate itself to a server. For an instance


Notes: all data is case sensitive (usually) and the entire line is used in each case (including any white space!).

recommended filename: /etc/mail/default-auth-info

Using sendmail as a client with AUTH

If you are using sendmail only to transfer e-mail from your local computer to a mail server that requires SMTP AUTH, follow these instructions. They assume that sendmail 8.12 or later, and other software, is already installed on your computer. You should probably be logged in as root to perform these steps.

Change directory to where your sendmail configuration files ( and are located, usually /etc/mail/.
Create a safe subdirectory (suggested name auth/):
# mkdir auth
# chmod 600 auth

Create a file with your authentication information (suggested name auth/client-info): "U:root" "I:user" "Password"

Generate the authentication database and make both files readable only by root:
# cd auth
# makemap hash client-info < client-info
# chmod 600 client-info*
# cd ..

Add the following lines to your file, filling in your ISP's mail server:

FEATURE(`authinfo',`hash /etc/mail/auth/client-info')dnl

# m4 >

Restart the sendmail daemon, e.g., (this depends on your OS):

# kill -HUP `cat /var/run/`


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to send email "Relaying denied" ejain Linux - Software 2 05-21-2005 09:02 AM
Email "Relaying denied" (sendmail) Wynand1 Linux - Networking 1 04-06-2005 08:47 AM
what is a "relaying" email server unhappyStar Linux - Networking 1 08-15-2004 02:57 AM
I get a "relaying denied" message when I try to send mail from a remote computer robmainella Linux - Software 4 09-09-2003 11:39 AM
"Relaying Denied" by Sendmail colporteur Linux - General 2 12-27-2002 09:40 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:35 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration