LDA: Difference between revisions

From QmailToaster
Jump to navigation Jump to search
(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...")
 
No edit summary
Line 1: Line 1:
Install Dovecot Pigeonhole with Sieve protocol enabled Local Delivery Agent (LDA),
Install Dovecot Pigeonhole with Sieve protocol enabled Local Delivery Agent (LDA),
enable ManageSieve server, specify Sieve rule locations, create Sieve files and set
enable ManageSieve server, specify Sieve rule locations, create Sieve files and set
permissions, and restart Dovecot
permissions, and restart Dovecot
# yum install dovecot-pigeonhole
# yum install dovecot-pigeonhole
# vi /etc/dovecot/local.conf (Add)
# vi /etc/dovecot/local.conf (Add)
mail_location = maildir:~/Maildir
mail_location = maildir:~/Maildir
protocols = $protocols sieve
protocols = $protocols sieve
plugin {
plugin {
       sieve = ~/.dovecot.sieve
       sieve = ~/.dovecot.sieve
       sieve_dir = ~/.sieve
       sieve_dir = ~/.sieve
}
}
service managesieve-login {
service managesieve-login {
       inet_listener sieve {
       inet_listener sieve {
       port = 4190
       port = 4190
       }
       }
}
}
protocol lda {
protocol lda {
       mail_plugins = $mail_plugins sieve
       mail_plugins = $mail_plugins sieve
       .
       .
       .
       .
       .
       .
}
}
# cd /home/vpopmail/domains/domain.tld/user
# cd /home/vpopmail/domains/domain.tld/user
# mkdir .sieve
# mkdir .sieve
# touch .sieve/user.sieve
# touch .sieve/user.sieve
# ln -s .sieve/user.sieve .dovecot.sieve
# ln -s .sieve/user.sieve .dovecot.sieve
# chown -R vpopmail:vchkpw .sieve
# chown -R vpopmail:vchkpw .sieve
# chown vpopmail:vchkpw .dovecot.sieve
# chown vpopmail:vchkpw .dovecot.sieve
# chmod 700 .sieve
# chmod 700 .sieve
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)
# vi /etc/dovecot/local.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>
Line 36: Line 36:
         info_log_path = /var/log/dovecot-lda/dovecot-lda.log
         info_log_path = /var/log/dovecot-lda/dovecot-lda.log
       }
       }
# mkdir /var/log/dovecot-lda
# mkdir /var/log/dovecot-lda
# chmod 770 /var/log/dovecot-lda
# chmod 770 /var/log/dovecot-lda
# chown vpopmail:vchkpw /var/log/dovecot-lda
# chown vpopmail:vchkpw /var/log/dovecot-lda
# touch /etc/logrotate.d/dovecot-lda (Add settings)
# touch /etc/logrotate.d/dovecot-lda (Add settings)
Enable Dovecot LDA for QMT
Enable Dovecot LDA for QMT
# vi /home/vpopmail/domains/yourdomain.tld/.qmail-default (Edit)
# vi /home/vpopmail/domains/yourdomain.tld/.qmail-default (Edit)
|/home/vpopmail/bin/vdelivermail '' bounce-no-mailbox (Remove)
|/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)
|/var/qmail/bin/preline -f /usr/libexec/dovecot/deliver -d $EXT@$USER -o postmaster_address=postmaster@yourdomain.tld (Add)
# systemctl restart dovecot
# systemctl restart dovecot

Revision as of 17:29, 26 March 2024

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
     }
}
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
# 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
     }
# 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 (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)
# systemctl restart dovecot