?
Solved

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

Posted on 2013-11-06
7
Medium Priority
?
4,656 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
[X]
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
  • 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
Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

 
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

Get MySQL database support online, now!

At Percona’s web store you can order your MySQL database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card.

Question has a verified solution.

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

Microsoft has released various new features which are capable of handling various tasks. One of these tasks is ‘Migration from pop3 to Exchange Server’. Pop3 data stores various data along mailboxes like contacts, tasks, etc. So, it becomes the need…
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.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
In this video we show how to create a mailbox database 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 Servers >> Data…
Suggested Courses
Course of the Month11 days, 12 hours left to enroll

752 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