![]() |
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)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 ... |
But the mails have been sent:
Quote:
|
Quote:
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 |
Have you checked your Postfix transport rules, aliases, etc.?
|
Quote:
transport.cf: Code:
user = postfixCode:
user = postfixCode:
user = postfixCode:
myhostname = aqua.xxxxx.co.nzI can provide more of the main.cf file, or other files, just let me know what parts. Thanks, Mike |
Quote:
|
Quote:
And as the mail server has been handling email perfectly ok for 1 person in the "to" field, then the database seems to be fine. Maybe its something else? Amavis, or maildrop? |
Ok, finally found a part solution!!!
Seems other people have had this problem too. In the maildrop README.postfix file, I found this: Quote:
Then reloaded postfix, tested by sending email with multiple recipients, and it didn't work. So I tried something different, turning off content filtering (spam/virus filtering with clamav, spamassassin, via amavisd). I did this by commenting out this line in main.cf: Code:
#content_filter = smtp-amavis:[127.0.0.1]:10024So, why I wonder does it not work when the "content_filter" is turned on? Only when its off? Thats the next thing I'll have to find out. I can't leave the content-filter off, as its removes on average 500 spam and 10 virus emails every day! Mike |
What's in /etc/amavis/amavisd.conf?
|
Quote:
The only thing that isn't working with 'content-filter' on, is if I send an email like the following: From: external address To: persona@myserver.co.nz CC: persona@myserver.co.nz Eg, if I send an email to the same person, in 'To', and 'CC'. Or the same person in 'To' twice. Or if I send to persona@myserver.co.nz and an alias (eg foobar@myserver.co.nz) that forwards to the same address, persona@xxxxx.co.nz But I'm thinking thats how mail servers are supposed to work? If an email is addressed to the same person more than once, it only delivers it once. That was were I was getting the problem above, i was sending email to myself, and an alias to myself. All other mail now works fine!! So the amavisd content filter is working. Thanks falko for your assistance! Hopefully this helps someone else, if they have the same issue. |
| All times are GMT +2. The time now is 14:29. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.