LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Unable to send email "Relaying denied" (https://www.linuxquestions.org/questions/linux-software-2/unable-to-send-email-relaying-denied-325949/)

ejain 05-22-2005 11:34 AM

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

koushik1122 05-23-2005 08:06 AM

(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

ejain 05-27-2005 11:35 AM

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

koushik1122 05-30-2005 09:31 AM

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" "P: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`


All times are GMT -5. The time now is 11:29 AM.