smeserver-postfix/README.md
Jean-Philippe Pialasse 0e6e82c9a1 * Sun Dec 15 2024 Jean-Philippe Pialasse <jpp@koozali.org> 1.0-5.sme
- add mini-qmail as Message delivery agent  [SME: 12737]
  few other fixes; +x on needed executable files
  migrate old qmail properties used in postfix
  catch all non existing recipient / check BCC working
2024-12-16 17:14:34 -05:00

6.0 KiB

smeserver-postfix

SMEServer Koozali developed git repo for smeserver-postfix core

Wiki


https://wiki.koozali.org/smeserver-postfix

Bugzilla

Show list of outstanding bugs: All
Confirmed
Unconfirmed
Need info
In progress
Resolved
Verified

Description

Koozali SME Server wrapper to configure postfix

Development and testing

 mkdir -p /etc/e-smith/templates-custom/var/service/{qpsmtpd,sqpsmtpd,uqpsmtpd}/config/peers/{0,local} 
 echo 'queue/postfix-queue' | tee  /etc/e-smith/templates-custom/var/service/{qpsmtpd,sqpsmtpd,uqpsmtpd}/config/peers/{0,local}/90queue-qmail-queue > /dev/null
 config setprop qmail status disabled
 systemctl stop qmail
 signal-event email-update
 dnf install smeserver-postfix

then test

 echo "This email confirms that Postfix is working" | mail -s "Testing Posfix" emailuser@example.com

or using roundcube/ mail client

to remove

 rm -rf /etc/e-smith/templates-custom/var/service/{qpsmtpd,sqpsmtpd,uqpsmtpd}/config/peers/{0,local}/
 config setprop qmail status enabled
 systemctl start qmail
 signal-event email-update
 dnf remove smeserver-postfix

DONE

  • main domain
  • listen only socket
  • virtual alias for system, pseudonyms, groups, shared
  • forward email support via .qmail
  • spam filtering to .junk
  • .qmail support using mini-qmail + wrapper and seakablepipe
  • maildrop/procmail support directly via .qmail
  • check /usr/sbin/sendmail -> /etc/alternatives/mta -> /usr/sbin/sendmail.postfix
  • EmailUnknownUser support use luser_relay. if we had virtual domain we could not use it
  • migrate and remove qmail properties to postfix

TODO

  • remove from smeserver-mail /usr/local/sbin/smtp-auth-proxy.pl
  • migrate and rewrite code for smtp-auth-proxy properties
  • make a copy of /var/qmail/control/smtproutes to (su)qpsmtpd/config/smtproutes

FUTURE

  • .foward support, when/if .qmail support is dropped
  • TODO VirtualMail for domain with catchall and EmailUnknownUser ( we can not use luser_relay if we use virtual_alias
  • ldap / AD user support

TO CHECK $prop->{Blacklist} = $smtp_proxy_rec->prop('Blacklist') || " "; $prop->{Debug} = $smtp_proxy_rec->prop('Debug');

VARIABLES

domain

  • domain -> EmailTo to send all emails for a domain to an email
  • domain -> MailServer
  • domain -> VirtualMail as default disabled, will only accepte mails to a defined pseudonym for this domain

config

  • DelegateMailServer
  • SMTPSmartHost
  • postfix->MaxMessageSize defined as 15Mb
  • postfix->FilterType (empty)
  • postfix->ConcurrencyRemote default to 20
  • postfix->ConcurrencyLocal default to 20
  • postfix->DoubleBounceTo default to postmaster
  • postfix->tls_security_level default to may
  • postfix->tls_enforce_peername default to yes
  • $qpsmtpd{HeloHost} default to $myhostname
  • smtp-auth-proxy SMTPSmartHost
  • smtp-auth-proxy Userid
  • smtp-auth-proxy Passwd
  • smtp-auth-proxy PeerPort
  • EmailUnknownUser (default to returntosender)

REFERENCES