Table of Contents

Email Gateway Considerations

This guide is intended as a 'best practice' guide for email sending and receiving from ClearOS. It assumes that you are using the SMTP Server app for mail and is the usual situation for Zarafa -OR- Cyrus on ClearOS. The service which handles the delivery of mail to and from your site is called Postfix.

What Postfix does

The Postfix service handles incoming mail and outgoing mail. There are several points of incoming and outgoing mail to this system. In many ways, this works similar to the veins and arteries near the human heart. Inbound mail can be inbound to Postfix on it's way to be sent OUTBOUND!

Incoming

Postfix can accept mail from some vectors including but not limited to:

Outgoing

Postfix can send mail out certain vectors including but not limited to:

Requirements for sending and receiving Internet mail

Email is typically transmitted over the internet via port 25. Your firewall should have this port open if you want to receive email. Additionally, your ISP must ALSO allow your host to receive port 25 traffic. From other hosts on the internet you can test this by 'telnet'ing to port 25.

Additionally, port 25 has to be available on outbound connections as well. ClearOS will, by default, allow port 25 traffic originating on the server to flow to the Internet. However, your provider may block your ability to send SMTP out from your server. One way to test this is to see if you can telnet to port 25 on a mail server on the internet. The following is an example of a connection from a ClearOS server to one of Google's Gmail servers:

[root@clearos-server ~]# telnet gmail-smtp-in.l.google.com 25
Trying 74.125.129.26...
Connected to gmail-smtp-in.l.google.com.
Escape character is '^]'.
220 mx.google.com ESMTP uh1si7933785pab.94 - gsmtp
quit
221 2.0.0 closing connection uh1si7933785pab.94 - gsmtp
Connection closed by foreign host.

Anti-spam and Anti-virus

ClearOS has the capability of stopping spam and anti-virus. ClearOS will scan mail without regard to the direction that the mail is going. This means that both your incoming and OUTGOING emails will be scanned for viruses and spam.

The Internet thinks I'm sending spam

While operating an email server you may get flagged as a site for sending spam. Usually this occurs because your location is in FACT sending spam. There are a number of reasons why this occurs. Among them:

search?q=clearos%2C%20clearos%20content%2C%20AppName%2C%20app_name%2C%20kb%2C%20howto%2C%20xcategory%2C%20maintainer_dloper%2C%20maintainerreview_x%2C%20keywordfix&btnI=lucky