locked
Exchange 2013 Dynamic SMTP Address RRS feed

  • Question

  • Hi,

    this week I received a request from the Dev team, to be more specific a Moodle administrator, asking for a mailbox to use with a moodle forum. The idea is, when a new thread is created, or any message is sento to the forum, everyone in the fórum gets an email, and then can reply the thread directly from the mail client, outlook in my case. When they do so, a message to a random SMTP address is sent.

    The scructure of the response email address is emailalias+randomcharacters@mydomain.com.

    As expected, the user receives a NDR with the message that the address does not exist.

    How can I make this work in Exchange? Already tried a few things, also searched on the web, but I couldn't find any information to help me on this.

    Any ideas?

    Thanks!


    Rafael Monteiro

    Sunday, October 18, 2015 7:18 PM

Answers

  • You could write a script that creates a new mailbox with a random SMTP address or applies a random SMTP address to an existing mailbox, depending on what you actually want.  I would think it's the former, but you didn't really explain in sufficient detail how you'd use it.  That wouldn't be a difficult script to write.  To my way of thinking, the hardest part of this would be figuring out how to manage cleanup of mailboxes no longer needed and determining that they are no longer needed.

    Something to think about, instead of a mailbox, maybe a distribution group would work better.


    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
    Celebrating 20 years of providing Exchange peer support!

    Sunday, October 18, 2015 9:02 PM
  • Thank's everyone for the feedback.

    I'm aware of the configuration for retrieving e-mails, via imap, that moddle uses.

    I'm surprised that Exchange does not support such a common feature, but since it doesn't, I'm going to look for another solution that does...

    Thank you again for the help.


    Rafael Monteiro

    • Proposed as answer by ADx6 Monday, October 19, 2015 9:38 PM
    • Unproposed as answer by ADx6 Monday, October 19, 2015 9:39 PM
    • Proposed as answer by Andy DavidMVP Monday, October 19, 2015 9:39 PM
    • Marked as answer by Simon_WuMicrosoft contingent staff Monday, November 9, 2015 11:13 AM
    Monday, October 19, 2015 9:09 PM

All replies

  • You could write a script that creates a new mailbox with a random SMTP address or applies a random SMTP address to an existing mailbox, depending on what you actually want.  I would think it's the former, but you didn't really explain in sufficient detail how you'd use it.  That wouldn't be a difficult script to write.  To my way of thinking, the hardest part of this would be figuring out how to manage cleanup of mailboxes no longer needed and determining that they are no longer needed.

    Something to think about, instead of a mailbox, maybe a distribution group would work better.


    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
    Celebrating 20 years of providing Exchange peer support!

    Sunday, October 18, 2015 9:02 PM
  • Hi,

    To reply to Moodle forum threads by email, see the instructions here: https://docs.moodle.org/28/en/Incoming_mail_configuration. Moodle will retrieve emails from a mailbox using IMAP.

    To configure IMAP on Exchange, see here: https://technet.microsoft.com/en-us/library/jj657728(v=exchg.150).aspx and here: https://technet.microsoft.com/en-us/library/bb124489(v=exchg.150).aspx.

    Moodle will expect email that is sent to moodle+xxxxxxxxxxxxx@domain.com to be delivered to the moodle@domain.com mailbox. This is called Disposable Email Addressing or Plus Addressing. Exchange doesn't support this and you cannot set up an Exchange Transport Rule for this. 

    To get around this issue, you can configure an additional email domain such as user@moodle.domain.com and configure this to use a different mail system for use by Moodle only.

    Thanks.


    Please mark as an answer if this answers your question

    Mark Gossa

    MCSE 2003, MCITP Enterprise Administrator 2008 R2, MCSA 2012 R2, MCTS Exchange 2010

    Blog: http://markgossa.blogspot.com

    Posts are provided “AS IS” without warranty of any kind, either expressed or implied.

    • Proposed as answer by EMMmmmmmm Monday, October 19, 2015 7:48 AM
    Sunday, October 18, 2015 11:36 PM
  • Thank's everyone for the feedback.

    I'm aware of the configuration for retrieving e-mails, via imap, that moddle uses.

    I'm surprised that Exchange does not support such a common feature, but since it doesn't, I'm going to look for another solution that does...

    Thank you again for the help.


    Rafael Monteiro

    • Proposed as answer by ADx6 Monday, October 19, 2015 9:38 PM
    • Unproposed as answer by ADx6 Monday, October 19, 2015 9:39 PM
    • Proposed as answer by Andy DavidMVP Monday, October 19, 2015 9:39 PM
    • Marked as answer by Simon_WuMicrosoft contingent staff Monday, November 9, 2015 11:13 AM
    Monday, October 19, 2015 9:09 PM
  • As to it being a common request, this is the first time I've seen such a request in over twenty years experience doing Exchange peer support.

    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
    Celebrating 20 years of providing Exchange peer support!


    Monday, October 19, 2015 9:58 PM