setsmtp
Syntax and description
The setsmtp command enables you to configure the email server's settings. The arguments of the command are equivalent to the values set in the Misc tab of the Settings page. The server must be stopped before this command is executed.
mobiletogetherserver setsmtp [options] --host=StringValue --port=StringValue --ssl=true|false |
•The --host, --port, and --ssl arguments are mandatory.
•host and port specify the SMTP host name and SMTP port of your ISP's SMTP server. These details are provided to you by your ISP.
•ssl specifies whether SSL is used or not.
MobileTogetherServer on Windows mobiletogetherserver on Windows and Unix (Linux, Mac)
* Note that lowercase (mobiletogetherserver) works on all platforms (Windows, Linux, and Mac), while upper-lower (MobileTogetherServer) works only on Windows and Mac. * Use forward slashes on Linux and Mac, backslashes on Windows.
|
On Windows systems: When spaces or special characters occur in strings (for example in file or folder names, or company, person or product names), use quotes: for example, "My File". Note, however, that a backslash followed by a double-quotation mark (for example, "C:\My directory\") might not be read correctly. This is because the backslash character is also used to indicate the start of an escape sequence, and the escape sequence \" stands for the double-quotation mark character. If you want to escape this sequence of characters, use a preceding backslash, like this: \\". To summarize: If you need to write a file path that contains spaces or an end backslash, write it like this: "C:\My Directory\\".
|
Example
Examples of the setsmtp command:
mobiletogetherserver setsmtp --host=mySMTPServer --port=25 --ssl=false
mobiletogetherserver setsmtp --host=mySMTPServer --port=25 --ssl=false --user=AltovaMT --password=MyPassword
Options
Options are listed in short form (if available) and long form. You can use one or two dashes for both short and long forms. An option may or may not take a value. If it takes a value, it is written like this: --option=value. Values can be specified without quotes except in two cases: (i) when the value string contains spaces, or (ii) when explicitly stated in the description of the option that quotes are required. If an option takes a Boolean value and no value is specified, then the option's default value is TRUE. Use the --h, --help option to display information about the command.
--change_password_on_next_login = true|false This option determines whether the user must change their password on the next login. The default—that is, if the option is not specified—is false.
|
--datadir = PathToDatabaseDirectory Specifies the path of the database directory.
|
--password = StringValue Sets the password for accessing this user's email account.
|
--passwordpolicy = Policy Sets the password policy that must be followed for this user's password. For information about creating password policies, see the topic Password Policies.
|
--user = StringValue Specifies the user name of an email account that is registered with the email service provider.
|