Postfix configuration file

Example of the postfix/main.cf 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:127.0.0.1:8891, unix:/var/run/clamav/clamav-milter.ctl
  • unix:/var/spool/postfix/spamass/spamass.sock -SpamAssassin
  • inet:127.0.0.1:8891 - Opendkim
  • unix:/var/run/clamav/clamav-milter.ctl - Clamav

master.cf

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

Access to modules

The ISPmanager control panel allows you to use a wide range of functions to set functionality...

Applications (ISPmanager)

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

ISPmanager Lite database structure

This article describes tables of the internal database of ISPmanager Lite. The description is...

Background tasks

A Background task is a task performed in the system for a long period of time. In the...

Name servers scenario

ISPmanager 5 + 2 DNSmanager as slave name servers This is standard configuration. The server...