Mail service lets users send and receive email on your local network and the Internet using any email app. Use the Mail service pane of the Server app to enable or disable Mail, set the Mail server domain name and virtual domains, and configure mail filtering, authentication methods, relay servers, and the server mail storage quota.
Mail service is available to any mail client app on any operating system that uses the standard IMAP, POP, and SMTP email protocols. Everyone with a user account on your server gets an email address. Mail service includes filters that protect users from junk mail and viruses.
To allow access to Mail services outside your local network (from the Internet), you must have an Internet connection. If you’re behind a firewall or router, you must configure the firewall or port forwarding (port mapping) settings on the firewall or router. For more information, see Server access overview.
You configure the Mail server to respond to mail traffic for a specific domain.
In mail administration terms, you’re designating the mail server as the “mail exchange” for the domain. Domains are the names an organization uses to determine its network identity on the Internet, like example.com.
With your DNS provider, you should also verify that the MX record in the DNS entries matches the domain name you configure here. A DNS hosting service can help you with this. Your ISP or DNS registrar might provide DNS hosting service, or you can search for a provider on the web.
If you use OS X Server for your DNS service, you set your own MX records. See Add a mail exchange record.
You can have your server be the mail server for any number of domains. These additional domains are called virtual domains and you configure and add them in this pane. Virtual domains also must have complete DNS MX records pointing to your server.
Create the MX record for your mail domain with your DNS provider.
In the Mail pane, click Add below the Domains section.
Enter the Domain name served by your Mail server.
Create email addresses for users of this domain.
Click Add , then enter the user name that will receive mail in the Members column.
The field will try to autocomplete the entry with local users and network users.
The email address name is automatically filled in.
If you wish, change the address by selecting the short name in the Email column and entering the new email address.
Click Create.
Repeat for all domains that are hosted by the mail service.
You can have your server provide an email address for your user for any number of domains that you host. These additional domains are called virtual domains. Virtual domains must be enabled prior to adding users and email addresses to them.
For example, you might want to make mail to “marketing@example.com” go to John Doe’s existing hosted mail account on myserver.com, “johndoe@myserver.com.”
By default, any local or local network user on your server will be included, if the listed domain matches your server’s host name.
In the Mail pane, select the desired domain, then click Edit .
In this example, the desired domain would be example.com.
Click Add , then enter the user name that will receive mail in the Members column.
The field will try to autocomplete the entry with local users and network users.
The email address name is automatically filled in.
By default, it’s the short name of the user. For example, John Doe’s short name is “johndoe,” so when you add the email account for example.com, the address is johndoe@example.com.
If you wish, change the address by selecting the short name in the Email column and entering the new email address.
In this example, you would want to change the Email column to read “marketing.”
Click Create.
Users that want to send and receive email using your Mail server must authenticate to your server. By default, these authentication methods are enabled for your server:
Authentication method | Kerberos | Digest-MD5 | Digest (CRAM-MD5) | Cleartext | APOP (POP mail only) |
---|---|---|---|---|---|
Open Directory | X | X | X | If SSL is enabled |
|
Active Directory | X | X |
| X |
|
Local Users |
| X | X | If SSL is enabled |
|
Custom |
If you’re using Active Directory to manage users, you must select Active Directory as the method of authentication.
In the Mail pane, click the Edit button next to Authentication.
Choose one of the preset authentication groupings, based on how users authenticate to your server, or choose Custom to tailor the authentication to your environment.
Mail service applies your chosen authentication methods to the mail access protocols POP and IMAP, and when relaying mail through SMTP.
Click OK.
Use the Server app to specify a mail relay server. Your mail service can relay outgoing mail through another server, and that relay server then forwards the mail to its destination.
Some ISPs require that all mail be sent through their servers even if you’re running your own mail server. You set the mail relay server to forward mail through your ISP’s servers.
In the Mail pane, select “Relay outgoing mail through ISP.” If this option is already selected, click the Edit button.
A dialog appears for entering the relay server connection details.
Enter the relay server’s DNS name or IP address supplied by your ISP or organization.
If you need a custom port, specify a port number after the IP address or host name. For example, you could enter 17.2.3.4:587 or example.com:587.
You can disable your mail exchange (MX) lookups by entering your IP address or host name in brackets. For example, [17.2.3.4] or [example.com].
If your ISP or organization requires your server to authenticate before sending mail, select “Enable SMTP relay authentication,” then enter the user name and password supplied by your ISP or organization.
If you select “Enable SMTP relay authentication,” your credentials are sent using the strongest authentication method available: Cleartext (if SSL is enabled), CRAM-MD5, Digest-MD5, or Kerberos.
After a mail delivery connection is made and the message is accepted for local delivery, the Mail server can screen it before delivery. All local or remote mail deliveries are scanned for viruses, but only local mail passes through the spam scanner. OS X Server can analyze the text of a message, and give it a probability rating for being junk mail. The Mail server can reject mail from other mail servers that are considered blacklisted. You can use greylist filtering to reject unknown senders until they’re proven legitimate. You can also have Mail service scan incoming messages for junk mail and viruses. For more information, see Junk mail and virus filtering options.
In the Mail pane, click Edit Filtering Settings.
Select which filtering options to enable on your Mail server.
You can set a default mail quota for all users by enabling and setting limits for mail storage on your server. You can also set individual mail quotas in the Users pane. Individual user quotas override global quotas for all users. If a user exceeds the quota, the server prevents mail delivery for that user.
To set a default quota for all users, select Mail in the Server app sidebar, select “Limit mail to MB per user,” then enter the limit.
To set a quota for an individual user, select Users in the Server app sidebar, Control-click the user’s name, then select Edit Mail Options, then enter the limit.
You can forward a user’s mail to another email address using mail options.
Select Users in the Server app sidebar.
Control-click a user, click the pop-up menu at the bottom of the pane, then select Edit Mail Options.
Choose forwarded from the “Mail should be” pop-up menu.
Enter a forwarding email address, then click OK.
Use the Server app to enable a group mailing list through the group services settings.
Select Groups in the Server app sidebar.
Double-click a group name, or click the Action pop-up menu , then choose Edit Group.
Select Enable group mailing list.
You use the listed address to email all members of the group.
Click Done to save your changes.
For information about setting up a group mailing list, see Choose group services.