Exim Piping Duplicates

TurtleBay

Verified User
Joined
Sep 28, 2003
Messages
37
I have the following setup in exim's aliases for my domain:

sales: "|/home/admin/cerberus/cerberus /home/admin/cerberus/config.xml FATAL /home/admin/cerberus/cerberus.log"

It works fine, except that exim duplicates the e-mail.

Here is what is in the exim log
2003-11-06 10:50:15 1AHmOl-0001Ys-7w <= [email protected] H=(jcjk531) [67.20.173.83] P=esmtp S=606
2003-11-06 10:50:15 1AHmOl-0001Ys-7w => |/home/admin/cerberus/cerberus /home/admin/cerberus/config.xml FATAL /home/admin/cerberus/cerberus.log ([email protected]) <[email protected]> R=virtual_aliases T=virtual_address_pipe
2003-11-06 10:50:15 1AHmOl-0001Ys-7w => |/home/admin/cerberus/cerberus /home/admin/cerberus/config.xml FATAL /home/admin/cerberus/cerberus.log ([email protected]) <[email protected]> R=virtual_aliases_nostar T=virtual_address_pipe
2003-11-06 10:50:15 1AHmOl-0001Ys-7w Completed

I can see it is hitting the virtual_aliases then the virtual_aliases_nostar. How do I make it hit one or the other?

Thanks,
John
 
Hello,

virtual_aliases_nostar should come before virtual_aliases (see exim.conf) ... but in any case the no-star will look for entries that are there (excluding the catch all). If it can't find it, it goes to the passwd file (virtual_user). If it can't find it there, then it goes back to the aliases file and uses the * value.

Now virtual_aliases_nostar is set to "unseen" so that forwarders with pop accounts get a local copy as well as being forwarded. You can take out the "unseen" part, and then your pipe will only occur once.

John
 
Thanks for the greate explanation! Is there any way, to do the pipe without losing the ability to have forwarders and pop accounts? I'll do what you suggested for now, but I'd really like to not lose that capability.

Thanks,
John
 
Hello,

Removing the "unseen" shouldn't affect forwarders and pop accounts too much. The only thing it will remove is the ability to save a forwarded email to a pop account that has the same name as the forwarder.

aliases:
forwarder: some@email

passwd:
forwarder:encryptedpass

Normally, if you send to "[email protected]", in the above case, some@email would get a copy and the pop account forwarder would also get a copy. By removing "unseen", forwarders alone will still work, and pop accounts will still work, but having forwarders forwarded and saved will stop working.. it's not a feature that too many people make use of.

John
 
could someone explain (perhaps even in a little howto) what I actually have to do?
I have the same problem, but with Kayako

thanks :)

Ditlev
 
DirectAdmin Support said:
Now virtual_aliases_nostar is set to "unseen" so that forwarders with pop accounts get a local copy as well as being forwarded. You can take out the "unseen" part, and then your pipe will only occur once.

Sorry about rehashing this old issue. I recently upgraded to SpamBlocker v2.0 which has "unseen" activated in the "virtual_aliases_nostar" instance by default. This caused me duplicate emails and lead me to this thread.

I believe "unseen" should be taken out by default because without it, I can create both forward-only and forward-and-pop behaviors on the same server...

(forward-only) aliases:
user: [email protected]

(forward-and-pop) aliases:
user: [email protected], [email protected]

When "unseen" is included in virtual_aliases_nostar, Exim is always forced to perform forward-and-pop on that server.

I've also discovered a small bug in DA's forwarder Form. It accepts '[email protected], [email protected]' but not '"|/path/to/script", [email protected]' (when one of the targets is a pipe).
 
Back
Top