Rococo Leo wrote:
> Hello everyone!
> 
> When I send Email with attachment big then 2M in RAR Format,it can’t be
> sent
> Why ?

The log lines below indicate two problems.  The first is that the users
[EMAIL PROTECTED], [EMAIL PROTECTED], and [EMAIL PROTECTED]
do not exist in your virtual mailbox tables.  Fix this first.  Show the
output of postconf -n.

The second problem indicates that gzip is failing to decompress part 14
of an archive, and evidence is preserved in the file:

  /var/amavis/tmp/amavis-20080124T000250-91425

You indicate the attachment was a RAR file, but amavis is calling gzip
via do_uncompress().  Have you configured amavis to attempt to use gzip
for rar decoding ?  By default, it would use rar or unrar.

Examine the files in the parts subdirectory directory, and test gzip -d
on part 14 (p014).  You can increase amavis' log level to 2 to see the
parts that are decoded. Example:

... p006 1 Content-Type: multipart/mixed
... p001 1/1 Content-Type: text/plain, size: 148 B, name:
... p007 1/2 Content-Type: message/rfc822
... p008 1/2/1 Content-Type: multipart/mixed
... p009 1/2/1/1 Content-Type: multipart/related
... p010 1/2/1/1/1 Content-Type: multipart/alternative
... p002 1/2/1/1/1/1 Content-Type: text/plain, size: 383 B, name:
... p003 1/2/1/1/1/2 Content-Type: text/html, size: 7961 B, name:
... p004 1/2/1/1/2 Content-Type: image/gif, size: 36179 B, name: foo.gif
... p005 1/2/1/2 Content-Type: video/x-ms-wmv, size: 5307250 B, name:
test.wmv

> 
> I'm not sure if we can set amavisd-new to have limits for the size of
> attachments as opposed to the size of the mail. Either ways, virus
> mails sent by infected machines will never be that big.
> Where to set?

There is nothing below that indicates this is a size limitation; rather
the decompressor is failing.

I'm not aware of any per-attachment type size limit settings.

MrC

> 
> My mailog list:
> 
> Jan 24 10:27:23 fbsd postfix/smtpd[1798]: connect from
> localhost.metaworks.com.cn[127.0.0.1]
> Jan 24 10:27:23 fbsd postfix/smtpd[1798]: NOQUEUE: reject: RCPT from
> localhost.metaworks.com.cn[127.0.0.1]: 550 5.1.1 <[EMAIL PROTECTED]>:
> Recipient address rejected: User unknown in virtual mailbox table; from=<>
> to=<[EMAIL PROTECTED]> proto=ESMTP helo=<localhost>
> Jan 24 10:27:23 fbsd amavis[1772]: (01772-01) Negative SMTP resp to DATA:
> 554 5.5.1 Error: no valid recipients
> Jan 24 10:27:23 fbsd postfix/smtpd[1798]: disconnect from
> localhost.metaworks.com.cn[127.0.0.1]
> Jan 24 10:27:23 fbsd amavis[1772]: (01772-01) (!)SEND via SMTP: <> ->
> <[EMAIL PROTECTED]>,[EMAIL PROTECTED]
> ks.com.cn BODY=7BIT 550 5.6.0 Failed, id=01772-01, from
> MTA([127.0.0.1]:10025): 550 5.1.1 Failed, id=01772-01, from MTA([127.0.0.1]:
> 10025): 550 5.1.1 <[EMAIL PROTECTED]>: Recipient address rejected: User
> unknown in virtual mailbox table
> Jan 24 10:27:23 fbsd amavis[1772]: (01772-01) (!!)TROUBLE in check_mail:
> quar+notif FAILED: Can not quarantine: 550 5.1.1 Failed, id=01772-01, from
> MTA([127.0.0.1]:10025): 550 5.1.1 <[EMAIL PROTECTED]>: Recipient
> address rejected: User unknown in virtual mailbox table at
> /usr/local/sbin/amavisd line 10355, <GEN9> line 36322.
> Jan 24 10:27:23 fbsd amavis[1772]: (01772-01) (!)PRESERVING EVIDENCE in
> /var/amavis/tmp/amavis-20080124T102645-01772
> Jan 24 10:27:23 fbsd postfix/smtp[1785]: 01F1DA94466:
> to=<[EMAIL PROTECTED]>, relay=localhost[127.0.0.1]:10024, delay=62475,
> delays=62430/6/0.02/38, dsn=4.5.0, status=deferred (host
> localhost[127.0.0.1] said: 451 4.5.0 Error in processing, id=01772-01,
> quar+notif FAILED: Can not quarantine: 550 5.1.1 Failed, id=01772-01, from
> MTA([127.0.0.1]:10025): 550 5.1.1 <[EMAIL PROTECTED]>: Recipient
> address rejected: User unknown in virtual mailbox table at
> /usr/local/sbin/amavisd line 10355, <GEN9> line 36322. (in reply to end of
> DATA command))
> Jan 24 10:27:24 fbsd postfix/smtpd[1798]: connect from
> localhost.metaworks.com.cn[127.0.0.1]
> 
> Jan 24 00:02:51 fbsd amavis[91425]: (91425-01) (!)SEND via SMTP: <> ->
> <[EMAIL PROTECTED]>,[EMAIL PROTECTED]
> s.com.cn BODY=7BIT 550 5.6.0 Failed, id=91425-01, from
> MTA([127.0.0.1]:10025): 550 5.1.1 Failed, id=91425-01, from MTA([127.0.0.1]:
> 10025): 550 5.1.1 <[EMAIL PROTECTED]>: Recipient address rejected: User
> unknown in virtual mailbox table
> Jan 24 00:02:51 fbsd amavis[91425]: (91425-01) (!!)TROUBLE in check_mail:
> quar+notif FAILED: Can not quarantine: 550 5.1.1 Failed, id=91425-01, from
> MTA([127.0.0.1]:10025): 550 5.1.1 <[EMAIL PROTECTED]>: Recipient address
> rejected: User unknown in virtual mailbox table at /usr/local/sbin/amavisd
> line 10355, <GEN9> line 5986.
> Jan 24 00:02:51 fbsd amavis[91425]: (91425-01) (!)PRESERVING EVIDENCE in
> /var/amavis/tmp/amavis-20080124T000250-91425
> Jan 24 00:02:51 fbsd postfix/smtp[91615]: 9D37FA94460:
> to=<[EMAIL PROTECTED]>, relay=localhost[127.0.0.1]:10024, delay=201283,
> delays=201277/5.3/0.13/0.66, dsn=4.5.0, status=deferred (host localhost[127.
> 0.0.1] said: 451 4.5.0 Error in processing, id=91425-01, quar+notif FAILED:
> Can not quarantine: 550 5.1.1 Failed, id=91425-01, from
> MTA([127.0.0.1]:10025): 550 5.1.1 <[EMAIL PROTECTED]>: Recipient address
> rejected: User unknown in virtual mailbox table at /usr/local/sbin/amavisd
> line 10355, <GEN9> line 5986. (in reply to end of DATA command))
> Jan 24 00:02:51 fbsd amavis[76754]: (76754-19) (!)do_uncompress: Error
> running decompressor /usr/bin/gzip -d on p014, exit 1 at (eval 73) line 572.
> Jan 24 00:02:53 fbsd amavis[76422]: (76422-18) (!)do_uncompress: Error
> running decompressor /usr/bin/gzip -d on p014, exit 1 at (eval 73) line 572.
> Jan 24 00:03:09 fbsd postfix/smtpd[91631]: connect from localhost.metaworks.
> com.cn[127.0.0.1]
> Jan 24 00:03:09 fbsd postfix/smtpd[91631]: NOQUEUE: reject: RCPT from
> localhost.metaworks.com.cn[127.0.0.1]: 550 5.1.1 <[EMAIL PROTECTED]>:
> Recipient address rejected: User unknown in virtual mailbox table; from=<>
> to=<[EMAIL PROTECTED]> proto=ESMTP helo=<localhost>
> Jan 24 00:03:09 fbsd amavis[76754]: (76754-19) Negative SMTP resp to DATA:
> 554 5.5.1 Error: no valid recipients
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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/

Reply via email to