Modules - Mail Server - SMTP

Contents

Overview

Mail Server - SMTP Information
Description SMTP/MTA mail server.
Package Name cc-postfix
Configuration Page Software > Mail > SMTP Mail Server


You can manage your own mail server. There are a number of reasons this might be advantageous:

  • Ability to have a customized user and domain name - ie. anyone@anydomain.com
  • Mailboxes limited only by hard disk storage capacity and your own administration settings
  • Alias support - i.e. sales@yourcompany.com can be sent to bob@yourcompany.com and joe@yourcompany.com
  • No waiting around for new users to be added
  • Custom antispam control
  • Antivirus support
  • Privacy
  • Full control

Services

A number of services are available for mail services:

  • Antivirus ASP
  • Antispam ASP
  • Mail Backup

Please visit the Gateway Services page for details.

Installation

If you did not select this module to be included during the installation process, you must first install the module.

Configuration

SMTP Mail Configuration

General Settings

The Hostname does not have to be related to the e-mail domains that you host. It can be ANY valid Internet name for your machine. For example, you may wish to have a dedicated mail server on your network. In this case, you might want to name this machine mail.yourdomain.com. This would be the Hostname you would enter.

The Primary Domain field indicates the domain name this server will act as an SMTP/Mail server for. If you have a single domain name that you receive mail for, enter the domain here.

If SMTP Authentication field is set to on, any client attempting to send mail through the server will require a username/password before accepting mail for delivery.

The Maximum Message Size sets the maximum size of an individual mail message. Most Internet service providers (ISPs) block mail larger than 10 or 20 MB, so do not expect to have larger messages delivered to outside users. Due to the way e-mail systems work, an attached file may be 50% larger once attached.

The Catch-All setting can be used to catch mis-addressed e-mail and deliver it to a specific user account. We highly recommend avoiding this feature for the following reasons:

  • Your system will scan all messages for viruses and spam instead of bouncing the message right away. This means more system resources (CPU, RAM) are required.
  • Your system will attract more spam. Spammers will avoid invalid e-mail addresses, but setting a catch-all user means all e-mail addresses to your domain are valid.
SMTP Authentication - Thunderbird

For Mozilla's Thunderbird, click on "Tools --> Account Settings" and then click on the "Outgoing Server (SMTP)" field. You should see a window similar to the screenshot below.

Image:ss_smtp_auth_mozilla.png

Ensure the "Use name and password" setting is checked and enter the username of the mail account in the username field. The password will be requested by the mail client application on the first attempt to send mail. There will be an option to save it to the "Password Manager" so that you do not have to enter each time you send mail through the server.

SMTP Authentication - MS Outlook/Outlook Express

If you are using MS Outlook/Outlook Express, click on "Tools --> Accounts". Select the account which will use this mail server to send mail and click on the "Properties".

Image:ss_smtp_auth_outlook.png

Make sure the "My server requires authentication" is checked. Click on the "Settings" button to enter the details of your username/password.

Image:ss_smtp_auth_outlook_servers.png

Setting the Catch All User to an valid user on the server will pass all mail sent to an "Unknown user" to this account. To bounce mail addressed to an invalid recipient, set to Return to sender.

Trusted Networks

A trusted network is a list of networks that are allowed to send mail through the SMTP server. Dynamic IP's should not be added to this list. It is important that you do not make an error with this parameter. The default setting allows any user with a 192.168.x.x address send e-mail through the server. If you use a 10.x.x.x address, you should add 10.0.0.0/8 to the list of trusted networks.

Outbound Relay Hosts

Some ISPs will block all traffic on port 25 unless it it destined for their mail servers. In this case, you would want to specify your ISPs mailserver as the Outbound Relay Hosts.

In addition, if you are subscribed to the ASP Antivirus service and want to scan your user's outgoing mail, you should enter the following:

  • antivirus.pointclark.com

This address points to a cluster of three (or more) mail servers. The change is required since the newer version of Postfix included with ClarkConnect 3.x supports only one outbound relay host.

Additional Domains

Destination Domains

If your company/organization has multiple domains and you wish to receive email sent to any user for any of the domains, enter additional domains to the Destination Domains list. For example, if our primary domain was setup to be "pointclark.net" and we wanted all emails sent to the following registered domains to be valid:

  • pointclark.com
  • pointclark.org
  • clarkconnect.com
  • clarkconnect.org

we would add the bulleted domain list above to the "Destination" domains list.

Virtual Domains

Warning! 
  Virtual domains will not be supported in version 5.0 and we do not recommend using this feature in version 4.x. The feature is only in 4.x to support legacy systems.  
 


Use the "Virtual Domains" list if you are using ClarkConnect as an SMTP server for multiple clients. By adding to the Virtual Domains list rather than the Destination Domains list, you will have complete control over which user receives mail for a particular domain.

Mail Forward Domain List

ClarkConnect can be configured to be an antivirus and antispam mail gateway. For example, you can put a ClarkConnect system between the Internet and a Microsoft Exchange server.

If you are configuring your server as a mail gateway, add the domain name to the Mail Forward Domain List. If the antispam engine is installed and running on the server, mail will be subject to the spam identification rules you have configured. Similarly, if the antivirus module is installed and running, all mail for the domains will be scanned before passing the mail on to the destination server.

Troubleshooting

Firewall

Do not forget to open up firewall ports for your e-mail server: port 25 on the firewall configuration page.

ISP Blocking

Some ISPs are known to block SMTP (port 25) traffic to residential broadband connections in an attempt to cut down on SPAM originating from their network. If you think your configuration is set-up correctly and you suspect your ISP is blocking SMTP traffic, try a port scan.

Virtual Domains

If you are using the server to provide mail service to multiple domains (virtual domains), it is advisable to set up all domains on the system as virtual and enter a false domain (ie. placeholder.com) in the "Primary Domain" field. Otherwise, all users would have access to the domain listed in the primary domain field.

Links

Retrieved from "http://wiki.clarkconnect.com/docs/Modules_-_Mail_Server_-_SMTP"

This page has been accessed 19,788 times. This page was last modified on 20 October 2008, at 22:15.