M
MarcusI
Guest
Hello all,
according to the search feature there have been several questions regarding this topic in the past years but without any answers, so I decided to try my luck again...
As you may know there is a feature in Qmail called extension addresses (s.a. http://www.lifewithqmail.org/lwq.html#extension-addresses) which allows to setup address wildcards so that all email to someone-foo@domain as well as someone-bar@domain will be delivered to someone@domain.
It's a useful thing for spam-control as well as (my main use-case) processing of emails via scripts.
Manually editing the users/assign file and calling qmail-newu didn't work for me, the server still responded with "no mailbox here with that name". Probably there's something I'm missing regarding virtual domains.
Also I'm a bit wary about Plesk re-generating the assign file and undoing my changes so I'd like to ask if there's a not-too-hacky way to use the extension address feature.
I'm aware of the possibility of setting up a catch-all account and processing its mail by a script to filter out any unwanted target-addresses but that is somewhat unwieldy, considering that my current mail processing script is written in Ruby and thus needs to load the Ruby interpreter every time it is called. Not very handy in regards to todays spam percentage.
Nonetheless, this is what I tried, maybe there's a simple mistake to be fixed. Writing a cron script to check if the correct line is still present and re-insert it in case it is not would be acceptable, I guess ^^
/var/lib/qmail/users/assign
Maybe someone can help me, but I'll investigate further anyway and will try to come up with some feasible solution.
All the best
Marcus
according to the search feature there have been several questions regarding this topic in the past years but without any answers, so I decided to try my luck again...
As you may know there is a feature in Qmail called extension addresses (s.a. http://www.lifewithqmail.org/lwq.html#extension-addresses) which allows to setup address wildcards so that all email to someone-foo@domain as well as someone-bar@domain will be delivered to someone@domain.
It's a useful thing for spam-control as well as (my main use-case) processing of emails via scripts.
Manually editing the users/assign file and calling qmail-newu didn't work for me, the server still responded with "no mailbox here with that name". Probably there's something I'm missing regarding virtual domains.
Also I'm a bit wary about Plesk re-generating the assign file and undoing my changes so I'd like to ask if there's a not-too-hacky way to use the extension address feature.
I'm aware of the possibility of setting up a catch-all account and processing its mail by a script to filter out any unwanted target-addresses but that is somewhat unwieldy, considering that my current mail processing script is written in Ruby and thus needs to load the Ruby interpreter every time it is called. Not very handy in regards to todays spam percentage.
Nonetheless, this is what I tried, maybe there's a simple mistake to be fixed. Writing a cron script to check if the correct line is still present and re-insert it in case it is not would be acceptable, I guess ^^
/var/lib/qmail/users/assign
Code:
=1-redmine:popuser:110:31:/var/qmail/mailnames/mydomain/redmine:::
+1-redmine-:popuser:110:31:/var/qmail/mailnames/mydomain/redmine:::
Maybe someone can help me, but I'll investigate further anyway and will try to come up with some feasible solution.
All the best
Marcus