• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 620
  • Last Modified:

how to stop Mail Relay in sendmail?

I have configured sendmail in RHEL 5 and working fine but someone is using this server as Mail Relay and sending too many mail to other domain.

Please suggest me How to stop this?
0
aloknet21
Asked:
aloknet21
  • 2
1 Solution
 
nognewCommented:
Hello mate!
 You can configure domains which will be allowed for relay.
 Configure Relaying

Using /etc/mail/relay-domains

You need to add the fully-qualified host name and/or IP address of each client to class R, the set of relay-allowed domains. For version for 8.9.X, it is typically /etc/mail/relay-domains Note: if your DNS is problematic, you should list the IP address (e.g., 1.2.3.4); in general, however, this should not be necessary. Here is the content of the file relay-domains:

akadia.com
akadia.ch
arkum.ch


Please read more detailed explanation on page:
http://www.akadia.com/services/sendmail_relay.html

Kind regards,
t.
0
 
aloknet21Author Commented:
Now mail relay is stoped but i am not able to receive any mail from other domain like from gmail when i am sending mail it is giving me error like:

I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to <postmaster>

If you do so, please include this problem report. You can delete your own text from the attached returned message.

                   The mail system

<alok@itcplant.com>: host mail.itcplant.com[61.16.236.202] said: 550 5.7.1
    <alok@itcplant.com>... Relaying denied. Proper authentication required. (in
    reply to RCPT TO command)
0
 
nognewCommented:
What have you done so far?
Have you put domains allowed for relay?
Have you described your local hosts in your local domain in DNS?
It seems your mail server replies as it can deliver emails but does look like those domains are local not relay for sender.

Cheers,
t.
0
 
omarfaridCommented:
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now