LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 05-22-2005, 11:34 AM   #1
ejain
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 sendmail.mc file like 'dnl DAEMON_OPTIONS (Port=smtp,Addr=127.0.0.1, Name=MTA)'and rebuild the sendmail.cf file. Then the sendmail.cf 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.
---
Regards
Abhishek Jain
 
Old 05-23-2005, 08:06 AM   #2
koushik1122
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/README.cf file for a description
# of the format of this file. (search for access_db in that file)
# The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc
# package.
#
# by default we allow relaying from localhost...
localhost.localdomain RELAY
localhost RELAY
127.0.0.1 RELAY
# list of local lan ip's to which you need to relay (IP of the machines from where you need to use outlook)
192.168.1.1 RELAY
192.168.1.2 RELAY
192.168.1.3 RELAY
192.168.1.4 RELAY

(2) make -C /etc/mail

Then restart your sendmail

(3) service sendmail restart
 
Old 05-27-2005, 11:35 AM   #3
ejain
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.
--
Regards
Abhishek jain
 
Old 05-30-2005, 09:31 AM   #4
koushik1122
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...

Thanks.

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

admin
admin
MySecretPassword
example.domain

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 (sendmail.mc and sendmail.cf) 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):

AuthInfo:your.isp.net "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 sendmail.mc file, filling in your ISP's mail server:

define(`SMART_HOST',`your.isp.net')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
FEATURE(`authinfo',`hash /etc/mail/auth/client-info')dnl

Generate sendmail.cf:
# m4 sendmail.mc > sendmail.cf

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

# kill -HUP `cat /var/run/sendmail.pid`
 
  


Reply



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 08:02 AM
Email "Relaying denied" (sendmail) Wynand1 Linux - Networking 1 04-06-2005 07:47 AM
what is a "relaying" email server unhappyStar Linux - Networking 1 08-15-2004 01: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 10:39 AM
"Relaying Denied" by Sendmail colporteur Linux - General 2 12-27-2002 08:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:16 PM.

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