Problem with 'CC' & 'BCC' email not being delivered.
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
- clamav 0.88.2
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: firstname.lastname@example.org
- PersonB with address on my server: email@example.com
- PersonC with address on my server: firstname.lastname@example.org
Suppose PersonA sends the following email:
email@example.com receives the email successfully in their inbox.
However firstname.lastname@example.org doesn't, nothing arrives, seems the CC email disapears.
I get the following extract in my mail log:
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:
But the mails have been sent:
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 email@example.com sent an email with headers: To: <firstname.lastname@example.org>, <email@example.com>
Then only firstname.lastname@example.org 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.?
I can provide more of the main.cf file, or other files, just let me know what parts.
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:
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:
So, 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!
What's in /etc/amavis/amavisd.conf?
The only thing that isn't working with 'content-filter' on, is if I send an email like the following:
From: external address
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 email@example.com and an alias (eg firstname.lastname@example.org) that forwards to the same address, email@example.com
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.