LDA

From QmailToaster
Revision as of 17:28, 26 March 2024 by Ebroch (talk | contribs) (Created page with "Install Dovecot Pigeonhole with Sieve protocol enabled Local Delivery Agent (LDA), enable ManageSieve server, specify Sieve rule locations, create Sieve files and set permissions, and restart Dovecot # yum install dovecot-pigeonhole # vi /etc/dovecot/local.conf (Add) mail_location = maildir:~/Maildir protocols = $protocols sieve plugin { sieve = ~/.dovecot.sieve sieve_dir = ~/.sieve } service managesieve-login { inet_listener sieve { port = 4190...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Install Dovecot Pigeonhole with Sieve protocol enabled Local Delivery Agent (LDA), enable ManageSieve server, specify Sieve rule locations, create Sieve files and set permissions, and restart Dovecot

  1. yum install dovecot-pigeonhole
  2. vi /etc/dovecot/local.conf (Add)

mail_location = maildir:~/Maildir protocols = $protocols sieve plugin {

     sieve = ~/.dovecot.sieve
     sieve_dir = ~/.sieve

} service managesieve-login {

     inet_listener sieve {
     port = 4190
     }

} protocol lda {

     mail_plugins = $mail_plugins sieve
     .
     .
     .

}

  1. cd /home/vpopmail/domains/domain.tld/user
  2. mkdir .sieve
  3. touch .sieve/user.sieve
  4. ln -s .sieve/user.sieve .dovecot.sieve
  5. chown -R vpopmail:vchkpw .sieve
  6. chown vpopmail:vchkpw .dovecot.sieve
  7. chmod 700 .sieve

Add Sieve rules to .sieve/user.sieve Enable Dovecot LDA formatted logging

  1. vi /etc/dovecot/local.conf (Add)
     protocol lda {
        deliver_log_format = From:<%f>-<%e> :: Subject:<%s> :: Status:<%$> :: MsgID:<%m> :: Size<%p> :: vSize<%w>
        log_path = /var/log/dovecot-lda/dovecot-lda-errors.log
        info_log_path = /var/log/dovecot-lda/dovecot-lda.log
     }
  1. mkdir /var/log/dovecot-lda
  2. chmod 770 /var/log/dovecot-lda
  3. chown vpopmail:vchkpw /var/log/dovecot-lda
  4. touch /etc/logrotate.d/dovecot-lda (Add settings)

Enable Dovecot LDA for QMT

  1. vi /home/vpopmail/domains/yourdomain.tld/.qmail-default (Edit)

|/home/vpopmail/bin/vdelivermail bounce-no-mailbox (Remove) |/var/qmail/bin/preline -f /usr/libexec/dovecot/deliver -d $EXT@$USER -o postmaster_address=postmaster@yourdomain.tld (Add)

  1. systemctl restart dovecot