Hallo
Ich würde gerne mit Hilfe von Procmail die emails den Usern in die Home Verzeichnisse legen. Leider tut sich nichts, obwohl ich procmail konfiguriert habe. Die emails kommen ordnungsgemäß mit Hilfe von Postfix in /usr/local/virtual/%u
Master.cf
main.cf
procmailrc
/user/local/virtual
drwxrwx--x 5 postfix postfix 4096 May 22 15:40 user@meinedomain.de
/home/
drwxr-xr-x 9 user@meinedomain.de users 4096 May 23 17:12 user@meinedomain.de
Kann mir bitte jemand helfen?
Ich würde gerne mit Hilfe von Procmail die emails den Usern in die Home Verzeichnisse legen. Leider tut sich nichts, obwohl ich procmail konfiguriert habe. Die emails kommen ordnungsgemäß mit Hilfe von Postfix in /usr/local/virtual/%u
Code:
May 25 21:19:15 SuSE-102-32-LAMP postfix/oqmgr[18494]: 5C2D3A841C9: from=<user@domain.com>, size=831, nrcpt=1 (queue active)
May 25 21:19:15 SuSE-102-32-LAMP postfix/virtual[18572]: 5C2D3A841C9: to=<user@meinedomain.de>, relay=virtual, delay=0.21, delays=0.11/0.01/0/0.09, dsn=2.0.0, status=sent (delivered to maildir)
May 25 21:19:15 SuSE-102-32-LAMP postfix/oqmgr[18494]: 5C2D3A841C9: removed
Master.cf
Code:
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
#submission inet n - n - - smtpd
# -o smtpd_etrn_restrictions=reject
# -o smtpd_client_restrictions=permit_sasl_authenticated,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
smtp inet n - n - - smtpd
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
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - n - - smtp
-o fallback_relay=
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
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
#localhost:10025 inet n - n - - smtpd -o content_filter=
scache unix - - n - 1 scache
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent. See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop unix - n n - - pipe
flags=R 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 - 20 pipe
flags=R user=vmail argv=/usr/bin/procmail -o SENDER=${sender} -m USER=${user} EXTENSION=${extension} /etc/procmailrc
main.cf
Code:
biff = no
append_dot_mydomain = no
myhostname = postfix.server.meinedomain.de
mydomain = www.meinedomain.de
mydestination = $myhostname, localhost.$mydomain
alias_maps = $alias_database
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
mail_spool_directory = /usr/local/virtual
virtual_transport = virtual
mailbox_transport = procmail
mailbox_command = /etc/procmailrc -a $EXTENSION
home_mailbox = Maildir/
alias_maps = hash:/etc/aliases
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination
soft_bounce = no
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:1001
virtual_mailbox_base = /usr/local/virtual/
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_limit = 51200000
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 1001
#virtual_transport = virtual
virtual_uid_maps = static:1001
# Additional for quota support
virtual_create_maildirsize = yes
virtual_mailbox_extended = yes
virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql_virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = Sorry, the user's maildir has overdrawn his diskspace quota, please try again later.
virtual_overquota_bounce = yes
mynetworks = 127.0.0.0/8
procmailrc
Code:
PATH=/usr/bin
MAILDIR=$HOME/Maildir # e.g.: IMAP server directory
LOG='---------'
VERBOSE=yes # for debugging = yes
LOGABSTRACT=yes # should be yes
DEFAULT=/usr/local/virtual/$HOME # incoming mailfolder
LOGFILE=/var/log/procmail
/user/local/virtual
drwxrwx--x 5 postfix postfix 4096 May 22 15:40 user@meinedomain.de
/home/
drwxr-xr-x 9 user@meinedomain.de users 4096 May 23 17:12 user@meinedomain.de
Kann mir bitte jemand helfen?