LDA: Difference between revisions

From QmailToaster
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
  # yum -y install dovecot-pigeonhole
  # yum -y install dovecot-pigeonhole
  # vi /etc/dovecot/local.conf (Add)
  # Edit /etc/dovecot/dovecot.conf
Add:
  mail_location = maildir:~/Maildir
  mail_location = maildir:~/Maildir
  protocols = $protocols imap pop3 sieve
  protocols = $protocols imap pop3 sieve
Line 27: Line 28:
  Add Sieve rules to .sieve/user.sieve
  Add Sieve rules to .sieve/user.sieve
  Enable Dovecot LDA formatted logging
  Enable Dovecot LDA formatted logging
  # vi /etc/dovecot/local.conf (Add)
  # Edit /etc/dovecot/dovecot.conf
Add:
       protocol lda {
       protocol lda {
         deliver_log_format = From:<%f>-<%e> :: Subject:<%s> :: Status:<%$> :: MsgID:<%m> :: Size<%p> :: vSize<%w>
         deliver_log_format = From:<%f>-<%e> :: Subject:<%s> :: Status:<%$> :: MsgID:<%m> :: Size<%p> :: vSize<%w>

Revision as of 18:57, 26 March 2024

# yum -y install dovecot-pigeonhole
# Edit /etc/dovecot/dovecot.conf
Add:
mail_location = maildir:~/Maildir
protocols = $protocols imap pop3 sieve
plugin {
     sieve = ~/.dovecot.sieve
     sieve_dir = ~/.sieve
}
service managesieve-login {
     inet_listener sieve {
     port = 4190
     }
}
protocol lda {
     mail_plugins = $mail_plugins sieve
     .
     .
     .
}
# cd /home/vpopmail/domains/domain.tld/user
# mkdir .sieve
# touch .sieve/user.sieve
# ln -s .sieve/user.sieve .dovecot.sieve
# chown -R vpopmail:vchkpw .sieve
# chown vpopmail:vchkpw .dovecot.sieve
# chmod 700 .sieve
Add Sieve rules to .sieve/user.sieve
Enable Dovecot LDA formatted logging
# Edit /etc/dovecot/dovecot.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
     }
# mkdir /var/log/dovecot-lda
# chmod 770 /var/log/dovecot-lda
# chown vpopmail:vchkpw /var/log/dovecot-lda
# touch /etc/logrotate.d/dovecot-lda (Add settings)
Enable Dovecot LDA for QMT
# vi /home/vpopmail/domains/yourdomain.tld/.qmail-default
  Replace
     |/home/vpopmail/bin/vdelivermail  bounce-no-mailbox
  With   
     |/var/qmail/bin/preline -f /usr/libexec/dovecot/deliver -d $EXT@$USER -o postmaster_address=postmaster@yourdomain.tld (Add)
# systemctl restart dovecot