created new thread from
http://www.linuxquestions.org/questi...43#post4820943
My problem is moving from procmail to dovecot-lda for local mail delivery so that I can make use of sieve scripts (mainly to implement out-of-office).
operating system is slackware 13.37 32bit
I am starting from a working sendmail with startls for authentication, and dovecot imap working for collecting mail, again with starttls.
I have used sbopkg for dovecot and dovecot-pigeonhole (sieve)
(manually updated the version in the sbo-script to support dovecot 2.1)
procedure below
Quote:
first create needed group and users
groupadd -g 202 dovecot
useradd -d /dev/null -s /bin/false -u 202 -g 202 dovecot
then download,create package and install using sbopkg
cp /usr/doc/dovecot-2.0.12/example-config/dovecot.conf /etc/dovecot/
cp -r /usr/doc/dovecot-2.0.12/example-config/conf.d /etc/dovecot/
(update slackbuilds to dovecot 2.1 )
to install sieve (server and client) (dovecot-pigeonhole) modify devecot-pigeonhole slackbuild (sbopkg) by updating to version 0.3.3 (the one that supports dovecot 2.1)
then install. then add sieve to the protocols line in /etc/dovecot/dovecot.conf and restart dovecot
/etc/rc.d/rc.dovecot restart
|
I created a /etc/procmailrc file as follows, to direct mail into directories instead of mbox files
Code:
VERBOSE=on
LOGFILE=/var/log/procmail.log
DROPPRIVS=yes
VERBOSE=on
:0
* ^TO.*tim.*
/var/spool/dovecot/tim/
:0
* ^TO.*mary.*
/var/spool/dovecot/mary/
:0
* ^TO.*fred.*
/var/spool/dovecot/fred/
this procedure allowed me to create seive scripts using a thunderbird plugin. (which are duly saved in ~/sieve/ folder), and to have mail sucessfully delivered into mail directories, accessible, and editable via imap
however, local mail is being delivered by procmail, so the filters are not being applied. Thus my attempt to get sendmail to deliver the local mail via dovecot-lda (/usr/libexec/dovecot/deliver)
unfortunately, the mail does not get delivered when I add the line
Code:
FEATURE(`local_procmail', `/usr/libexec/dovecot/deliver', `deliver -d $u', `SPhun9')dnl
to my config.mc file and recompile
Code:
cd /usr/share/sendmail/cf/cf/
./Build config.mc
cp config.cf /etc/mail/sendmail.cf
/etc/rc.d/rc.sendmail restart
it just seems to dissappear.
manually running
/usr/libexec/dovecot/deliver -d
appears to work ok.
does anyone have any ideas?
for info,output of dovecot -n below
Code:
# 2.1.8: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.37.6-smp i686 Slackware 13.37.0 ext4
auth_debug = yes
auth_debug_passwords = yes
auth_verbose = yes
auth_verbose_passwords = plain
base_dir = /var/run/dovecot/
debug_log_path = /var/log/dovecot.log
hostname = test2.mydomain.co.uk
info_log_path = /var/log/dovecot.info
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
login_greeting = Dovecot at test2.mydomain.co.uk
login_log_format_elements = user=<%u> method=%m rip=%r lip=%l mpid=%e %c
mail_debug = yes
mail_location = maildir:/var/spool/dovecot/%n
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave
passdb {
driver = shadow
}
plugin {
mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename
mail_log_fields = uid box msgid size
mail_log_group_events = yes
}
postmaster_address = postmaster@test2.mydomain.co.uk
protocols = imap pop3 lmtp sieve
service imap-login {
inet_listener imap {
port = 143
}
inet_listener imaps {
port = 993
ssl = yes
}
}
ssl_cert = </etc/ssl/certs/dovecot.pem
ssl_key = </etc/ssl/private/dovecot.pem
ssl_key_password = mysslpassword
userdb {
driver = passwd
}
verbose_ssl = yes
protocol lmtp {
mail_plugins = " sieve"
}
protocol lda {
mail_plugins = " sieve"
}
(domain and password changed for security)