LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-02-2013, 07:48 AM   #1
raphael75
Member
 
Registered: Jul 2012
Posts: 40

Rep: Reputation: Disabled
sendmail error: user unknown dsn=5.1.1


I recently was able to get sendmail working on our Debian server. However, there is a small problem. I can send email to:

jsmith@DOMAIN

but NOT to:

jsmith@DOMAIN.com

I get this error: stat=User unknown and dsn=5.1.1 in /var/log/mail.log

We also have an alias domain (jsmith@ALTDOMAIN.com) that works fine.

How can I get jsmith@DOMAIN.com to work? Thanks!!

Last edited by raphael75; 05-02-2013 at 07:49 AM.
 
Old 05-03-2013, 05:28 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
It sounds lkie you have DOMAIN.com set up but there is no mailbox record for jsmith@DOMAIN.COM, more than likely has yuor main account as jsmith@DOMAIN.

Try setting jsmith@DOMAIN.COM as a virtual mailbox.

/etc/mail/local-host-names < Make sure DOMAIN.COM is listed on this file



/etc/mail/virtualusertable

Add:

Code:
jsmith@DOMAIN.COM jsmith
 
Old 05-06-2013, 03:10 PM   #3
raphael75
Member
 
Registered: Jul 2012
Posts: 40

Original Poster
Rep: Reputation: Disabled
I tried that but it didn't work the way I was hoping. Here is our configuration:

computer 1
Debian Linux with sendmail

computer 2
MS Server with Exchange
DOMAIN.COM

When we send email from computer 1, it goes to computer 2 (the smart host). However, if the email address we use is jsmith@DOMAIN.COM, it sends it to computer 1. I saw the test email in /var/mail/jsmith.

How can we get it to send from computer 1 to computer 2 while specifying DOMAIN.COM?

Thanks!
 
Old 05-06-2013, 03:15 PM   #4
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
Remove domain.com from /etc/mail/local-host-names
 
1 members found this post helpful.
Old 05-07-2013, 06:42 AM   #5
raphael75
Member
 
Registered: Jul 2012
Posts: 40

Original Poster
Rep: Reputation: Disabled
Looks like that fixed it, thank you!!!
 
Old 01-16-2014, 12:47 PM   #6
fpflug
LQ Newbie
 
Registered: Jan 2006
Posts: 2

Rep: Reputation: 0
It helped me as well as it seems. Thank you very much.
I was getting the following in /var/log/maillog

Jan 16 15:50:00 host sendmail[4059]: s0GHo08d004059: <email@domain.com>... User unknown
Jan 16 15:50:00 host sendmail[4042]: s0GHo0Ei004042: to=<email@domain.com>, ctladdr=noreply@domain2.com (503/501), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=67453, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.1, stat=User unknown
 
  


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
dsn=5.7.1, stat=User unknown raphael75 Linux - Newbie 2 03-08-2013 09:15 AM
Sendmail error - DSN: Remote protocol error Anup D. Linux - Enterprise 1 12-26-2012 06:52 AM
[SOLVED] Sendmail "user stat unknown error " while delivering error out sanjay87 Linux - Server 1 02-29-2012 09:54 AM
Sendmail: eocket wedge , 504 error , dsn error, mail relay connection error djcs Debian 0 03-03-2009 12:41 AM
error 550 5.1.1 user unknown about sendmail addbbe Linux - Networking 0 12-21-2006 10:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:14 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration