Jonas Meurer said the following on 05/13/2004 09:11 PM:
hello,
How can i configure courier mta to use procmail as mda if ~/.procmailrc
exists? At the moment I have in /etc/courier/courierd:
DEFAULTDELIVERY=./Maildir

What I like courier to do, is to check for ~/.procmailrc, if existent
run procmail as mda, otherwise use normal Maildir.

Maybe I have to use maildrop for that, but if the answer is yes, how do
i manage this?

Sorry, but google was quite reticent.
Hello Jonas,

the most simple way is to have two files "~/.courier" and ~/.courier-default using "DYNAMIC DELIVERY INSTRUCTIONS".
--- snip ---
|| /usr/local/bin/delivermode
--- snap ---


--- snip /usr/local/bin/delivermode ---
#!/bin/sh
if test -r $HOME/.procmailrc
then
        echo "|/usr/bin/procmail"
else
        echo "./Maildir/"
fi
--- snap ---

See the man-page of dot-courier for more info on "DYNAMIC DELIVERY INSTRUCTIONS". I did not test the above.

Regards
Mirko


------------------------------------------------------- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to