PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : procmail verschiebt mails nach /var/lib/nobody/Maildir/



geiercasi
14.03.08, 22:10
guten abend zusammen,

mein procmail verschiebt die mails nach /var/lib/nobody/Maildir/ sobald mailbox_transport=procmail aktiviert ist. in diesem fall wird procmail von user nobody aufgerufen, aber das ist ja kein grund *g
sytem ist suse 10.3 mit postfix 2.4.5. dovecot 1.1
zum test habe ich die procmailrc auch ins ~ von nobody gelinkt. ohne erfolg.
hat jemand eine idee ?

gruß und danke

procmailrc
DELIVER=/usr/lib/dovecot/deliver
MAILDIR=$HOME/Maildir/
DEFAULT=$HOME/Maildir/
ORGMAIL=$HOME/Maildir/
include $HOME/.procmailrc
VERBOSE=yes
LOGFILE=/var/log/procmail.log
LOGABSTRACT=all

:0 w
| $DELIVER

master.cf
smtp inet n - n - 20 smtpd
-o smtpd_proxy_filter=localhost:10024
-o smtpd_client_connection_count_limit=10
#submission inet n - n - - smtpd
# -o smtpd_etrn_restrictions=reject
# -o smtpd_client_restrictions=permit_sasl_authenticate d,reject
#smtps inet n - n - - smtpd -o smtpd_tls_wrappermode=yes
# -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission inet n - n - - smtpd
# -o smtpd_etrn_restrictions=reject
# -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
#628 inet n - n - - qmqpd
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - n 300 1 oqmgr
tlsmgr unix - - n 1000? 1 tlsmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - n - - smtp
127.0.0.1:10025 inet n - n - - smtpd
-o smtpd_authorized_xforwards_hosts=127.0.0.0/8
-o smtpd_client_restrictions=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,rej ect
-o receive_overriede_options=no_unknow_recipient_chec ks
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - n - - smtp
-o fallback_relay=
showq unix n - n - - showq
error unix - - n - - error
discard unix - - n - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
content_filter=
scache unix - - n - 1 scache
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
cyrus unix - n n - - pipe
user=cyrus argv=/usr/lib/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
procmail unix - n n - - pipe
flags=R user=nobody argv=/usr/bin/procmail -t /etc/procmailrc ${sender} ${recipient}
retry unix - - n - - error


postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases,hash:/var/lib/mailman/data/aliases
biff = no
body_checks = pcre:/etc/postfix/body_checks
bounce_template_file = /etc/postfix/bounce.de-DE.cf
broken_sasl_auth_clients = yes
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
debug_peer_level = 1
defer_transports =
disable_dns_lookups = no
disable_mime_output_conversion = no
header_checks = pcre:/etc/postfix/header_checks
home_mailbox = Maildir/
html_directory = /usr/share/doc/packages/postfix/html
inet_interfaces = 85.214.63.178, 127.0.0.1
inet_protocols = all
mail_owner = postfix
mail_spool_directory = /var/mail
mailbox_command = /usr/bin/procmail -t -a "$EXTENSION"
mailbox_transport = procmail
mailbox_size_limit = 0
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
masquerade_classes = envelope_sender, header_sender, header_recipient
masquerade_domains =
masquerade_exceptions = root
message_size_limit = 10240000
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, lists.wunschradio.de
mydomain = server.wunschradio.de
myhostname = server.wunschradio.de
mynetworks = 85.214.63.178, 127.0.0.0/8
mynetworks_style = subnet
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/packages/postfix/README_FILES
relayhost =
relocated_maps = hash:/etc/postfix/relocated
sample_directory = /usr/share/doc/packages/postfix/samples
sender_canonical_maps = hash:/etc/postfix/sender_canonical
sendmail_path = /usr/sbin/sendmail
setgid_group = maildrop
smtp_sasl_auth_enable = no
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_banner = $myhostname ESMTP $mail_name
smtpd_client_restrictions = permit_mynetworks
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks, reject_invalid_hostname
smtpd_recipient_restrictions = reject_non_fqdn_recipient reject_non_fqdn_sender permit_sasl_authenticated permit_mynetworks reject_unauth_destination check_policy_service inet:127.0.0.1:12525 check_client_access hash:/etc/postfix/client_access reject_non_fqdn_hostname reject_invalid_hostname permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_tls_CAfile = /usr/share/ssl/certs/ca-bundle.crt
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/postfix/certs/postfix_public_cert.pem
smtpd_tls_key_file = /etc/postfix/certs/postfix_private_key.pem
smtpd_tls_loglevel = 0
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
strict_8bitmime = no
strict_rfc821_envelopes = no
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_alias_domains = hash:/etc/postfix/virtual
virtual_alias_maps = hash:/etc/postfix/virtual_users

Roger Wilco
14.03.08, 23:24
Deinem $DELIVER in der procmailrc fehlen IMHO ein paar Parameter. Woher sollte der MDA denn wissen, an welchen Benutzer du die E-Mail zustellen willst? In der jetzigen Form ist procmail bei deinem Setup übrigens reichlich nutzlos.

Und CODE-Tags würden deinem Posting auch gut tun. ;)

geiercasi
14.03.08, 23:38
laut dovecot liste braucht deliver keinen paramter. ohne mailbox_transport_procmail wird ja immer noch procmail genutzt, es überspringt aber die ~/.procmailrc (wo übrigens der rest der config zu finden ist)
welche parameter würdest du vorschlagen ?

gruß und danke für den tipp

das mit den code-tags werde ich mir merken.

Roger Wilco
15.03.08, 00:08
http://wiki.dovecot.org/LDA/Postfix