- Greg Moeller <[EMAIL PROTECTED]>:

| Example:
| I want to put an autoreply on [EMAIL PROTECTED]
| The file .qmail-abuse in /var/qmail/alias has a first line of:
| |autorespond 10000 5 help_message help_autorespond
| What do I put in for the local delivery to ~abuse?

There's a problem here:  If abuse is a user (by qmail-getpw's rules,
see the man page) then you cannot override it using
~alias/.qmail-abuse.  Use the users/assign mechanism to override
existing users.

| I'm guessing that
| /home/abuse/Maildir/
| wouldn't work since at this point it wouldn't be able to deliver as that user.
| Or am I wrong?

Well, if that maildir was writable by the alias user it could work.

| I can't set this up as a .qmail in abuse's .qmail file because I
| have a number of them, and maintenance of the autorespond system
| would be a pain with directories all over the place.

I think you might have to play some games with the users/assign
mechanism to do what you want.  Something like this:

=abuse:alias:123:456:/var/qmail/alias:+:autorespond-abuse:
=real-abuse:abuse:987:654:/home/abuse:::

where /var/qmail/alias/.qmail+autorespond-default contains

|autorespond 10000 5 help_message help_autorespond
|forward "real-${EXT2}@${HOST}"

This requires just one .qmail file to handle all the autoresponding,
while you must create two lines like the above in users/assign for
each user for which you wish to perform this trick.

(Here 123:456 is the uid:gid of the alias user, while 987:654 are
those of the abuse user.  I use the + character instead of the
customary - to disable mailing directly to autorespond-something.)

- Harald

Reply via email to