Hallo Liste,
ich möchte als unprivilegierter Nutzer Exim so benutzen, dass ein von
mir gewählter smarthost benutzt wird. Dazu habe ich mir eine
Konfigurationsdatei erstellt und benutze die mittels
... | sendmail -t -oem -odf -C /home/andre/exim.conf
was folgendes Problem liefert:
2004-09-24 20:02:05 <= <> R=1CAuOT-00062R-00 U=andre P=local S=856
2004-09-24 20:02:06 => |/usr/bin/procmail <andre@meinhost>
D=userforward T=address_pipe
2004-09-24 20:02:06 unable to set uid=8 or gid=8 for remote deliveries
(euid=1010)
2004-09-24 20:02:06 Child mail process returned status 1
Exit 2
ich@host:~:> exim -bV
Exim version 3.36 #1 built 06-May-2004 18:14:20
Copyright (c) University of Cambridge 2002
Das exim binary ist setuid root, wie in der Standardinstallation.
Offensichtlich versucht exim ein chuid auf den Nutzer 'exim', was
natürlich schief gehen muß.
Was kann man da machen?
Hier mal die vollständige Konfiguration, da die nicht extrem lang ist,
schicke ich die ungekürzt.
Eigentlich habe ich ausser den ersten zwei Zeilen und das was den
smarthost betrifft nix von der Standardvariante des Konfigurationsskriptes
des Debian Pakets geändert.
Tschau,
andre
--->8-- <schnippel/>
spool_directory = /home/andre/exim-spool
security = unprivileged
qualify_domain = meinhost
local_domains = localhost:meinhost:pinguin
local_domains_include_host = true
local_domains_include_host_literals = true
never_users = root
host_lookup = *
host_accept_relay = 127.0.0.1 : ::::1
host_auth_accept_relay = *
trusted_users = mail:andre
smtp_verify = false
gecos_pattern = ^([^,:]*)
gecos_name = $1
smtp_accept_queue_per_connection = 100
freeze_tell_mailmaster = true
received_header_text = "Received: \
${if def:sender_rcvhost {from ${sender_rcvhost}\n\t}\
{${if def:sender_ident {from ${sender_ident} }}\
${if def:sender_helo_name {(helo=${sender_helo_name})\n\t}}}}\
by ${primary_hostname} \
${if def:received_protocol {with ${received_protocol}}} \
id ${message_id}\
${if def:received_for {\n\tfor <$received_for>}}"
receiver_try_verify = true
end
local_delivery:
driver = appendfile
group = mail
mode = 0660
mode_fail_narrower = false
envelope_to_add = true
return_path_add = true
file = /var/spool/mail/${local_part}
address_pipe:
driver = pipe
path = /usr/bin:/bin:/usr/local/bin
return_output
address_file:
driver = appendfile
envelope_to_add = true
return_path_add = true
address_directory:
driver = appendfile
no_from_hack
prefix = ""
suffix = ""
address_reply:
driver = autoreply
procmail_pipe:
driver = pipe
command = "/usr/bin/procmail"
return_path_add
delivery_date_add
envelope_to_add
suffix = ""
remote_smtp:
driver = smtp
end
real_local:
prefix = real-
driver = localuser
transport = local_delivery
system_aliases:
driver = aliasfile
file_transport = address_file
pipe_transport = address_pipe
file = /etc/aliases
search_type = lsearch
userforward:
driver = forwardfile
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_reply
no_verify
check_ancestor
check_local_user
file = .forward
modemask = 002
filter
procmail:
driver = localuser
transport = procmail_pipe
require_files = ${local_part}:+${home}:+${home}/.procmailrc:+/usr/bin/procmail
no_verify
localuser:
driver = localuser
transport = local_delivery
end
smarthost:
driver = domainlist
transport = remote_smtp
route_list = "* smtp.volny.cz bydns_a"
end
* * F,2h,15m; G,16h,2h,1.5; F,4d,8h
end
*@meinhost ${lookup{$1}lsearch{/etc/email-addresses}\
{$value}fail} frFs
end