[Dovecot] LDA to address extensions
Hi List,
I'm trying to make dovecot deliver messages to sam+extension@example.com to the imap folder 'extension' of the user 'sam'. I've configured postfix with these dovecot as LDA:
mailbox_command = /opt/redknot/libexec/dovecot/deliver -f "$SENDER" -d "$USER" -m "$EXTENSION" -a "$RECIPIENT" recipient_delimiter = +
Sam is a local system user so I don't want to use virtual_transport (I think). I've read http://wiki.dovecot.org/LDA/Postfix but so far without success.
# 1.2.11: /etc/opt/redknot/dovecot.conf
Warning: There is no way to login to this server: disable_plaintext_auth=yes, ssl=no, no non-plaintext auth mechanisms.
# OS: SunOS 5.11 sun4v
log_path: /var/log/dovecot.log
ssl: no
login_dir: /opt/redknot/var/run/dovecot/login
login_executable: /opt/redknot/libexec/dovecot/imap-login
login_max_processes_count: 10
max_mail_processes: 10
mail_location: maildir:~/Maildir
lda:
postmaster_address: postmaster@redknot.nl
mail_plugins: sieve
mail_plugin_dir: /opt/redknot/lib/dovecot/lda
sendmail_path: /usr/sbin/sendmail
auth_socket_path: /opt/redknot/var/run/dovecot/auth-master
auth default:
passdb:
driver: pam
args: other
userdb:
driver: passwd
socket:
type: listen
master:
path: /opt/redknot/var/run/dovecot/auth-master
mode: 384
plugin:
sieve_before: /etc/opt/redknot/sieve/before
sieve_after: /etc/opt/redknot/sieve/after
I know about the warning, this dovecot is only used as LDA, not for imap or pop3.
thanks, Martijn
YoungGuns Kasteleinenkampweg 7b 5222 AX 's-Hertogenbosch T. 073 623 56 40 F. 073 623 56 39 www.youngguns.nl KvK 18076568 YoungGuns Kasteleinenkampweg 7b 5222 AX 's-Hertogenbosch T. 073 623 56 40 F. 073 623 56 39 www.youngguns.nl KvK 18076568
On Jun 17, 2010, at 1:45 PM, Martijn de Munnik wrote:
Hi List,
I'm trying to make dovecot deliver messages to sam+extension@example.com to the imap folder 'extension' of the user 'sam'. I've configured
postfix with these dovecot as LDA:mailbox_command = /opt/redknot/libexec/dovecot/deliver -f "$SENDER" - d "$USER" -m "$EXTENSION" -a "$RECIPIENT" recipient_delimiter = +
I've found this thread but it doesn't seem to work for me. http://www.mail-archive.com/dovecot@dovecot.org/msg18230.html
I also disabled the sieve plugin but that doesn't make any difference.
Jun 17 21:10:55 deliver(munnik): Info: sieve: msgid=<116E5D96-FB80-4877-AF96-EB296C73E879@youngguns.nl
: stored mail into mailbox 'INBOX' Jun 17 21:20:37 deliver(munnik): Info: msgid=<9D6F1F02-F6E0-4260-905E-BCC1FF269311@youngguns.nl : saved mail to INBOX
Sam is a local system user so I don't want to use virtual_transport
(I think). I've read http://wiki.dovecot.org/LDA/Postfix but so far
without success.# 1.2.11: /etc/opt/redknot/dovecot.conf Warning: There is no way to login to this server:
disable_plaintext_auth=yes, ssl=no, no non-plaintext auth mechanisms. # OS: SunOS 5.11 sun4v log_path: /var/log/dovecot.log ssl: no login_dir: /opt/redknot/var/run/dovecot/login login_executable: /opt/redknot/libexec/dovecot/imap-login login_max_processes_count: 10 max_mail_processes: 10 mail_location: maildir:~/Maildir lda: postmaster_address: postmaster@redknot.nl mail_plugins: sieve mail_plugin_dir: /opt/redknot/lib/dovecot/lda sendmail_path: /usr/sbin/sendmail auth_socket_path: /opt/redknot/var/run/dovecot/auth-master auth default: passdb: driver: pam args: other userdb: driver: passwd socket: type: listen master: path: /opt/redknot/var/run/dovecot/auth-master mode: 384 plugin: sieve_before: /etc/opt/redknot/sieve/before sieve_after: /etc/opt/redknot/sieve/afterI know about the warning, this dovecot is only used as LDA, not for
imap or pop3.thanks, Martijn
YoungGuns Kasteleinenkampweg 7b 5222 AX 's-Hertogenbosch T. 073 623 56 40 F. 073 623 56 39 www.youngguns.nl KvK 18076568 YoungGuns Kasteleinenkampweg 7b 5222 AX 's-Hertogenbosch T. 073 623 56 40 F. 073 623 56 39 www.youngguns.nl KvK 18076568
On Jun 17, 2010, at 9:25 PM, Martijn de Munnik wrote:
On Jun 17, 2010, at 1:45 PM, Martijn de Munnik wrote:
Hi List,
I'm trying to make dovecot deliver messages to sam+extension@example.com to the imap folder 'extension' of the user 'sam'. I've configured
postfix with these dovecot as LDA:mailbox_command = /opt/redknot/libexec/dovecot/deliver -f "$SENDER"
-d "$USER" -m "$EXTENSION" -a "$RECIPIENT" recipient_delimiter = +I've found this thread but it doesn't seem to work for me. http://www.mail-archive.com/dovecot@dovecot.org/msg18230.html
I also disabled the sieve plugin but that doesn't make any difference.
Jun 17 21:10:55 deliver(munnik): Info: sieve: msgid=<116E5D96-FB80-4877-AF96-EB296C73E879@youngguns.nl
: stored mail into mailbox 'INBOX' Jun 17 21:20:37 deliver(munnik): Info: msgid=<9D6F1F02-F6E0-4260-905E-BCC1FF269311@youngguns.nl : saved mail to INBOX
I've found the problem, it has nothing to do with dovecot. A postfix
content_filter is messing with my address, when I remove that filter
deliver is working as expected. Sorry to waste your time ;)
Sam is a local system user so I don't want to use virtual_transport
(I think). I've read http://wiki.dovecot.org/LDA/Postfix but so far
without success.# 1.2.11: /etc/opt/redknot/dovecot.conf Warning: There is no way to login to this server:
disable_plaintext_auth=yes, ssl=no, no non-plaintext auth mechanisms. # OS: SunOS 5.11 sun4v log_path: /var/log/dovecot.log ssl: no login_dir: /opt/redknot/var/run/dovecot/login login_executable: /opt/redknot/libexec/dovecot/imap-login login_max_processes_count: 10 max_mail_processes: 10 mail_location: maildir:~/Maildir lda: postmaster_address: postmaster@redknot.nl mail_plugins: sieve mail_plugin_dir: /opt/redknot/lib/dovecot/lda sendmail_path: /usr/sbin/sendmail auth_socket_path: /opt/redknot/var/run/dovecot/auth-master auth default: passdb: driver: pam args: other userdb: driver: passwd socket: type: listen master: path: /opt/redknot/var/run/dovecot/auth-master mode: 384 plugin: sieve_before: /etc/opt/redknot/sieve/before sieve_after: /etc/opt/redknot/sieve/afterI know about the warning, this dovecot is only used as LDA, not for
imap or pop3.thanks, Martijn
YoungGuns Kasteleinenkampweg 7b 5222 AX 's-Hertogenbosch T. 073 623 56 40 F. 073 623 56 39 www.youngguns.nl KvK 18076568 YoungGuns Kasteleinenkampweg 7b 5222 AX 's-Hertogenbosch T. 073 623 56 40 F. 073 623 56 39 www.youngguns.nl KvK 18076568
participants (1)
-
Martijn de Munnik