LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

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

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


Hello,

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 sherin_mail@gmail.com
Subject: test
testing.

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

Could someone please help me

Thanks in advance.
 
Old 05-07-2011, 04:16 AM   #2
xeleema
Member
 
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: 987
Blog Entries: 4

Rep: Reputation: 249Reputation: 249Reputation: 249
Greetingz!

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, 11:58 AM   #3
hua
Member
 
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 13.37, 14.0
Posts: 396

Rep: Reputation: 49
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:
Code:
*.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.
Code:
nslookup
set type=PTR
123.123.123.123
Replace the 123.123.123.123 with the public IP address of your internet connection.

Last edited by hua; 05-07-2011 at 12:05 PM.
 
Old 10-18-2012, 09:07 PM   #4
davx
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

http://thesysadmin.blogspot.com/2012...ail-issue.html
 
  


Reply


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 05:21 AM
550 5.7.1 Postfix:Access denied. IP name lookup failed Niceman2005 Linux - Software 4 09-12-2007 07:46 AM
Sendmail 550 access denied vous Linux - Software 6 03-03-2005 11:11 AM
FTP upload problem: Error 550 Access Denied andrewstr Linux - Networking 0 12-17-2003 02:19 PM
mailman: send error 550 5.0.0 access denied katana Linux - General 2 08-26-2003 11:35 PM


All times are GMT -5. The time now is 08:42 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration