Timo Sirainen wrote:
TS On Mar 28, 2008, at 10:38 PM, Vitalij Satanivskij wrote:
2008-03-28 22:23:10 1JfL6U-000LBj-24 [EMAIL PROTECTED]:
dovecot_virtual_delivery transport output: /libexec/ld-elf.so.1:
environment corrupt; mi
TS
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=''
[EMAIL PROTECTED]
[EMAIL PROTECTED]
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 :)