Mark Martinec ha scritto:
Most strange. I don't see a way for amavisd-new to produce
two copies of the original body. The forwarding code takes the
original mail from the file and modifies the header on the fly,
it's pretty straightforward. I suspect some other part of your setup
is playing jokes with your mail.
I have imaginated sort of this, but I can't find which part of the setup
could do this...
As a start, you could examine the mail size as it enters Postfix
(reported in its log), then the size of the same mail as it enters
amavisd, reported in its log at log level 1:
ESMTP:[127.0.0.1]:10024 /var/amavis/tmp/...: <...> -> <...>
Received: SIZE=10016 from ... by localhost ...
then the size of the same mail as it re-enters Postfix on port 10025,
and finally its size when it lands in your mailbox. For any substantial
mail body size it should be pretty obvious where the mail size
bumps up by another copy of the body.
Here is a log for an email who is duplicated:
Nov 23 02:31:30 localhost postfix/smtpd[20259]: connect from
localhost.localdomain[127.0.0.1]
Nov 23 02:31:30 localhost postfix/smtpd[20259]: 8E9F112EE:
client=localhost.localdomain[127.0.0.1]
Nov 23 02:31:31 localhost postfix/cleanup[20262]: 8E9F112EE:
message-id=<[EMAIL PROTECTED]>
Nov 23 02:31:31 localhost postfix/qmgr[19688]: 8E9F112EE:
from=<[EMAIL PROTECTED]>,
size=5757, nrcpt=1 (queue active)
Nov 23 02:31:31 localhost fetchmail[19404]: flushed
Nov 23 02:31:34 localhost postfix/smtpd[20267]: connect from
localhost.localdomain[127.0.0.1]
Nov 23 02:31:34 localhost postfix/smtpd[20267]: 8F6E21931:
client=localhost.localdomain[127.0.0.1]
Nov 23 02:31:34 localhost postfix/cleanup[20262]: 8F6E21931:
message-id=<[EMAIL PROTECTED]>
Nov 23 02:31:34 localhost postfix/qmgr[19688]: 8F6E21931:
from=<[EMAIL PROTECTED]>,
size=6356, nrcpt=1 (queue active)
Nov 23 02:31:34 localhost postfix/smtpd[20267]: disconnect from
localhost.localdomain[127.0.0.1]
Nov 23 02:31:34 localhost amavis[19982]: (19982-01) Passed,
<[EMAIL PROTECTED]> ->
<[EMAIL PROTECTED]>, Mes
sage-ID: <[EMAIL PROTECTED]>, Hits: -0.76
Nov 23 02:31:34 localhost postfix/smtp[20263]: 8E9F112EE:
to=<[EMAIL PROTECTED]>, orig_to=<[EMAIL PROTECTED]>,
relay=localhost[127.0.0.1], delay=4,
status=sent (250 2.6.0 Ok, id=19982-01, from MTA: 250 Ok: queued as
8F6E21931)
Nov 23 02:31:34 localhost postfix/qmgr[19688]: 8E9F112EE: removed
Nov 23 02:31:34 localhost postfix/local[20268]: 8F6E21931:
to=<[EMAIL PROTECTED]>, relay=local, delay=0, status=sent
(delivered to maildir)
Nov 23 02:31:34 localhost postfix/qmgr[19688]: 8F6E21931: removed
Nov 23 02:31:50 localhost postfix/smtpd[20259]: disconnect from
localhost.localdomain[127.0.0.1]
I see that the email forwarded to amavis has size 5757 but the email
sent from amavis to postfix after scanning is 6356...
The difference is relatively small I see, if the email was duplicated by
amavisd I should see that the size of the email is almost duplicated, true?
Another tool that can be handy is to capture TCP traffic
with tcpdump and analyze it later with ethereal, matching
events with log entries.
Mark
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/