Solved

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

Posted on 2013-11-06
7
4,043 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 20

Expert Comment

by:carlmd
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
I found the problem myself and it wasn't really in sendmail but in exchange.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

The Microsoft Exchange server database may become damaged or corrupted due to many reasons, such as system failure. When this happens, it is usually urgent to restore the system to a stable and working state. There are different symptoms and causes …
Granting full access permission allows users to access mailboxes present in their database. By giving full access permission one can open and read the content of any mailbox but cannot send emails from that mailbox.
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

771 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now