PDA

View Full Version : Weird piping problem


UltimeWWW
12-01-2003, 06:56 PM
Hi guys,

We have a weird problem here. When someone send an email @ our piping address, it seems to do the piping twice:

2003-12-01 20:54:12 1AQzjw-0001zK-G1 => cbeliveau <cbeliveau@ultimeweb.net> R=virtual_user T=virtual_localdelivery
2003-12-01 20:54:12 1AQzjw-0001zK-G1 Completed
2003-12-01 20:54:12 1AQzjv-0001zE-SA => |/usr/local/bin/php /home/admin/domains/ultimeweb.net/public_html/esupport/admin/pop3pipe.php (support@ultimeweb.net) <support@ultimeweb.net> R=virtual_aliases T=virtual_address_pipe
2003-12-01 20:54:12 1AQzjv-0001zE-SA => |/usr/local/bin/php /home/admin/domains/ultimeweb.net/public_html/esupport/admin/pop3pipe.php (support@ultimeweb.net) <support@ultimeweb.net> R=virtual_aliases_nostar T=virtual_address_pipe
2003-12-01 20:54:12 1AQzjv-0001zE-SA Completed


What can be the problem? :)

DirectAdmin Support
12-02-2003, 04:14 PM
Hello,

It's being caught by two Directors:

virtual_aliases
virtual_aliases_nostar

You could try removing the "unseen" line from the virtual_aliases_nostar Director in the /etc/exim.conf, so that exim will stop when it finds the correct line. Note that I havn't tested that so it might take out a portion of a feature, like not saving the email for an autoreply..etc.

It could also be something with the return value of the script.. If it doesn't return 0, exim might think it's failed, so will keep trying other means.

John

UltimeWWW
12-02-2003, 04:36 PM
Hi,

Resolved by removing the "unseen" thing :)

Thanks a lot!

Peter
02-17-2004, 10:01 AM
I removed it but it still duplicates, please advice...

DirectAdmin Support
02-17-2004, 10:36 AM
Did you restart exim? Perhaps provide some more info on the problem, such as your current setup and any log messages that might be helpful.

John

Peter
02-17-2004, 10:36 AM
I have got mailscanner....
and i don't know where to check the logfiles...

Tell me :P

Peter
02-17-2004, 10:38 AM
Ofcourse, i found it.... it's exim_outgoing.conf....

DirectAdmin Support
02-17-2004, 10:38 AM
The logs is /var/log/exim/mainlog.

Just let us know how you're /etc/virtual/domain.com/aliases file is setup.

John

webone
07-06-2004, 02:10 AM
You could try removing the "unseen" line from the virtual_aliases_nostar Director in the /etc/exim.conf, so that exim will stop when it finds the correct line. Note that I havn't tested that so it might take out a portion of a feature, like not saving the email for an autoreply..etc.

I did this and it did solve the problem - piping now working perfectly - I'm a little concerned however, is this likely to hurt anything or cause problems with users emails?

Thanks for any suggestions!

jlasman
07-06-2004, 10:55 AM
If you take out the "unseen", then exim will presume it's finished with the delivery and will not try any other directors for that email.

Jeff

vandal
05-04-2005, 12:19 PM
what does that mean jeff?

vandal
05-04-2005, 12:28 PM
also i'm reading through cpanel's exim.conf and trying to figure out how they have it setup.

maybe this:

has_alias_but_no_mailbox_discarded_to_prevent_loop:
driver = redirect
condition = "${perl{checkvalias}{$domain}{$local_part}}"
domains = lsearch;/etc/localdomains
data="#Exim Filter\nseen finish"
group = "${lookup{$domain}lsearch* {/etc/userdomains}{$value}}"
user = "${lookup{$domain}lsearch* {/etc/userdomains}{$value}}"
allow_filter
disable_logging = true

jlasman
05-05-2005, 06:48 PM
Originally posted by vandal
what does that mean jeff?
I was responding to webone's concerns.

Depending on what does or doesn't come after the director in question, it may or may not affect other delivery.

Jeff

albatroz
05-26-2005, 01:23 PM
So, would you consider this procedure is correct and safe?

Originally posted by jlasman
If you take out the "unseen", then exim will presume it's finished with the delivery and will not try any other directors for that email.

Jeff

albatroz
05-26-2005, 01:28 PM
I removed such line and now the sender does not receive the email confirmation message, the one that starts with "Your email has been delivered..."

albatroz
05-27-2005, 12:05 PM
This is a problem with Kayako parser...

If you remove the unseen part, some forwarders may not work...

BTW I have also Cerberus Helpdesk
configured in the same server and the
duplication of tickets problem, does not happen

DirectAdmin Support
05-27-2005, 01:01 PM
Hello,

In the "virtual_aliases:" director, try setting the data line as follows:data = ${if exists{/etc/virtual/$domain/aliases}{${lookup{*}lsearch{/etc/virtual/$domain/aliases}}}}The change basically looks for only the * vs the previous "lookup with * as the fail".

John

Webcart
06-07-2005, 01:49 PM
Originally posted by DirectAdmin Support
Hello,

In the "virtual_aliases:" director, try setting the data line as follows:data = ${if exists{/etc/virtual/$domain/aliases}{${lookup{*}lsearch{/etc/virtual/$domain/aliases}}}}The change basically looks for only the * vs the previous "lookup with * as the fail".

John

That solved the duplicates problem, but introduced a new one:
e-mails sent to forwarders generate bounce mail (Mail delivery failed: returning message to sender). Please advise.

Thank you.

albatroz
06-25-2005, 08:46 PM
Any news on this?

Webcart
06-25-2005, 08:53 PM
Originally posted by albatroz
Any news on this?

As far as I know, this issue hasn't been resolved.

albatroz
06-26-2005, 06:50 AM
Recently found this article in Kayako website, I will tell how it works for me

http://forums.kayako.com/showthread.php?p=17755#post17755

jlasman
06-26-2005, 04:23 PM
Albatroz, referring to your post on the Kayako forum, have you checked the ownership and rights of the directory? Sometimes it's more important than the ownership and rights of the file.

Jeff

Przemek
11-09-2005, 05:49 AM
Originally posted by Webcart
That solved the duplicates problem, but introduced a new one:
e-mails sent to forwarders generate bounce mail (Mail delivery failed: returning message to sender). Please advise.

Thank you.

You can solve "mail delivery failed" messages by creating a mailbox with the same name as forwarder.

Webcart
11-09-2005, 08:55 AM
Originally posted by Przemek
You can solve "mail delivery failed" messages by creating a mailbox with the same name as forwarder.

Thank you for the tip.

Unfortunately, this will not work for us as we have a lot of customers using forwarders and we don't want them all to contact support at the same time :)
Setting up a mailbox also means leaving a copy of mails on the server, right?

neek
12-01-2005, 12:40 PM
Anyone found a proper solution for this yet? Really don't know if this is something I should be chasing Kayako on or not?

I have looked everywhere but can only find workarond solutions, none of which will suit my situation. Would appreciate any help anyone can offer.

Nick

netmotiv8
03-21-2006, 08:55 AM
Hi,

Has anybody got this working properly yet? We are also getting the duplication of emails, but so far this thread is not conclusive about how this should be resolved.

We have customers needing this to work properly.


Hope someone has some good news!


Cheers.

Neil :-)

netmotiv8
03-21-2006, 09:12 AM
I have found my answers here:

http://www.directadmin.com/forum/showthread.php?s=&threadid=976&highlight=email+piping


For us, this is a satisfactory way of providing the piping.


Neil :-)