Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 08-09-2008, 06:55 PM   #1
LQ Newbie
Registered: Jul 2008
Posts: 1

Rep: Reputation: 0
550 5.0.0 Access denied when sending mail using sendmail


I have a newly setup send mail server. When I am sending mail from shell, I am getting Access denied error.

[root@apple mail]# mail -v
Subject: test

Cc: Connecting to [] via relay...
220 ESMTP Sendmail 8.13.1/8.13.1; Sat, 9 Aug 2008 19:49:03 -0400
>>> EHLO Hello localhost.localdomain [], pleased to meet you
>>> MAIL From:<>
550 5.0.0 Access denied
root... Using cached ESMTP connection to [] via relay...
>>> RSET
250 2.0.0 Reset state
>>> MAIL From:<>
550 5.0.0 Access denied
postmaster... Using cached ESMTP connection to [] via relay...
>>> RSET
250 2.0.0 Reset state
>>> MAIL From:<>
550 5.0.0 Access denied
Closing connection to []
>>> QUIT
221 2.0.0 closing connection

Could someone please help me

Thanks in advance.
Old 05-07-2011, 03:16 AM   #2
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 988
Blog Entries: 4

Rep: Reputation: 254Reputation: 254Reputation: 254

You may have to configure sendmail to use your ISP's SMTP & POP relays, as your actual network is not trusted by gmail (if they trusted everyone's network, well, then anyone could send mail).
Old 05-07-2011, 10:58 AM   #3
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 14.2, current
Posts: 458

Rep: Reputation: 78
To help you solve the problem we need more information. Before you try to send out email from your server you should have properly configured domain for your internet connection. Your SMTP server is checked by other public servers whether you are a valid sender or not.
For example if your server does not have a valid Reverse Domain Name (PTR) for your internet connection some servers may deny you.
In sendmail there is an access database where you can define whether the sender is allowed or not to send email to your local mailboxes (or relay somewhere). You can (for example) create entry in access like this:
*.br  REJECT
*.ru  REJECT
This will tell to all the connections from the domain .br or .ru - Access denied. You get the same answer from the server where you wanted to send your email. You should investigate why the server on the other side identified you as someone who should not be able to do this.
There are several reasons why you can get denied. Try to look into the maillog.
Try to check whether you have a valid PTR.
set type=PTR
Replace the with the public IP address of your internet connection.

Last edited by hua; 05-07-2011 at 11:05 AM.
Old 10-18-2012, 08:07 PM   #4
LQ Newbie
Registered: Jan 2009
Posts: 7

Rep: Reputation: 0
Had this too, it was permissions

I had this too, hopefully my fix helps someone.

Check the /etc/hosts.allow and make sure you have this entry for the daemon:
sendmail: ALL


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
Postfix: Relay access denied whenever sending e-mail Doug52392 Linux - Server 1 11-11-2007 04:21 AM
550 5.7.1 Postfix:Access denied. IP name lookup failed Niceman2005 Linux - Software 4 09-12-2007 06:46 AM
Sendmail 550 access denied vous Linux - Software 6 03-03-2005 10:11 AM
FTP upload problem: Error 550 Access Denied andrewstr Linux - Networking 0 12-17-2003 01:19 PM
mailman: send error 550 5.0.0 access denied katana Linux - General 2 08-26-2003 10:35 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:44 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