This is a discussion on Re: [courier-users] maildrop variable for virtual user recipient within the Courier-Imap forums, part of the Mail Servers and Related category; Fred Ho wrote: > I am running Courier 0.52.1 and Courier-Authlib 0.58 on Redhat RHEL4. My ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Fred Ho wrote:
> I am running Courier 0.52.1 and Courier-Authlib 0.58 on Redhat RHEL4. My production server is also happily running on RHEL4 (x86_64). > The user authentication is through the userdb for all virtual users. You might find MySQL based auth easier to maintain but that's up to you. > 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. In my installation logname is set but it is blank. To find out what variables exist at execution time add a line like this: `set > set.txt` This will create a file named set.txt in the user's home directory after a message is delivered. It will show you what variables are available for your use. For my setup, $RECIPIENT and $USER seem to get set to the users full address, you may need to import these variables though, try: import RECIPIENT import USER `set > set.txt` > So, how do I get the actual user-id to pass to mailbot from inside > the maildrop script? Jay -- Jay Lee Network / Systems Administrator Information Technology Dept. Philadelphia Biblical University -- ------------------------------------------------------- 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 |