Moin Christoph,
On Fri, Aug 07, 2009 at 11:50:04PM +0200, Christoph Sandhaus wrote:
> einerseits danke für die Antwort! Und das auch noch an einem späten Freitag
> Abend.
>
> Auf der anderen Seite:
...
$HOME/bin/script:
#! /bin/bash
exec >> $HOME/log
echo -n === `date` === $0 $* ===
cat
/etc/postfix/master.cf:
script unix - n n - 1 pipe
flags=DRX user=pmhahn argv=$HOME/bin/scipt CA="${client_address}" CHe="${client_helo}" CHo="${client_hostname}" CPo="${client_port}" CPr="${client_protocol}" D="${domain}" Ex="${extension}" MB="${mailbox}" NH="${nexthop}" OR="${original_recipient}" R="${recipient}" SM="${sasl_method}" SS="${sasl_sender}" SU="${sasl_username}" Se="${sender}" Si="${size}" U="${user}"
/etc/postfix/vmailbox:
@$DOMAIN DUMMY
^^^^^^^ da deine sub-domain, z.B. bugs.pmhahn.de
/etc/postfix/main.cf:
virtual_transport = script:
virtual_mailbox_domains = $DOMAIN
^^^^^^^ s.o.
virtual_mailbox_maps = hash:/etc/postfix/vmailbox
script_destination_recipient_limit = 1
postmap hash:/etc/postfix/vmailbox
postfix reload
date | mail -s Test foo@$DOMAIN
BYtE
Philipp
-- / / (_)__ __ ____ __ Philipp Hahn / /__/ / _ \/ // /\ \/ / /____/_/_//_/\_,_/ /_/\_\ pmhahn_at_titan.lahn.deReceived on Sat Aug 08 2009 - 10:00:16 CEST
This archive was generated by hypermail 2.2.0 : Sat Aug 08 2009 - 10:00:31 CEST