LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 12-29-2022, 08:24 AM   #1
windyyy
LQ Newbie
 
Registered: Dec 2022
Posts: 1

Rep: Reputation: 0
Linux novice, please help me!:Postfix fails to send successfully when the domain user's email and user name are inconsistent


My environment:
192.168.10.1 AD domain control
There are two domain users, y1 and y2
Their email addresses are x1@xxx.com and x2@xxx.com

192.168.10.2 Debian11:Postfix+dovecot+ad domain authentication integration

When I deploy the postfix+dovecot+ad integrated authentication, when the email prefix of the domain user is inconsistent with the domain user name, the following error appears in the log file:
Dec 29 19:32:24 a2 postfix/smtpd[18295]: connect from unknown[192.168.10.4]
Dec 29 19:32:39 a2 postfix/smtpd[18295]: NOQUEUE: reject: RCPT from unknown[192.168.10.4]: 550 5.1.1 x2@a.b: Recipient address rejected: User unknown in virtual mailbox table; from=x1@a.b to=x2@a.b proto=ESMTP helo=<[192.168.10.4]>
Dec 29 19:32:39 a2 postfix/smtpd[18295]: lost connection after RCPT from unknown[192.168.10.4]
Dec 29 19:32:39 a2 postfix/smtpd[18295]: disconnect from unknown[192.168.10.4] ehlo=2 starttls=1 mail=1 rcpt=0/1 rset=1 commands=5/6

When the email address of the domain user is consistent with the user name, everything can be sent and received normally

I want the mailbox service to work normally when the domain user's email address and user name are inconsistent. What can I do to achieve this?

I just contacted postfix,Can someone help me?

Thank you very much.
 
Old 12-29-2022, 09:54 AM   #2
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
An email user by default must be a valid email address in the domain or on the host. Define x1 & x2 as valid users within the domain served.

This restriction is part of the general requirement that mail servers must not allow unidentified users to send mail thus helping to reduce the significant problem with spam email.

It may be possible to do that within the /etc/aliases file and then running 'newaliases' as shown within the file itself.

Last edited by computersavvy; 12-29-2022 at 02:17 PM.
 
  


Reply



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
Is it inappropriate to use my email provider domain name in my send only mutt configuration as the hostname? mredc Linux - General 7 07-13-2020 07:17 PM
Postfix - set response when someone send message to the non-existing email on domain Luk90 Linux - Server 6 06-11-2012 06:42 AM
Postfix emails send outgoing mail with wrong domain name michael.smith Ubuntu 2 01-30-2010 12:23 AM
Perl email::send.. how to send the email? hawk__0 Programming 6 12-24-2009 01:53 PM
Postfix : mail cannot send to send outside ( can send/receive locally) bobbinsupport Linux - Networking 3 12-15-2007 10:40 PM

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

All times are GMT -5. The time now is 03:43 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