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

Database size

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

COREmanager installation guide

Installation of IPmanager consists of two steps: installation of COREmanager v.5 (the software...

Customizing DNSmanager

DNSmanager is a DNS slave server management system. It can be used both as a stand-alone...

Backup archives

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

User management (DNSmanager)

There are 3 access levels in the DNSmanager control panel: Administrator - can use all...