#------------------------------------------------------------------------------ # file: .qmail # desc: qmail local user configuration file. note that the default (without # any .qmail file at all) will delivery to ~/Maildir/. # usage: if you want any mail delivered to "user-SOMETHING@max.md" to be # delivered to your normal place, then symlink ".qmail-default" to # ".qmail". from the prompt: # . $ ln -s .qmail ~/.qmail-default # date: 2005/08/22 # auth: Philip J Grabner #------------------------------------------------------------------------------ #------------------------------------------------------------------------------ # uncomment the line below if you wish to debug this process # # |echo "default=$DEFAULT,host=$HOST,ext2=$EXT2,ext3=$EXT3,user=$USER,local=$LOCAL,ext=$EXT,recipient=$RECIPIENT,home=$HOME" >> $HOME/qmail.log #------------------------------------------------------------------------------ # uncomment the line below to get a log of all delivered Message-IDs # | awk '/^$/ { exit } /^[mM][eE][sS][sS][aA][gG][eE]-/ { print "[TIME] Delivering " $0; }' | sed -e "s/^\[TIME\]/`date -u +'[%Y%m%dT%H%M%SZ]'`/" >> $HOME/qmail.log #------------------------------------------------------------------------------ # invoke maildrop as MDA # # | /usr/local/bin/maildrop -d "$(echo $LOCAL | tr "[:upper:]" "[:lower:]")" || exit 77 | /usr/bin/maildrop -d $USER || exit 77 #------------------------------------------------------------------------------ # put mail into default Maildir INBOX # # ./Maildir/ #------------------------------------------------------------------------------ # end of .qmail #------------------------------------------------------------------------------