User Alias ignored by importing

Issue #957 resolved
Michael created an issue

Hi

I've tried to import my imap account which works great. But my account m@dom.com has also an alias reg@dom.com which goes in to the mailbox m@dom.mailbox

The import ingores all mails to reg@dom.com. (Postfix server). I have enabled

process_rcpt_to_addresses=1

I've tried also:

pilerimport -i localhost -u m@dom.com -p xxx -a reg@dom.com 

Header of missing mail:

Return-Path: <01000168378e9d26-62398ada-fdc4-4080-b688-7c178a9142e8-000000@mailer.netflix.com>
Delivered-To: m@dom.com
Received: from mail.dom.com
    by mail (Dovecot) with LMTP id 1MUFHMUuN1wqWAAAZU03Dg
    for <m@dom.com>; Thu, 10 Jan 2019 12:38:45 +0100
    by mail.dom.com (Postfix) with ESMTPS id 201E3400D1
    for <reg@dom.com>; Thu, 10 Jan 2019 12:38:41 +0100 (CET)
To: reg@dom.com
X-To: reg@dom.com

Comments (8)

  1. Janos SUTO repo owner

    I've managed to reproduce the issue. I'll try to fix it. I'll let you know when ready.

  2. Michael reporter

    Hi

    I've installed the newest branch:

    root@mail:/var/piler/www# piler -v
    1.3.5-pre1 build 996
    

    I tried again to import and rescanned all the indexes but I still dont' see the mails which were sent to the alias:

    pilerimport -i localhost -u m@com.com -p xxx -a reg@dom.com
    pilerimport -i localhost -u m@com.com -p xxx
    

    do I have to use another import option? Or is it maybe that the search is not showing these mails:

    mail piler-webui[13087]: sphinx query: 'SELECT id FROM main1,dailydelta1,delta1 WHERE MATCH('(  restle ) &  (@from mXdomXcom | @to mXdomXcom) ') ORDER BY `sent` DESC LIMIT 0,50 OPTION max_matches=1000' in 0.00 s, 12 hits, 12 total found
    
  3. Janos SUTO repo owner

    Check if reg@dom.com is actually in the rcpt table. Also note that if a message is already in the archive, then pilerimport will skip it. The other thing is that m@dom.com user has not assigned reg@dom.com address, so he won't see such message.

  4. Michael reporter

    Hi

    Ok sorry my fault, I had an Imap login. Created now a local login with the alias included. Now it works!!!

    thanks for your great support

  5. Log in to comment