Configuring an SMTP server for sending emails from multiple addresses using a single account login

Matt Sowders 26 Reputation points
2021-12-16T20:00:48.637+00:00

I'm working with a SQL database within a program we use here for our sales and services. I'm trying to configure our auto emailing engine within our software to authenticate with one address and password and be able to send from other addresses on the same domain. The problem is Google though. my domain is pointed to Gmail for our emailing needs and they don't allow for users to authenticate with one account and send from another, it is the only way our software will send emails from different addresses, authing from one and sending from another. My question is, can I build an SMTP server within Windows Server 2016 to handle these 2 to 3 email accounts so I can auth using one user and send using another? I apologize for my ignorance in this matter, I'm just not experienced in SMTP.

Windows for business | Windows Server | User experience | Other
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Limitless Technology 39,926 Reputation points
    2021-12-23T20:56:17.37+00:00

    Hello @Matt Sowders

    This guide may help you to configure it:

    Open the Server Manager Dashboard. Click on ‘Manage’, then ‘Add Role & Features’.

    Click on ‘Next’ after this.

    Select ‘Role-based or feature-based installation’, then click ‘Next’.

    Select a server from pool.

    Click on ‘Next’ after selecting the role the server would play.

    Select ‘Features’. Next scroll down the list and select the ‘SMTP Server’ feature. Then click on next.

    A new window appears to inform you that some other services can also be installed. Click “Add Features” to confirm and continue.

    Click on ‘Next’ to continue.

    Click on ‘Install’ to complete the installation.

    Once the installation has been completed, click on ‘Close’. Close button will appear after complete installation.

    Configuration of SMTP Services
    Launch the Internet Information Services (IIS) 6.0 Manager.

    Right-click on ‘SMTP Virtual Server #1’ and select ‘Properties’.

    Tap the General tab and change the IP Address to the server’s IP address.

    Then tap the ‘Access’ tab and click on the ‘Connection’ button.

    In the Connection window, select ‘Only the list below’ and click on the ‘Add’ button.

    Select the ‘Single computer’ option. To use the internal SMTP, type the IP address, add ‘Group of computers’ or ‘Domain’ of the devices permitted, and then click on the ‘OK’ button.

    In the ‘Access’ tab of the Connection window, click on the ‘Relay’ button to add the same permitted devices to the Relay restrictions’ list.

    In the ‘Delivery’ tab of the Connection window, set an external domain.

    Go to ‘Run’ and type wf.msc. This will launch the Windows Firewall with Advanced Security console.
    To begin the wizard, right-click on ‘Inbound Rules’ and select ‘New Rule’.

    Select ‘Port’ and click on ‘Next’.

    Set the local port to 25 and click on ‘Next’.

    Select ‘Allow the connection’ and click on ‘Next’.

    Uncheck ‘Public’ (Ignore if you want to access the services from outside) to prevent external access to the server. Click on ‘Next’.

    Give the rule a name, and click on ‘Finish’.

    You can now see a new rule enabled in the firewall management console.

    Go to ‘Run’ and type wf.msc.

    Here you can see that SMTP services are running.

    Now you can deliver the mails with your windows server 2016 email server as per your convenience.

    Hope this helps with your query,

    -------
    --If the reply is helpful, please Upvote and Accept as answer--

    1 person found this answer helpful.

  2. Jamie Sabbatella 646 Reputation points
    2021-12-17T01:12:05.457+00:00

    Hi,

    You could use the SMTP server in IIS. Here is a good article on Server 2016: https://www.znetlive.com/blog/how-to-configure-smtp-server-in-windows-server-2016/

    Thanks,

    Jamie

    0 comments No comments

  3. Matt Sowders 26 Reputation points
    2021-12-22T15:20:09.84+00:00

    how can i incorporate this with my domain currently pointed to gmail? I'm needing to be able to use this along side with Gmail. I'm just not very sharp on SMTP and DNS MX records.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.