LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-16-2019, 06:05 PM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,593

Rep: Reputation: 179Reputation: 179
Getting "User unknown" even though in virtusertable


Using Sendmail.

I have the following host in /etc/mail/local-host-names:
Code:
members.newengland4.org
In /etc/virtusertable I have:
Code:
WM@members.newengland4.org me@mydom.com
LEO@members.newengland4.org user@thatdom.com
virtusertable.db is up to date.

Yet, when sending to LEO@members.newengland4.org I am getting the following error in /var/log/maillog:
Code:
Dec 16 18:50:59 hiram sm-mta[7486]: xBGNoulq007479: to=<leo@members.newengland4.org>, delay=00:00:03, xdelay=00:00:01, mailer=relay, pri=123242, relay=novatec-inc.com. [184.57.60.212], dsn=5.7.1, stat=User unknown
Dec 16 18:50:59 hiram sm-mta[7486]: xBGNoulq007479: xBGNoxlq007486: DSN: User unknown
Dec 16 18:51:00 hiram sm-mta[7486]: xBGNoxlq007486: to=<SRS0=k7HJsj=2G=novatec-inc.com=mfoley@newengland4.org>, delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=35422, relay=novatec-inc.com. [184.57.60.212], dsn=5.7.1, stat=User unknown
Dec 16 18:51:00 hiram sm-mta[7486]: xBGNoxlq007486: xBGNoxlr007486: return to sender: User unknown
Dec 16 18:51:00 hiram sm-mta[7486]: xBGNoxlr007486: to=root, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=36446, dsn=2.0.0, stat=Sent
However, sending to WM@members.newengland4.org works.

Why?
 
Old 12-17-2019, 02:03 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,170
Blog Entries: 1

Rep: Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038
Quote:
In /etc/virtusertable I have:

WM@members.newengland4.org me@mydom.com
LEO@members.newengland4.org user@thatdom.com

virtusertable.db is up to date.
Are you sure virtusertable.db is up to date?
You didn't mention your distro, but usually virtusertable and virtusertable.db are located under /etc/mail.
So verify with sendmail.cf the correct location of virtusertable and then run:
Code:
makemap hash /etc/mail/virtusertable < /etc/mail/virtusertable
To verify that the user exists use:
Code:
sendmail -bv LEO@members.newengland4.org
Regards
 
1 members found this post helpful.
Old 12-17-2019, 12:32 PM   #3
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,738

Rep: Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213
Does case matter?
Setting up an upper- or mixed-case user in qmail doesn't work because qmail lowers the case of all incoming usernames.
Is that also the way it works in sendmail?

(This is how qmail manages case insensitivity in email addresses, but the actual definition of the user on the server must be in lower case)

Just a thought.
 
1 members found this post helpful.
Old 12-17-2019, 11:54 PM   #4
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,593

Original Poster
Rep: Reputation: 179Reputation: 179
OK, I'm an idiot on this one. Yes, virtusertable.db was up to date, but I didn't restart sendmail after doing so. When I restarted sendmail, virtusertable addresses worked fine. Duh! Negative points for me, but thanks for playing!
 
1 members found this post helpful.
  


Reply

Tags
sendmail, virtusertable



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
E-mail accepted even if not present in virtusertable! niente0 Linux - Server 4 11-16-2015 03:35 PM
Files/folders getting wrong permissions even though they're foced through samba anon091 Linux - Server 4 12-30-2013 08:18 AM
Getting an error in C code even though libncurses is installed Avanti Linux - General 5 02-07-2012 09:24 AM
Imap - Pop3 Auth with user@domain instead username using virtusertable gakullak Linux - General 1 09-04-2004 04:34 PM
prevent files from getting copied even though they have read permission arnieboy Linux - Security 9 10-08-2003 03:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:41 PM.

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