[SOLVED] Postfix Unkown User Seems to work but cant get mail
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.
In the second link, pay particular attention to Postfix rejects mail with "User unknown in local recipient table" and Postfix rejects mail with "User unknown in local recipient table" as I think that these relate to how you have yours configured and your error.
I seriously think after reading the above link, the issue is same as mentioned there.
"User_Name@domain.com" then it drops the capped letters and goes to (unknown user: "user_name")
I haven't made any major changes to my aliases file. I've tried putting in one that did user_name: User_name , but it didn't seem to work at all. I did run
Quote:
newaliases and postalias /etc/aliases then restart postfix.
I had not read the linked sites, but I'm going to be doing that here later today. And I haven't made any changes to the transport file at all ofcourse unless there are still defaults in it, I'm going to look into the file now. Because also my fail2ban wants to try and continue to email @example.com for reports I assume but looking into it all now. I'll update after or if I find something thanks again...
Well after filtering through the links provided and a few more off of those sites as well. I'm still in the same place I am now.. But I do believe I know why just not 100% sure how to correct it because its literately my user name postfix doesn't like, which is "Spazztic_Killer", not sure if its the underscore it doesn't care for or the capped letters my money is on the underscore..
Correct me if I'm wrong but in my logs it does not say any thing about "User unknown in local recipient table", but it does say "(Unknown user: "user_name")" which is my user of "Spazztic_Killer". I have this user Spazztic_Killer getting all root messages so my aliases and transport is working fine postfix just most hate either the capped letters or the underscore or doesn't understand it.
So since this user is my personal main account, I think the solution is to login into root account directly (I mean over ssh, but not su root) and rename my user to something without the underscore and/or no capped letters. Which I've partional already have tried, but when I go to login it wont let me I use keys for auth, and sshd is locked down pretty damn tight, so I think I might have to reconfigure part of sshd to allow my user or new user in and try it that way.
Does this make since or like it would and/or should work?
Indeed logged in as root, changed user and group accordingly and a few other spots where my "user_name" was to correct my login process and this son of a gun WORKS!!!
Glad it worked out for you. I am really surprised that the underscore was problematic. It is not a character that requires escaping in regular expressions, doesn't cause problems for directories, or anything. From glancing through this wiki page, it looks like underscore is supposed to be a valid email character. In fact, special mention is made of how Hotmail restricts the allowed characters to dot and underscore.
Yea well not I am attempting to setup AUTH for postfix and dovecot + TLS for both and having trouble with them now but I'll continue to mess with them both and try and figure out what it is doing...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.