Postfix configuration file

Example of the postfix/ configuration file

Following is the example of Postfix configuration file on Debian. You can see the lines that are added by the control panel.

enable the file postfix-aliases:

 alias_maps = hash:/etc/aliases
 alias_database = hash:/etc/aliases

enable the file postfix-localhostnames:

 virtual_mailbox_domains = /etc/mail/local-host-names

enable the file postfix-domainips:

 sender_dependent_default_transport_maps = regexp:/etc/mail/domainips

enable the file postfix-virtusertable:

 virtual_alias_maps = hash:/etc/mail/virtusertable

if authorization through dovecot is used:

 smtpd_sasl_type = dovecot
 smtpd_sasl_path = private/auth

if authorization through sasldb2 is used:

 smtpd_sasl_type = cyrus
 smtpd_sasl_path = smtpd

check recipient limits:

 smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination, check_client_access hash:/etc/mail/access, check_sender_access hash:/etc/mail/access,check_recipient_access hash:/etc/mail/access, permit_sasl_authenticated, reject_unlisted_recipient, reject_unverified_recipient, check_policy_service unix:/var/run/postgrey.sock
  • check_policy_service unix:/var/run/postgrey.sock - подключение грейлистинга

check sender limits:

 smtpd_sender_restrictions = check_sender_access hash:/etc/mail/access, permit_sasl_authenticated

enable milter-interfaces:

 smtpd_milters = unix:/var/spool/postfix/spamass/spamass.sock, inet:, unix:/var/run/clamav/clamav-milter.ctl
  • unix:/var/spool/postfix/spamass/spamass.sock -SpamAssassin
  • inet: - Opendkim
  • unix:/var/run/clamav/clamav-milter.ctl - Clamav

In the postfix-master file the following is specified:

define dovecot-lda mail delivery:

 dovecot   unix  -       n       n       -       -       pipe
   flags=DRhu user=dovecot:mgrsecure argv=/usr/lib/dovecot/dovecot-lda -f ${sender} -d ${recipient}

mail delivery interface with deactivated chroot:

 smtp    inet    n       -       n       -       -       smtpd

Was this answer helpful?

 Print this Article

Also Read

Software products

This module can be used for manging software products. You can select a version of the control...


ISPmanager by default uses Afterlogic as a web-interface for email management. Official...

ISPmanager Web-server configuration

Supported software Currently, ISPmanager supports the following servers: Nginx 1.1.15 and...

How the Firewall module works

Introduction Firewall is a standard security system for operating systems on which ISPmanager is...

Applications (ISPmanager)

In this module you can manage a wide range of server applications available to you and...