Contents


On-line Guides
All Guides
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems

How To Guides
Xen Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions

 

 

Postfix Documentation
Previous Page Home Next Page

Filtering mail from outside users only

The easiest approach is to configure ONE Postfix instance with multiple SMTP server IP addresses in master.cf:

  • Two SMTP server IP addresses for mail from inside users only, with content filtering turned off.

    /etc/postfix.
    master.cf:
        # ==================================================================
        # service      type  private unpriv  chroot  wakeup  maxproc command
        #                    (yes)   (yes)   (yes)   (never) (100)
        # ==================================================================
        1.2.3.4:smtp   inet  n       -       n       -       -       smtpd
            -o 
    smtpd_client_restrictions=
    permit_mynetworks,reject
        127.0.0.1:smtp inet  n       -       n       -       -       smtpd
            -o 
    smtpd_client_restrictions=
    permit_mynetworks,reject
    
  • One SMTP server address for mail from outside users with content filtering turned on.

    /etc/postfix.
    master.cf:
        # =================================================================
        # service     type  private unpriv  chroot  wakeup  maxproc command
        #                   (yes)   (yes)   (yes)   (never) (100)
        # =================================================================
        1.2.3.5:smtp  inet  n       -       n       -       -       smtpd
            -o 
    content_filter=filter-service:filter-destination 
            -o 
    receive_override_options=
    no_address_mappings
    

After this, you can follow the same procedure as outlined in the "advanced" or "simple" content filtering examples above, except that you must not specify " content_filter" or " receive_override_options" in the main.cf file.

Postfix Documentation
Previous Page Home Next Page