Comodo Help
Find the desired product help
Comodo Antispam Gateway

Comodo Antispam Gateway

Admin Guide ver 2.12

English

Print Help Download Help
Get Started > Outgoing Filter Configuration > Outgoing Smarthost Setup > Configure PostFix To Use A Smarthost
  • Introduction To Comodo Antispam Gateway
    • Release Notes
    • Purchase License
    • License Information
  • Get Started
    • Incoming Filtering Configuration
      • Configure Your Mail Server
      • Configure MX Records
        • Update MX Records In Windows 2003/2008 Server
        • Update MX Records On A Host Using BIND
        • Update MX Records For Comodo DNS
        • Update MX Records For GoDaddy
        • Update MX Records For Enom
        • Update MX Records For Network Solutions
        • Update MX Records For Yahoo! Small Business
        • Update MX Records For 1and1
        • Update MX Records For 4D Web Hosting
        • Update MX Records For DNS Park
        • Update MX Records For DreamHost
        • Update MX Records For DynDNS
        • Update MX Records For IX Web Hosting
        • Update MX Records For No-IP
        • Update MX Records In CPanel
    • Outgoing Filter Configuration
      • Per-User Authentication
      • Outgoing Smarthost Setup
        • Configure QMail To Use A Smarthost
        • Configure PostFix To Use A Smarthost
        • Configure Sendmail To Use A Smarthost
        • Configure Exchange 2000/2003 To Use A Smarthost
        • Configure Exchange 2007/2010 To Use A Smarthost
        • Configure Exchange 2013/2016 To Use A Smarthost
        • Configure Office 365 To Use A Smarthost
        • Configure Exim To Use A Smarthost
          • Configure Exim / CPanel To Use A Smarthost
          • Configure Exim / Directadmin To Use A Smarthost
      • DNS Configuration
  • Login To The Admin Console
  • The Dashboard Area
  • The Admin Console
  • Domain Management
    • Add A Domain
    • Delete Domains
    • Edit Domains
    • Validate Domains
    • Manage A Domain
      • Domain Dashboard
      • Incoming
        • Quarantine
        • Manage Archived Mails
        • 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
        • Relay Restrictions
        • Geolocation Restrictions
        • SPF Control Settings
      • Outgoing
        • Clear Outgoing Cache
        • Log Search
        • Users
        • Office 365 Activation
      • Email Management
        • Email Size Restriction
        • Blocked Extensions
        • Released Requests
        • Blacklisted Requests
        • Whitelisted Requests
      • Domain Audit Log
        • Audit Log Configuration
        • View Domain Log
      • Domain Rules
        • Rules
        • TLD And GTLD Rules
        • Recipient Whitelist
        • Sender Whitelist
        • Recipient Blacklist
        • Sender Blacklist
        • Whitelist Senders Per User
        • Blacklist Senders Per User
      • Account Management
        • User Account Management
        • Manage User Auto-import
        • View User History
        • Import Users From LDAP
          • LDAP Import Configuration
          • LDAP Import Confirmation List
          • LDAP Import Ignore List
  • Audit Log
  • Administrator Account Management
    • Administrators
    • User Groups & Permissions
    • Admin Groups & Permissions
    • My Comodo Account
    • My Profile
    • Users History
  • Customer Management
    • End User License And Subscriber Agreements
    • View License Information
    • Manage Report Subscriptions
    • Notification Email Settings
  • CASG Reports - An Overview
    • Quarantine Report
    • Domain Statistics Report
    • Auto-Imported Users Report
    • Quarantine Release Report
    • Reported Spam Report
  • Appendix 1 - CASG Error Codes
  • Appendix 2 - CASG Comparison Table
  • Appendix 3 -Troubleshooting LDAP
  • Appendix 4 - Useful Links
  • About Comodo Security Solutions

Configure PostFix to use a Smarthost

 

You should provide the hostname of the ASG server that you are using as your preferred CASG service domain.


Routing all mails to a smarthost:


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


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


 

European Union


relayhost = mxpool1.spamgateway.comodo.com:587


United States


relayhost = mxpool1.us.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:

European Union

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


United States

example.com smtp: mxpool1.us.spamgateway.comodo.com:587


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.

Our Products
  • Free Antivirus
  • Free Internet Security
  • Website Malware Removal
  • Free Anti-Malware
  • Anti-Spam (Free Trial)
  • Windows Antivirus
  • Antivirus for Windows 7
  • Antivirus for Windows 8
  • Antivirus for Windows 10
  • Antivirus for MAC
  • Antivirus for Linux
  • Free Endpoint Security
  • Free ModSecurity
  • Free RMM
  • Free Website Malware Scanner
  • Free Device Manager for Android
  • Free Demo
  • Network Security
  • Endpoint Protection
  • Antivirus for Android
  • Comodo Antivirus
  • Wordpress Security
Cheap CDN
  • Bootstrap CDN
  • Semantic UI CDN
  • Jquery CDN
  • CDN Plans
  • CDN
  • Free CDN
Enterprise
  • Patch Management Software
  • Patch Manager
  • Service Desk
  • Website Down
  • Endpoint Protection Solutions
  • Website Security Check
  • Remote Monitoring and Management
  • Website Security
  • Device Manager
  • ITSM
  • CRM
  • MSP
  • Android Device Manager
  • MDR Services
  • Managed IT Support Services
  • Free EDR
Free SSL Certificate
Support Partners Terms and Conditions Privacy Policy

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