Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-02-2006, 07:04 AM
New Member
 
Posts: 4
Default Catch-all account RCPT TO field being re-written

I have submitted a bug on this, but wanted to ask the question in the forums in case someone has some insight on it.

Quote:
I had recently posted a question on the forums here:
http://www.zimbra.com/forums/showthread.php?t=3680

I followed the example and entered this command (I had already created the account):
zmprov ma catchall@domain.tld zimbraMailCatchAllAddress @domain.tld

I tested two emails addressed to:
RCPT TO:<something@domain.tld>
RCPT TO:"Some One"<something@domain.tld>

Both emails get delivered to the account catchall@domain.tld as expected, but the To: header has been changed to [To: undisclosed-recipients:;] instead of showing the correct header field [To: <something@domain.tld>] or [To: Some One <something@domain.tld>].

I can't tell if it's postfix or amavisd-new that is rewriting the header, most likely postfix. Is there a zimbraMailCatchAllCanonicalAddress option that needs to be added when creating a catchall account?
Any guidance would be greatly appreciated.
Reply With Quote
  #2 (permalink)  
Old 08-10-2006, 08:56 PM
Zimbra Employee
 
Posts: 4,792
Default

Looks like a bug. Mind filing it in bugzilla?
__________________
Bugzilla - Wiki - Downloads - Offline Client
Reply With Quote
  #3 (permalink)  
Old 08-10-2006, 10:15 PM
Zimbra Employee
 
Posts: 274
Default

Please understand the difference between RCPT TO/MAIL FROM envelope addresses and To:, From:, Cc: message headers.

undisclosed-recipients is added by postfix cleanup if there are no To/CC headers.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #4 (permalink)  
Old 08-11-2006, 09:28 AM
New Member
 
Posts: 4
Default

Thanks KevinH, I had filed a bug in Zimbra's bugzilla - #9480.

Thanks anand. My thoughts exactly - Postifx will re-write the To: message header when there is no To and is why I'm so confused... HOLD ON...

your comment
Quote:
Please understand the difference between RCPT TO/MAIL FROM envelope addresses and To:, From:, Cc: message headers.
made me take a look at what I was doing - sending mail via telnet below:
telnet mail.domain.tld 25
220 mail.domain.tld ESMTP Postfix
HELO testmachine
250 mail.domain.tld
MAIL FROM:<test@test.com>
250 Ok
RCPT TO:<something@domain.tld>
250 Ok
DATA
354 End data with <CR><LF>.<CR><LF>
Subject: test catchall

testing again

.
250 Ok: queued as 24F425A85B3
quit
221 Bye
I realize now what I've done wrong, first I tested using a MUA like thunderbird and it worked (I should have done this from the start). Then I retested using the correct commands below which also worked.
220 mail.domain.tld ESMTP Postfix
HELO testmachine
250 mail.domain.tld
MAIL FROM:<test@test.com>
250 Ok
RCPT TO:<something@domain.tld>
250 Ok
DATA
354 End data with <CR><LF>.<CR><LF>
Date: 11 Aug 2006 11:45:00
From: test@test.com
To: something@domain.tld
Subject: test catchall

testing again

.
250 Ok: queued as D06E05A85B3
quit
221 Bye
When seting up a mail server I'll always test some initial things via telnet first. I'll test virus patterns like Eicar-Test-Signature to test the anti-virus daemon, sometimes I'll cheat and not put the full message headers in for this test, not thinking. Thanks again for guiding me down the right path, I'll also post a reply in bugzilla to close the bug.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.