Koozali SME Server wrapper to configure postfix
Go to file
Jean-Philippe Pialasse 51be51501f * Sun Nov 17 2024 <jpp@koozali.org> 1.0-2.sme
- listen only via sockets
- use both unix user and virtual users
- groups and pseudonyms implemented in virtual maps
- support smarthost with and without auth
- support global and per domain delegated mail server
- support ssl
- uses qmail - recipient delimiter in left part of email.
- all domains set as local domains in mydestination
- message_size_limit
- local and remote concurency limit
2024-11-17 22:28:07 -05:00
additional Initial commit 2024-09-25 04:51:20 +02:00
root * Sun Nov 17 2024 <jpp@koozali.org> 1.0-2.sme 2024-11-17 22:25:49 -05:00
.gitignore * Sun Nov 17 2024 <jpp@koozali.org> 1.0-2.sme 2024-11-17 22:28:07 -05:00
contriborbase Initial commit 2024-09-25 04:51:20 +02:00
createlinks * Sun Nov 17 2024 <jpp@koozali.org> 1.0-2.sme 2024-11-17 22:25:49 -05:00
LICENSE Initial commit 2024-09-25 04:51:20 +02:00
Makefile Initial commit 2024-09-25 04:51:20 +02:00
README.md * Sun Nov 17 2024 <jpp@koozali.org> 1.0-2.sme 2024-11-17 22:25:49 -05:00
smeserver-postfix.spec * Sun Nov 17 2024 <jpp@koozali.org> 1.0-2.sme 2024-11-17 22:25:49 -05:00

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}/90queue-qmail-queue 
 echo 'return "queue/postfix-queue";' > /etc/e-smith/templates-custom/var/service/{qpsmtpd,sqpsmtpd,uqpsmtpd}/config/peers/{0,local}/90queue-qmail-queue
 config setprop qmail status disabled
 systemctl stop qmail
 signal-event email-update
 dnf install smerserver-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 smerserver-postfix

DONE

  • main domain
  • listen only socket
  • virtual alias for system, pseudonyms, groups, shared

TODO

  • regression: forward email support via .qmail or .forward
  • regression: spam filtering to .junk
  • regression: .qmail support or alternative via .forward
  • regression: maildrop/procmail support directly or via .forward or via .qmail support
  • regression: EmailUnknownUser support ( we can not use luser_relay as we use virtual_alias (this might need to add all unix accoutns in this virtual map and also all needed content of /etc/aliases when not returntosender)
  • switch smeserver-qpsmtpd support to postfix
  • check /usr/sbin/sendmail -> /etc/alternatives/mta -> /usr/sbin/sendmail.postfix upon removal/update of qmail
  • .foward support
  • remove from smeserver-mail /usr/local/sbin/smtp-auth-proxy.pl
  • migrate and rewrite code for smtp-auth-proxy properties
  • migrate and remove qmail properties to postfix
  • make a copy of qmail/config/smtproutes to (su)qpsmtpd/config/smtproutes

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
  • qmail/postfix->MaxMessageSize defined as 15Mb
  • qmail/postfix->FilterType (empty)
  • qmail/postfix->ConcurrencyRemote default to 20
  • qmail/postfix->ConcurrencyLocal default to 20
  • qmail/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