Setting the domain and configuring the relay option