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

Backup archives

In this module you can use a list of archives that were stored during the backup process. You can...

Backups in ISPmanager 5

Data collection Before starting a backup process, data from the control panel's modules that...

Software products

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

Database size

Database size User database size cache allows for decreasing load on database servers and...

Migration from ISPmanager 4

Introduction Migration from ISPmanager 4 is supported only on Unix-based operating systems. The...