Re: send-hook syntax
* Deb <deb@xxxxxxxxxxxxxxxxx> [040224 05:37]:
> When I send an email to a username of the form
> userN (where N = 1-9999)
> I want the To: addr to end up being: userN@xxxxxxxxxxx
> ie, I want to post-append @thatdom.com onto a username (that
> is not an alias) that ends in a number (it really doesn't
> have to be 1-9999).
Maybe I've misunderstood what it is you want to do, but have you tried
setting
set hostname=thatdom.com
This will also do things to your message-ID, but I don't know if yiu are
also a user at that domain? Otherwise, there is ways of tweaking the
message-id afterwards.
set query_command="foobar.sh '%s'"
with foobar.sh looking like this:
#!/bin/bash
echo $1"@thatdom.com"
could also do the trick!?
-Johan
--
Johan Almqvist
http://www.almqvist.net/johan/qmail/