Bluehost.com Web Hosting $6.95

[courier-users] maildrop variable for virtual user recipient address

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 ...


Go Back   Usenet Forums > Mail Servers and Related > Courier-Imap

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-06-2006
Fred Ho
 
Posts: n/a
Default [courier-users] maildrop variable for virtual user recipient address

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 03:11 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0