Solved

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

Posted on 2013-11-06
7
4,144 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
Do email signature updates give you a headache?

Do you feel like you are constantly making changes to email signatures? Are the images not formatting how you want them to? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today.

 
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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Import PST to Exchange using Power Shell new-mailboximportrequest command, you can simply import the PST file into Exchange mailbox or archived. To know How to import PST into Exchange  2013 read the complete article.
Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
Familiarize people with the process of utilizing SQL Server views 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 Microsoft Access…
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…

932 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

18 Experts available now in Live!

Get 1:1 Help Now