How can I define a local use with "@" in the name useradd "bob at myname" gives error. I "need" to have the @ sign in the name -is that possible. Silly reason - the system I am trying to send emails to the linux server has a bug. I'm trying to get around it. Thanks, Jerry
On Mon, 1 Jun 2020 13:13:13 -0400 Jerry Geis wrote:> I "need" to have the @ sign in the name -is that possible. Silly reason - > the system I am trying to send emails to the linux server has a bug. I'm > trying to get around it.Wouldn't you be better off using the alias directive in your mailer program? I think all of the mainstream mailers (sendmail, postfix, what-have-you) support aliasing in some form. -- Can we uninstall 2020 and install it again? This one has a virus. MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilletheatre.com
HI Frank - Like that signature of yours...> Wouldn't you be better off using the alias directiveThe problem is the client program trying to talk to the linux server is base64 encoding the entire email address for the AUTH LOGIN, not just the "username". so my user name needs to include the "@" symbol. They have an edit on their side that does not allow entry without the @ sign.
On Mon, 2020-06-01 at 13:13 -0400, Jerry Geis wrote:> How can I define a local use with "@" in the name > > useradd "bob at myname" gives error. > > I "need" to have the @ sign in the name -is that possible. Silly reason - > the system I am trying to send emails to the linux server has a bug. I'm > trying to get around it. >useradd is just a program that manipulates the underlying files - so if you really want to create a user with that name, then manually edit /etc/passwd and /etc/shadow. However, at the risk of telling you things you already know, the '@' is definitely not a standard character in Unix usernames and it may, or may not, cause problems elsewhere. (TBH, the only character which will almost certainly break things is '/'!) P.
I am looking for a way for sendmail to ALLOW auth by IP and not user name (its a closed network) or even SKIP invalid auth ? Is that even possible ? Jerry
On 6/1/2020 10:29 AM, Jerry Geis wrote:> The problem is the client program trying to talk to the linux server > > is base64 encoding the entire email address for the AUTH LOGIN,Note that it's not talking to "the linux server" but to a specific program on the server.I'm guessing Postfix. (But maybe Sendmail, depending on how old your server is.) So the question is whether Postfix or Sendmail have this ability to translate an incoming username. They may be able to do this through virtual user support. Which SMTP program are you using (name and version)? I'd suggest asking on their mailing list.
On Mon, 1 Jun 2020 at 13:13, Jerry Geis <jerry.geis at gmail.com> wrote:> How can I define a local use with "@" in the name > > useradd "bob at myname" gives error. > > I "need" to have the @ sign in the name -is that possible. Silly reason - > the system I am trying to send emails to the linux server has a bug. I'm > trying to get around it. > >@ is not an allowed character in most Unix logins Allowed characters: 'a'...'z' 'A'...'Z' '0'...'9' '.' '-' '_' $ is allowed as the last character but @ is not. To allow it you would need to patch everything from glibc, shadow-utils, pam, systemd and email. @ is reserved as the identifier in an email address and many utilities will break if you have 2 @ in them.. aka user foo at foobar.net@foobar.net is going to cause all kinds of issues. and a user foo at foobar.net is going to find that many utilities strip @foobar.net and try to use the user foo.> Thanks, > > Jerry > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos >-- Stephen J Smoogen.
On 6/1/20 12:13 PM, Jerry Geis wrote:> How can I define a local use with "@" in the name > > useradd "bob at myname" gives error. > > I "need" to have the @ sign in the name -is that possible. Silly reason - > the system I am trying to send emails to the linux server has a bug. I'm > trying to get around it.As far as I remember UNIX username can not contain special symbols. Valeri> > Thanks, > > Jerry > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos >-- ++++++++++++++++++++++++++++++++++++++++ Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247 ++++++++++++++++++++++++++++++++++++++++
On 6/1/20 10:29 AM, Jerry Geis wrote:> The problem is the client program trying to talk to the linux server > is base64 encoding the entire email address for the AUTH LOGIN, > not just the "username". so my user name needs to include the "@" symbol.That's a common requirement for servers that implement multi-domain hosting.? In Courier MTA, you can host virtual users in a "userdb" file or SQL DB (or LDAP): https://www.courier-mta.org/FAQ.html#virtual Postfix supports similar setup: https://www.howtoforge.com/virtual-users-and-domains-with-postfix-courier-mysql-and-squirrelmail-debian-wheezy Whether those are options may depend on how invested you are in sendmail.? If you're not a sendmail expert, you're probably better off using a different mail server.