Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

strange sendmail problem (dsn=5.0.0, stat=Service unavailable)

Posted on 2013-11-06
7
4,293 Views
Last Modified: 2016-02-11
Hi there,
I've got a strange problem regarding sendmail. I have a freebsd server running groupware with domain: domain.nl . At the office they have an exchange server also using domain.nl emailaddresses. Email is forwarded to the right server by an external mailserver and local email is handled by the virtusertable.
This is working well for about 100 users on the groupware server but I have one user who is unable to mail to the exchange server. All other users can do that, except this one. he gets an "dsn=5.0.0, stat=Service unavailable" error.
When I make a telnet connection to the exchange server from the groupware server it accepts the mail.
0
Comment
Question by:rogerberger
  • 5
  • 2
7 Comments
 

Author Comment

by:rogerberger
ID: 39627089
Some extra info:
Nov  6 08:33:34 s3 sm-mta[41717]: rA67XX7Y041715: to=<wilko@domain.nl>, delay=00:00:01, xdelay=00:00:00, mailer=esmtp, pri=33802, relay=mail.domain.com. [213.125.155.154], dsn=2.0.0, stat=Sent ( <73127ACE71E2A2479C9E4DC436AA3BC0AED941@mainserver.domain.local> Queued mail for delivery)
Nov  6 12:42:23 s3 sm-mta[73607]: rA6BgGM4073605: to=<wilko@domain.nl>, ctladdr=<loredanacannas@domain.nl> (1013/1938), delay=00:00:07, xdelay=00:00:07, mailer=esmtp, pri=32306, relay=mail.domain.com. [213.125.155.154], dsn=5.0.0, stat=Service unavailable

and from prompt:

s3# telnet 213.125.155.154 25
Trying 213.125.155.154...
Connected to mail.domain.com.
Escape character is '^]'.
220 domain.nl Microsoft ESMTP MAIL Service, Version: 6.0.3790.4675 ready at  Wed, 6 Nov 2013 13:01:55 +0100
helo domain.nl
250 domain.nl Hello [83.96.158.162]
mail from: loredanacannas@domain.nl
250 2.1.0 loredanacannas@domain.nl....Sender OK
rcpt to: wilkotrenning@domain.nl
250 2.1.5 wilkotrenning@domain.nl
data
354 Start mail input; end with <CRLF>.<CRLF>
test4
.
250 2.6.0 <MAINSERVERrNKBqujsc00000031@domain.nl> Queued mail for delivery
quit
221 2.0.0 domain.nl Service closing transmission channel
Connection closed by foreign host.
0
 
LVL 20

Expert Comment

by:carlmd
ID: 39627305
Do you have a setup that says for whom your mail server will relay mail, and if so is the ip address of the problem pc in that list?
0
 

Author Comment

by:rogerberger
ID: 39627340
Yes,

I have a relay-domains file containing the IP and domainname of the exchange server. But that is working, all other users can send mail without a problem. It's just this one user who can't.
And it's not the exchange server because I can send email from this user from prompt (telnet port 25).
0
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
LVL 20

Expert Comment

by:carlmd
ID: 39627370
Did this ever work from this pc?

Have you checked the mail client (outlook?) settings?

Do you have a setting for the mailserver in the hosts file on that pc?

Does your sendmail configuration use any of the .db configurations or milters?
0
 

Author Comment

by:rogerberger
ID: 39629505
No, it's not a PC with Outlook. the sendmail side is a groupware server (egroupware) with 100 users and the other side is an exchange 2003 server.
secretariaat@domain.nl is located on the exchange server and so forwarded in the virtusertable on the groupware server.
What I forgot to mention is that for routing the mail to the correct server, I am using domain.com also on the exchange server.
only one user of these 100 groupware users gets an error 5.0.0 sending mail to secretariaat@domain.nl

Sendmail has a mostly standard configuration.

Thanks,
Roger
0
 

Accepted Solution

by:
rogerberger earned 0 total points
ID: 39632939
Well it was the spam filter on exchange which blocked the mail. Strange thing is that it didn't block the mail when I sent it from prompt using telnet.
0
 

Author Closing Comment

by:rogerberger
ID: 39641181
I found the problem myself and it wasn't really in sendmail but in exchange.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

New-MailboxSearch Powershell Command and step by step approach to Search and Extract Emails form Exchange 2013 Journaling server.
As cyber crime continues to grow in both numbers and sophistication, a troubling trend of optimization has emerged over the last year.
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
In this video we show how to create an Address List in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Organization >> Ad…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question