Comodo Help
Find the desired product help
Comodo Antispam Gateway

Comodo Antispam Gateway

Admin Guide ver 1.10

English

Print Help Download Help
Getting Started > Outgoing Filtering Configuration > Outgoing Smarthost Setup > Configuring PostFix To Use A Smarthost
  • Introduction To Comodo Antispam Gateway
    • Release Notes
    • Purchasing License
    • Adding More Users, Domains Or Time To Your Account
    • License Information
  • Getting Started
    • Incoming Filtering Configuration
      • Configuring Your Mail Server
      • Configuring MX Records
        • Updating MX Records In Windows 2003/2008 Server
        • Updating MX Records On A Host Using BIND
        • Updating MX Records For Comodo DNS
        • Updating MX Records For GoDaddy
        • Updating MX Records For Enom
        • Updating MX Records For Network Solutions
        • Updating MX Records For Yahoo! Small Business
        • Updating MX Records For 1and1
        • Updating MX Records For 4D Web Hosting
        • Updating MX Records For DNS Park
        • Updating MX Records For DreamHost
        • Updating MX Records For DynDNS
        • Updating MX Records For IX Web Hosting
        • Updating MX Records For No-IP
        • Updating MX Records In CPanel
    • Outgoing Filtering Configuration
      • Per-User Authentication
      • Outgoing Smarthost Setup
        • Configuring QMail To Use A Smarthost
        • Configuring PostFix To Use A Smarthost
        • Configuring Sendmail To Use A Smarthost
        • Configuring Exchange 2000/2003 To Use A Smarthost
        • Configuring Exchange 2007/2010 To Use A Smarthost
        • Configuring Exim To Use A Smarthost
          • Configuring Exim / CPanel To Use A Smarthost
          • Configuring Exim / Directadmin To Use A Smarthost
  • The Administrative Interface
    • Logging-in To The Administrative Interface
    • The Dashboard Area
      • Domain Management
        • Adding Domains
        • Deleting Domains
        • Editing Domains
        • Managing Domain
          • Incoming
            • Quarantine
            • Incoming Spam Detection Settings
            • Report Spam
            • Delivery Queue
            • Destination Routes
            • Local Recipients
            • Clear Incoming Cache
            • Log Search
            • Domain Aliases
            • Domain Settings
            • Manage Report Subscriptions For Selected Domain
          • Outgoing
            • Clear Outgoing Cache
            • Log Search
            • Users
          • Email Management
            • Email Size Restrictions
            • Blocked Extensions
            • Released Requests
            • Blacklisted Requests
            • Whitelisted Requests
          • Whitelist / Blacklist
            • Recipient Whitelist
            • Sender Whitelist
            • Recipient Blacklist
            • Sender Blacklist
          • Account Management
            • User Account Management
            • Viewing User History
            • Importing Users From LDAP
              • LDAP Import Configuration
              • LDAP Import Confirmation List
              • LDAP Import Ignore List
      • Administrator Account Management
        • Administrators
        • Groups & Permissions
        • My Profile
          • Changing Password Of The Administrator
          • Change Settings
        • User History
      • Customer Management
        • Viewing Customer Information
        • Managing Subscriptions For Reports
  • CASG Reports - An Overview
    • Quarantine Report
    • Domain Statistics Report
  • Appendix 1 – CASG Error Codes
  • About Comodo

Configuring PostFix to use a Smarthost


Routing all mails to a smarthost :


These instructions assume the postfixconfig files live in /etc/postfix/main.cf


In/etc/postfix/main.cfadd the line:


relayhost = mxsrv1.spamgateway.comodo.com:587


Routing all mails for a specific domain to a smarthost :


Note: The information below relates to a very specific customer requirement and is not recommended for most deployments. A configuration like this can cause problems which will be hard to troubleshoot. Unless you are sure you need to use this setup, please explore the other available options for routing mail.

 


Add a line to /etc/postfix/transport:

example.com smtp:mxsrv1.spamgateway.comodo.com:587



generate a postmap file :

postmap hash:/etc/postfix/transport

To use the transport file, add or edit a line in /etc/postfix/main.cf:

transport_maps = hash:/etc/postfix/transport


Restart Postfix and all mail. The mail for selected domains should go trough the Smarthost.
Terms and Conditions Privacy Policy

© Comodo Group, Inc. 2013. All rights reserved.