This is a discussion on [courier-users] maildrop variable for virtual user recipient address within the Courier-Imap forums, part of the Mail Servers and Related category; Hi all, I am running Courier 0.52.1 and Courier-Authlib 0.58 on Redhat RHEL4. The user authentication ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi all,
I am running Courier 0.52.1 and Courier-Authlib 0.58 on Redhat RHEL4. The user authentication is through the userdb for all virtual users. The home directories for all the users are under the directory /home/mailusers/fredhonet/<userid@fredho.net>. The directories are owned by user "mailusers". I created the /etc/courier/maildroprc for handling of vacation autoresponds by using the Courier's mailbot command as follows: MAILHOME=$HOME `test -f "$MAILHOME/away.msg"` if ( $RETURNCODE==0 ) { # Send Out-of-office notice auto-respond exception { cc "| /usr/lib/courier/bin/mailbot -d \"$MAILHOME/away\" -D 1 -t "$MAILHOME/away.msg\" -s 'Subject: Out of Office Notice' -A $LOGNAME /usr/sbin/sendmail -t -f ''" } } The autoresponds mail works but the sender is "mailusers@fredho.net", not the virtual user "fkho@fredho.net" as expected. Apparently, the variable LOGNAME does not evaulated to the virtual userid in maildrop. So, how do I get the actual user-id to pass to mailbot from inside the maildrop script? Regards, Fred ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/.../courier-users |