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

Working with API

Authentication methods Session unique ID authentication You can use this method when working...

Enabling disk quotas

Enabling disk quotas in ISPmanager To enable disk quotas in ISPmanager, browse to the "Software"...

ISPmanager Lite database structure

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

Integration with ISPmanager

Add a new user in DNSmanager for each server running ISPmanager. Disable apparmor or...

Sheduler (cron) (ISPmanager)

ISPmanager allows automatic execution of scheduled jobs using Cron. Cron is a daemon that...