How to create a proxy address in Active Directory?
I have a scenario where I have an AD server and a web server.
The web server serves web applications, which are not configured for any proxy settings. But the AD server hosts a web application which is running under IIS7. When I configure the web application on the AD server with the proxy settings, that web application gets proxied but I see no effect on the web server. Do I need to explicitly add a proxy for the application to use?
If it is a public website you would have to configure your IIS and the webserver to proxy the requests. The easiest way to do this, would be to run the DNS proxy inside the network instead of outside. This can be done by using a third-party tool like Bind.
How do I add a SMTP address to Active Directory?
I have a Windows Server 2025 R2 server that is configured to use an Exchange 2025 mail server.
It has multiple SMTP addresses configured, one for outbound and one for inbound. I would like to add another SMTP address to the server, so that I can create another "inbound" address. How can I do this? Is it possible?
You can't. When you add an SMTP address to an Active Directory user account, it will only be used for local authentication, not for sending e-mails. So you can't send mail using that account, and the user account will not be able to authenticate to the Exchange server.
So, if you really need to add an e-mail address for local authentication, you'll need to set up a domain account for that purpose. If you want to make it easier to manage, you can use a local account in Active Directory that you delegate permissions to. This would be a local user account in the "Administrators" group of the domain, and you can just add that account to the mail configuration on the server.
How to change SMTP proxy address in Active Directory PowerShell?
This is a script which I used in an environment where I have two email servers (Exchange 2010) and both are in use at the same time. The user needs to change the SMTP proxy address depending on if they're connected to internal or external SMTP server. They will have to enter a new AD account for this new SMTP Server instead of their original AD account they were connected with when logging into Exchange.
I've created a script which does this. Import-Module 'DscResourceManager' Set-ExecutionPolicy -Scope CurrentUser Set-Location 'C:PowerShellAdmoduScripts' Start-Process -Name powershell.exe -ArgumentList '-File 'C:PowerShellAdmoduScriptsSMTPSource.ps1'
The problem I was having was that if an Exchange server was already accepting SMTP connections then users won't be able to enter a new SMTP address. Users need to do one of two things: Log off first (the Exchange server in question was accepting SMTP connections when the script ran). Connect using remote desktop. If a user is connected via remote desktop to their Exchange server the script will connect to Exchange via the same account that was originally connected. When logging into Active Directory with that account (using remote desktop) the SMTP address in Exchange will change from their default setting.
Here's an example of the script in action. Set-ExecutionPolicy -Scope CurrentUser -Force Start-Process -File C:AdmoduScriptsSMTPSource.
Related Answers
How does the Simple Mail Transfer Protocol work?
It is a request-reply protocol used for electro...
What is Simple Mail Transfer Protocol and how does it work?
Simple Mail Transfer Protocol (SMTP) is a well-...
What Does SMTP mean?
I have to send email to a mobile user from my application. Is...