E-mail accepted even if not present in virtusertable!
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
E-mail accepted even if not present in virtusertable!
Hi,
I use Sendmail, my local-host-names file is like this:
Code:
firstdomain.com
seconddomain.com
My virtusertable is like this:
Code:
user1@firstdomain.com user1
@seconddomain.com error:nouser User unknown
My problem is that when I write to user1@seconddomain.com the message does not return an error but is delivered to user1, even if user1@seconddomain.com is not present in virtusertable.
I've never used it, so I don't know what it does really. You can disable it temporarily from sendmail.cf, by commenting out "O UserDatabaseSpec=/etc/mail/userdb" and see if it works.
If that doesn't work try to reverse the entries order in /etc/mail/virtusertable
Code:
@seconddomain.com error:nouser User unknown
user1@firstdomain.com user1
Thank you very much for your suggestions.
I have no /etc/mail/userdb.db file, so I think it's a predefined (unused) setting left in sendmail.mc.
Anyway, I just discovered that I get this problem only when I send an e-mail message from another address that resides on the same server. While if I write an email to the non-existent address from an "outside" account, message is correctly refused (unknown user).
So this behavior is far less annoying after this discovery, I think I can live with this...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.