Exchange 2010 and 530 5.7.1 Client was not authenticated error
My Exchange server is behind a Linux firewall with sendmail fronting the email handling. I started seeing messages in the maillog on the Linux machine like:
dsn=4.0.0, stat=Deferred: Connection reset by <em>mailserver</em>.
Following that were even odder messages from SpamAssassin:
1 2 3 | <em>mailhost</em> mimedefang-multiplexor[1614]: Slave 0 stderr: dns: sendto() failed: Connection refused at /usr/lib/perl5/vendor_perl/5.10.0/Mail/SpamAssassin/DnsResolver.pm line 411. <em>mailhost</em> mimedefang-multiplexor[1614]: Slave 0 stderr: Use of uninitialized value in string ne at /usr/lib/perl5/vendor_perl/5.10.0/Mail/SpamAssassin/AsyncLoop.pm line 174. <em>mailhost</em> mimedefang-multiplexor[1614]: Slave 0 stderr: plugin: eval failed: oops, no key at /usr/lib/perl5/vendor_perl/5.10.0/Mail/SpamAssassin/AsyncLoop.pm line 174. |
This was all due to the added security of the Exchange Server installation (I believe it is also true for 2007). It is set up for authenticated connections and to disallow anonymous connections.
To resolve, I added a new Receive Connector in the Exchange Management Console for my sendmail front end machine under Hub Transport in the Server Configuration. I set this up to only receive mail from the IP Address for my sendmail machine and checked the Anonymous users permission group. Adding this new Receive Connector allowed email to be received from my sendmail machine once again.
In simpler terms:
- Open Exchange Management Console
- Click on Hub Transport under Server Configuration
- Click on the corresponding hub in the top section
- Right-click on the bottom section and add New Receive Connector
- Using Custom as the intended use:
- Listen on Port 25
- Enter the desired FQDN
- Edit the IP Range to match the address of the sendmail machine
- Create the New Receive Connector
- After the Receive Connector is created, right-click on it and select Properties
- On the Permission Groups Properties tab, select Anonymous users and press OK
A working system!
