Vitalij Satanivskij
2008-Mar-28 20:38 UTC
[Dovecot] How to force working of a redirect features in sieve plugin?
Hello Trying to setup dovecot installation with sieve plugin, can't configure how to make redirect working. My setup 1 Exim + dovecot lda begin transports dovecot_virtual_delivery: driver = pipe command = /usr/local/dovecot/libexec/dovecot/deliver -d $local_part message_prefix message_suffix delivery_date_add envelope_to_add return_path_add log_output user = exim 2 Dovecot protocol lda { postmaster_address = postmaster@******* hostname = ********** mail_plugins = cmusieve mail_plugin_dir = /usr/local/dovecot/lib/dovecot/lda # Binary to use for sending mails. sendmail_path = "/usr/sbin/sendmail" # UNIX socket path to master authentication server to find users. auth_socket_path = /var/run/dovecot/auth-master } /usr/sbin/sendmail it's realy exim binary but I.m try full path to real exim - /usr/local/sbi/exim too. That's I.m getting in log files Mar 28 22:23:10 scorpio deliver(satan): Sending a forward to <*****@**********> with return path <<postmaster@******>> Mar 28 22:23:10 scorpio deliver(satan): Sendmail process terminated abnormally, signal 11 Mar 28 22:23:10 scorpio deliver(satan): sieve runtime error: Redirect: Error sending mail and in exim log 2008-03-28 22:23:10 1JfL6U-000LBj-24 <satan@********>: dovecot_virtual_delivery transport output: /libexec/ld-elf.so.1: environment corrupt; mi Question is - how deliver sending mail thru sendmail_path = "/usr/sbin/sendmail"? Via pipe? -- Vitalij Satanivskij
Timo Sirainen
2008-Apr-04 07:12 UTC
[Dovecot] How to force working of a redirect features in sieve plugin?
On Mar 28, 2008, at 10:38 PM, Vitalij Satanivskij wrote:> 2008-03-28 22:23:10 1JfL6U-000LBj-24 <satan@********>: > dovecot_virtual_delivery transport output: /libexec/ld-elf.so.1: > environment corrupt; miWhat OS is this with? Googling the error shows that this would happen if there some some garbage in the enviroment. You could check what Dovecot creates for the environment by setting sendmail_path to a script like: #!/bin/sh set > /tmp/deliver.env Then see if the file contains something weird.. It should contain only key=value pairs, no empty lines or things like that.> Question is - how deliver sending mail thru sendmail_path = "/usr/ > sbin/sendmail"? > Via pipe?Yes, to sendmail's stdin. -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 194 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20080404/2fd29da8/attachment-0002.bin>
Vitalij Satanivskij
2008-Apr-04 07:33 UTC
[Dovecot] How to force working of a redirect features in sieve plugin?
Timo Sirainen wrote: TS> On Mar 28, 2008, at 10:38 PM, Vitalij Satanivskij wrote:>> 2008-03-28 22:23:10 1JfL6U-000LBj-24 <satan@********>: >> dovecot_virtual_delivery transport output: /libexec/ld-elf.so.1: >> environment corrupt; miTS> OS version FreeBSD 7.0-STABLE #1: Sat Mar 22 18:06:17 EET 2008 TS> What OS is this with? Googling the error shows that this would happen if TS> there some some garbage in the enviroment. You could check what Dovecot TS> creates for the environment by setting sendmail_path to a script like: TS> TS> #!/bin/sh TS> set > /tmp/deliver.env ARGS=/usr/local/tosha-dovecot/etc/mysql.conf AUTH_DEBUG=yes AUTH_DEBUG_PASSWORDS=yes AUTH_EXECUTABLE=/usr/local/tosha-dovecot/libexec/dovecot/dovecot-auth AUTH_PROCESS_SIZE=128 AUTH_SOCKET_PATH=/var/run/tosha-dovecot/auth-master AUTH_USERNAME_CHARS=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@ AUTH_VERBOSE=yes AUTH_WORKER_MAX_COUNT=30 AUTH_WORKER_MAX_REQUEST_COUNT=100 DEBUG=1 GROUP=mail HOME=/var/mail/virtual/audiobooks.com.ua/sata IFS=' ' ~~~~~~~~ Looks like new line here. MAIL=maildir:/var/mail/virtual/audiobooks.com.ua/sata MAIL_LOG_EVENTS='delete undelete expunge copy mailbox_delete mailbox_rename' MECHANISMS=plain MODE=0660 NAMESPACE_0='' NAMESPACE_0_LIST=1 NAMESPACE_0_SUBSCRIPTIONS=1 OPTIND=1 PATH=/var/run/tosha-dovecot/auth-master PPID=77354 PS1='$ ' PS2='> ' PS4='+ ' PWD=/var/mail/virtual/audiobooks.com.ua/sata RESTRICT_CHROOT='' RESTRICT_GID_FIRST='' RESTRICT_GID_LAST='' RESTRICT_SETEXTRAGROUPS='' RESTRICT_SETGID='' RESTRICT_SETGID_PRIV='' RESTRICT_SETUID='' RESTRICT_USER='' USER=sata at audiobooks.com.ua sata at audiobooks.com.ua=1 TS> Then see if the file contains something weird.. It should contain only TS> key=value pairs, no empty lines or things like that. TS>>> Question is - how deliver sending mail thru sendmail_path = >> "/usr/sbin/sendmail"? >> Via pipe?TS> TS> Yes, to sendmail's stdin. Than i just can create script to sending mail via anything i want :)