Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 7th July 2006, 05:44
snowfly snowfly is offline
Member
 
Join Date: Jul 2006
Posts: 93
Thanks: 0
Thanked 7 Times in 5 Posts
Default Problem with 'CC' & 'BCC' email not being delivered.

Hi,

I've got a problem with my mail server in that any 'CC' or 'BCC' email is not being delivered.

The sever is running virtual mail setup with:
- Debian Sarge
- 2.4.27 smp kernel
- courier 0.47-4 courier-pop, courier-imap, courier-authmysql
- postfix 2.1.5-0 postfix-mysql, postfix-tls
- maildrop 1.6.3, maildropmysql
- spamassassin
- clamav 0.88.2
- amavisd

Basically, if someone sends an email (from anywhere) to an email address on my server, and also CC or BCC an email address on my server, it gets delivered to the person in "To:", but not to "CC" and "BCC.

Eg: Consider the following 3 people
- PersonA with an external address: persona@gmail.com
- PersonB with address on my server: a@myserver.co.nz
- PersonC with address on my server: b@myserver.co.nz

Suppose PersonA sends the following email:
To: a@myserver.co.nz
CC: b@myserver.co.nz
Subject: foobar
Message: test

a@myserver.co.nz receives the email successfully in their inbox.
However b@myserver.co.nz doesn't, nothing arrives, seems the CC email disapears.

I get the following extract in my mail log:
Code:
Jul  7 14:12:10 aqua postfix/qmgr[31036]: 44C6554EAA: from=<persona@gmail.com>, size=3280, nrcpt=2 (queue active)
Jul  7 14:12:10 aqua amavis[8578]: (08578-04) ESMTP::10024 /var/amavis/tmp/amavis-20060707T140450-08578: <persona@gmail.com> -> <a@myserver.co.nz>,<b@myserver.co.nz> Received: SIZE=3280 from aqua.xxx.co.nz ([127.0.0.1]) by localhost (aqua [127.0.0.1]) (amavisd-n
ew, port 10024) with ESMTP id 08578-04; Fri,  7 Jul 2006 14:12:10 +1200 (NZST)
Jul  7 14:12:10 aqua amavis[8578]: (08578-04) Checking: <persona@gmail.com> -> <a@myserver.co.nz>,<b@myserver.co.nz>
Jul  7 14:12:11 aqua amavis[8578]: (08578-04) spam_scan: hits=0.087 tests=HTML_40_50,HTML_MESSAGE
Jul  7 14:12:11 aqua amavis[8578]: (08578-04) FWD via SMTP: [127.0.0.1]:10025 <persona@gmail.com> -> <a@myserver.co.nz>,<b@myserver.co.nz>
Jul  7 14:12:11 aqua amavis[8578]: (08578-04) Passed, <persona@gmail.com> -> <a@mysever.co.nz>,<b@myserver.co.nz>, Message-ID: <0
01f01c6a16a$c5c1de20$4503a8c0@Mike>, Hits: 0.087
Jul  7 14:12:11 aqua postfix/smtp[8931]: 44C6554EAA: to=<a@myserver.co.nz>, relay=127.0.0.1[127.0.0.1], delay=1, status=sent (250 2.6.
0 Ok, id=08578-04, from MTA: 250 Ok: queued as 17E4454EB6)
Jul  7 14:12:11 aqua postfix/smtp[8931]: 44C6554EAA: to=<b@myserver.co.nz>, relay=127.0.0.1[127.0.0.1], delay=1, status=sent (250 2.6
.0 Ok, id=08578-04, from MTA: 250 Ok: queued as 17E4454EB6)
Jul  7 14:12:11 aqua postfix/qmgr[31036]: 44C6554EAA: removed
Jul  7 14:12:11 aqua postfix/pipe[8936]: 17E4454EB6: to=<a@myserver.co.nz>, relay=virtual, delay=0, status=sent (xxxxx.co.nz)
Jul  7 14:12:11 aqua postfix/pipe[8936]: 17E4454EB6: to=<b@myserver.co.nz>, relay=virtual, delay=0, status=sent (xxxxx.co.nz)
Jul  7 14:12:11 aqua postfix/qmgr[31036]: 17E4454EB6: removed

Its the same with CC and BCC emails, and the same if the sender address is from an external address, or an internal address on my server.

Anyone experienced this, or something similar where CC/BCC emails don't get delivered?

One thing to note, is that if an email like the following is sent (internal user sends to external user, and CC's to internal user), then it works fine:
From: a@myserver.co.nz
To: persona@gmail.com
CC: b@myserver.co.nz
Subject: foobar
...

Last edited by snowfly; 23rd October 2008 at 18:02.
Reply With Quote
Sponsored Links
  #2  
Old 8th July 2006, 12:52
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

But the mails have been sent:
Quote:
Jul 7 14:12:11 aqua postfix/pipe[8936]: 17E4454EB6: to=<a@myserver.co.nz>, relay=virtual, delay=0, status=sent (ramsu.co.nz)
Jul 7 14:12:11 aqua postfix/pipe[8936]: 17E4454EB6: to=<b@myserver.co.nz>, relay=virtual, delay=0, status=sent (ramsu.co.nz)
Does b@myserver.co.nz maybe point to the same mailbox as a@myserver.co.nz?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 9th July 2006, 05:36
snowfly snowfly is offline
Member
 
Join Date: Jul 2006
Posts: 93
Thanks: 0
Thanked 7 Times in 5 Posts
Default

Quote:
Originally Posted by falko
But the mails have been sent:

Does b@myserver.co.nz maybe point to the same mailbox as a@myserver.co.nz?
No, they are completely seperate mailboxes.

I just did another test, and it seems its not just CC/BCC mail, its any mail delivered to 2 or more mailboxes on my server.

Eg, if persona@gmail.com sent an email with headers: To: <a@mysever.co.nz>, <b@myserver.co.nz>
Then only a@myserver.co.nz receives the mail, not b@myserver

Its weird that in the 1-2 years I've had this server running, I never even noticed this fault!! Bugger!
So any email sent to more than 1 person on my server, only the first person received it, no one else.

Its weird cause in the log, the emails have the same ID, eg: 17E4454EB6
Reply With Quote
  #4  
Old 10th July 2006, 09:50
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

Have you checked your Postfix transport rules, aliases, etc.?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 11th July 2006, 04:36
snowfly snowfly is offline
Member
 
Join Date: Jul 2006
Posts: 93
Thanks: 0
Thanked 7 Times in 5 Posts
Default

Quote:
Originally Posted by falko
Have you checked your Postfix transport rules, aliases, etc.?
Hi, ok here is my postfix config:

transport.cf:
Code:
user = postfix
password = ********
dbname = xxxxx
table = email_domains
select_field = transport
where_field = domain
hosts = 127.0.0.1
aliases.cf:
Code:
user = postfix
password = *******
dbname = xxxxx
table = email_addresses
select_field = maildir
where_field = email
hosts = 127.0.0.1
remote_aliases.cf:
Code:
user = postfix
password = *********
dbname = xxxxx
table = email_aliases
select_field = remote_address
where_field = email
hosts = 127.0.0.1
And here's the end of my main.cf file:
Code:
myhostname = aqua.xxxxx.co.nz
myorigin = /etc/mailname
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
program_directory = /usr/lib/postfix
mydestination = mail.xxxxx.co.nz, aqua.xxxxx.co.nz, aqua, mail.xxxxx.co.nz
relayhost =

transport_maps = mysql:/etc/postfix/transport.cf
virtual_mailbox_base = /
virtual_uid_maps = static:1001
virtual_gid_maps = static:1001
virtual_mailbox_maps = mysql:/etc/postfix/aliases.cf
virtual_maps = mysql:/etc/postfix/remote_aliases.cf

qmgr_message_active_limit = 100
qmgr_message_recipient_limit = 100

content_filter = smtp-amavis:[127.0.0.1]:10024

message_size_limit = 51200000
unknown_local_recipient_reject_code = 450

smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
broken_sasl_auth_clients = yes
Can you see anything wrong with my config, or anything that might suggest why emails aren't being delivered to the 2nd, 3rd... addressed users when sent to multiple users?

I can provide more of the main.cf file, or other files, just let me know what parts.

Thanks, Mike

Last edited by snowfly; 23rd October 2008 at 18:02.
Reply With Quote
  #6  
Old 12th July 2006, 13:42
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

Quote:
Originally Posted by snowfly
Can you see anything wrong with my config, or anything that might suggest why emails aren't being delivered to the 2nd, 3rd... addressed users when sent to multiple users?

I can provide more of the main.cf file, or other files, just let me know what parts.
Ok, you have all your data in a MySQL database, so you should check the MySQL database if there's some problem with the data (aliases, transports, etc.) that causes your problem.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange email problem for one of my domains... any help appreciated paulrobert_a Installation/Configuration 5 9th August 2010 15:15
sending e-mail using mail() function linuxuser1 HOWTO-Related Questions 38 21st April 2009 13:20
I broke it.. I think.. Email in is not being delivered? edge Server Operation 1 3rd July 2006 15:22
another email problem G7pro General 3 8th March 2006 22:18
Receiving Email and Username Problem dstme General 20 16th November 2005 10:33


All times are GMT +2. The time now is 15:51.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.