Connect. Communicate. Collaborate. Securely.

Home » Kerio User Forums » Kerio Connect » X-Original-To:
  •  
JustAsk

Messages: 20
Karma: 0
Send a private message to this user

Hi!

I don't know much about SMTP protocol, but we are receiving plenty of emails where To: field is empty or contains the senders own adress, and X-Original-To: is filled up with one of our adresses. In this case the email won't redirected to X-Original-To.
What can i do?

thx

  •  
winkelman

Messages: 2119
Karma: 3
Send a private message to this user
AFAIK email is (primarily) delivered to the address specified in the 'RCPT TO:' SMTP command, as specified during the SMTP communication between sender and SMTP server. All the other header fields are simply passed to the SMPT server as part of the message body, only to be parsed by the SMTP server later.

So if you receive a lot of emails in a strange 'format', it is mostly a problem of the sender. They should use the proper means of communication. If they choose not to provide any address as the 'To:' header, it's up to them. It is in no way required to pass along a To: header, but is sure common practice in normal email traffic.

But what actually is the problem? I guess your mail server is properly putting the email in the inbox of the user specified by the 'RCPT TO:' command, as it should.
  •  
JustAsk

Messages: 20
Karma: 0
Send a private message to this user
>But what actually is the problem? I guess your mail server is properly putting the email in the inbox of the user specified by the 'RCPT TO:' command, as it should.

Right. My mailserver works as it expected.
But. My mailserver is also ignorant if i can't tell him to use custom rules to solve the problems. And its not only problem of the sender, its also our problem. If i'm driving on the road and somebody comes afront of me in my lane, i will pull to the side as far as i can.

Like the other problem that i can't redirect spams into dev/null just because it's against the standards.

I really appreciate the attempt to fully observing the standards and protocols, but it won't work.

thx

PS: Still would me interests how other people can deal with this issue, if i'm getting bcc-ed emails from an outlook client, To: field is filled with his own address, X-Original-To: with my address.
What should i say my customer? Change from Kerio back to exim or postfix? Or, just ignore that you won't get your orders, pricelists, etc..?

  •  
winkelman

Messages: 2119
Karma: 3
Send a private message to this user
To: headers are pretty meaningless in general and particular if the questions are about addressing problems. So back to the original case: what actually are your problematic messages addressed to? (I mean according to SMTP protocol, not according to how you would like to interpret the headers as opposed to the standards)?

You'd have to turn on SMTP debug logging to see the actual SMPT communication and find out what the sender is doing wrong...

I understand you'd like a workaround, but barring an obvious one it may be good to get to the actual problem (which I doubt is KMS in this case). There must be something going on, because in my many years of managing mail systems I've never come across or even read about a case like this. Then again, I've never come across applications sending out email in such non-compliant ways, as it seems you have on a regular basis with applications sending out 'orders, pricelists, etc'.


And you can permanently and automatically delete (perceived) spam just fine... Why do you think you can't?
  •  
JustAsk

Messages: 20
Karma: 0
Send a private message to this user

Hi,

I don't think that Kerio causes, i just want to solve it Wink

Take a look at this please:

I've pop accounts with the domains at the reseller, i'm collecting the emails with gmail, then getting them with Kerio then user pops from Kerio.

This one is a mail merge, our address was put in the bcc field.
There are also other messages like receipt mails where To: is empty x-original-to: is filled.

I've no clue where the problem is, if it an SMTP or email header issue is, and how the email finds us with these headers Surprised

Return-Path: <info<_a.t_>SENDER.com>
X-Spam-Status: No, hits=0.0 required=5.0 tests=TOTAL_SCORE: 0.000
X-Spam-Level:
Delivered-To: RECEIVER-GM-ACCOUNT<_a.t_>gmail.com
Received: by 10.143.192.4 with SMTP id u4cs487360wfp;
Tue, 6 May 2008 01:26:56 -0700 (PDT)
Received: by 10.142.241.10 with SMTP id o10mr211452wfh.165.1210062415224;
Tue, 06 May 2008 01:26:55 -0700 (PDT)
Received-SPF: softfail (google.com: domain of transitioning info<_a.t_>SENDER.com does not designate 212.227.126.177 as permitted sender) client-ip=212.227.126.177;
Received: by 10.142.6.7 with POP3 id 7mf72648wff.8;
Tue, 06 May 2008 01:26:49 -0700 (PDT)
X-Gmail-Fetch-Info: pop<_a.t_>RECIPIENT.com 3 mail.pc-service-muenster.de 110 ourlogin
Return-Path: <info<_a.t_>SENDER.com>
X-Original-To: somebody<_a.t_>RECIPIENT.com
Delivered-To: ourlogin<_a.t_>serverkompetenz.net
Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.177])
by h1768.serverkompetenz.net (Postfix) with ESMTP
id CA35EBC1EB; Tue, 6 May 2008 10:25:50 +0200 (CEST)
Received: from gserver (X.dip0.t-ipconnect.de [xxx.xxx.xxx.xxx])
by mrelayeu.kundenserver.de (node=mrelayeu2) with ESMTP (Nemesis)
id 0MKwtQ-1JtISO0iO9-0004HB; Tue, 06 May 2008 10:23:47 +0200
Reply-To: <info<_a.t_>SENDER.com>
From: =?iso-8859-1?Q?Name <info<_a.t_>SENDER.com>
To: =?iso-8859-1?Q?Name <info<_a.t_>SENDER.com>
Subject: =?iso-8859-1?Q?Subject
Date: Tue, 6 May 2008 10:23:26 +0200
Organization: Sender Company
Message-ID: <A3253B8A81DC40149DDE73C6A69E4144<_a.t_>gserver>
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_NextPart_000_0087_01C8AF63.391EEBD0"
X-Mailer: Microsoft Office Outlook 11
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.3790.4133
Thread-Index: AcivUnSgmZxkBb0aSyKSW0SC1NVrDw==
X-Provags-ID: V01U2FsdGVkX195oZ3LrtEjYq6VJb/HGlUXszzmGLNtuCag2pp
qbEGYFBzP5k2Ikv5jIE25Qq0ysh3Cbp8EvdHp2Z/XCsh3Ycxrd
F2vM5zaG9yVvlwyNUtigg==
X-UIDL: d$O"!HB&!!o(C!!<B/!!


  •  
freakinvibe

Messages: 1529
Karma: 60
Send a private message to this user
Just to understand your problem:

You are getting mail where you are BCC'd. The relevant part of the headers are:

Return-Path: <info<_a.t_>SENDER.com>
Delivered-To: RECEIVER-GM-ACCOUNT<_a.t_>gmail.com
X-Gmail-Fetch-Info: pop<_a.t_>RECIPIENT.com
X-Original-To: somebody<_a.t_>RECIPIENT.com
Delivered-To: ourlogin<_a.t_>serverkompetenz.net
Reply-To: <info<_a.t_>SENDER.com>
From: <info<_a.t_>SENDER.com>
To: <info<_a.t_>SENDER.com>

The "From" and "To" are the sender's address which is pretty normal for mass mailings with BCC. As you said, the "To" can also be empty or something like "undisclosed-recipients". Also very common and normal.

So the route of the mail is:

Mass mailer ==> recipient.com ==> gmail.com ==> KMS

Gmail is doing POP3 to get mails from the reseller, KMS is doing POP3 to get mails from Gmail and the user is doing POP3 to get mails from KMS.

This seems very complicated to me, why can't KMS POP3 the mails directly from the reseller?

You can create a rule that parses the X-Original To: to deliver the mail to the correct sender.

Are you using POP3 sorting rules in KMS? If so, can you post them here?

Dexion AG - The Blackberry Specialists in Switzerland
https://dexionag.ch
  •  
JustAsk

Messages: 20
Karma: 0
Send a private message to this user
Hi,

Yes, this is the route. Gmail is only between because after a year playing with spamassassin and bayes and custom rules i had enough, now i'm letting gmail filter the spams. And you can say anything, this is the easyest and best method to filter spams.

Back to the pop3 sorting rules, yes i'm using it, it's pretty big, and looks like:

several: user<_a.t_>ourdomain.com -> user<_a.t_>ourdomain.com
one: * -> central<_a.t_>ourdomain.com


I'm using Kerio 6.3.1 Linux, maybe i should have make an update before i start this thread?

How can i create the rule you mentioned, this is what i'm missing from the beginning. And where can i make the spam rule, that everything what marked as spam is automatically will be deleted.

thx

[Updated on: Wed, 18 June 2008 11:25]

  •  
freakinvibe

Messages: 1529
Karma: 60
Send a private message to this user
Why don't you use a sorting rule like this?

http://wdr.org/pics/keriopop3.gif

You have to put "X-Original-To" in the "Preferred Header" field.

[Updated on: Wed, 18 June 2008 12:49]


Dexion AG - The Blackberry Specialists in Switzerland
https://dexionag.ch
  •  
JustAsk

Messages: 20
Karma: 0
Send a private message to this user

Phew, i didn't know that it's an editable combobox, i'll give it a try, thx!
  •  
JustAsk

Messages: 20
Karma: 0
Send a private message to this user



It works. Many many thanks to you both!!!



  •  
JustAsk

Messages: 20
Karma: 0
Send a private message to this user

Ahm..
Now i have the followings:

if i send an email to us like: to: address, addres, address
its only delivered to the first one whitch is in the x-original-to (lol)

What should i do? Can i tell KMS deliver to both fields?


  •  
JustAsk

Messages: 20
Karma: 0
Send a private message to this user

No answer, ok.

Can i script KMS? Can i use SIEVE to make my own delivery
rules? I can't find any doc/manual how or where to do it.
I'm using KMS 6.3.1

thx

[Updated on: Tue, 01 July 2008 10:26]

  •  
freakinvibe

Messages: 1529
Karma: 60
Send a private message to this user

[Updated on: Tue, 01 July 2008 10:35]


Dexion AG - The Blackberry Specialists in Switzerland
https://dexionag.ch
  •  
JustAsk

Messages: 20
Karma: 0
Send a private message to this user

Thx i know this link.
My question was how to implement this in KMS?

JustAsk

Messages: 20
Karma: 0
Send a private message to this user

Ok, does KMS process the .siv files in the mailbox before delivery? Or why is this rule editor in the webmail surface?
Because it's user dependent? So i have to make my custom rule and copy it in all mailboxes?

Previous Topic: Whats is the order of operation for creating a skin?
Next Topic: duplicate events appearing on Public calendar
Goto Forum:
  


Disclaimer:
Kerio discussion forums are intended for open communication between forum members and may contain information and material posted by members which may be useful in learning about Kerio products. The discussion forums are not intended to provide technical support for any specific product. Any information implied or expressed in the discussion forums is that of the posting member. Kerio is in no way responsible for the information posted in the forums, or its accuracy. Kerio employees may participate in the discussions, but their postings do not represent an offical position of the company on any issues raised or discussed. Kerio reserves the right to monitor and maintain the forums to promote free and accurate exchange of information.

Current Time: Sun Sep 24 01:42:00 CEST 2017

Total time taken to generate the page: 0.00606 seconds
.:: Contact :: Home ::.
Powered by: FUDforum 3.0.4.