dovecot-postfix vacation

Asked by Christian Nygaard

Hi!

The default dovecot-postfix mailbox command does not work with dovecot sieve vacation, the vacation autoresponse back bounces with a @unknown domain due to the $USER variable being used. The fix is to add the -a "${RECIPIENT}" reciptient flag in postfix mailbox_command.
Should I file a bug for that?

Default package
mailbox_command = /usr/lib/dovecot/deliver -c /etc/dovecot/conf.d/01-dovecot-postfix.conf -n -m "${EXTENSION}"

Fix
mailbox_command = /usr/lib/dovecot/deliver -c /etc/dovecot/conf.d/01-dovecot-postfix.conf -n -m "${EXTENSION}" -a "${RECIPIENT}"

From dovecot wiki: http://wiki.dovecot.org/LDA/Sieve
"Vacation auto-reply

Vacation uses envelope sender and envelope recipient. They're taken from:

v1.0:
Envelope sender: Return-Path: header in the message.
Envelope recipient: -d parameter to deliver. If -d isn't given (delivering to system users), the $USER environment is used.
v1.1+:
Envelope sender: -f parameter to deliver if given, otherwise Return-Path: header in the message.
Envelope recipient: -a parameter to deliver if given, otherwise -d parameter to deliver. If neither is given (delivering to system users), the $USER environment is used."

Kind regards,
Christian

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu dovecot Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Yes log a bug with your fix and it will be incorporated into the main release if it is tested as good. It's things like this that push the OS forward :)

Nice spot

Can you help with this problem?

Provide an answer of your own, or ask Christian Nygaard for more information if necessary.

To post a message you must log in.