imta questions
I have 3 questions:
1. How do I limit the size of a message to 10mb?
2. Is there a default limit to the number of To: addresses a message can have? And if so how can I change that?
3. Once I set service.http.smtphost to another server, how do I set it back to use itself as the outgoing smtp? And if I do that will it still follow the imta.cnf rules for re-writes that I have written?
[409 byte] By [
knabe_ta] at [2007-11-26 15:31:13]

# 1
> I have 3 questions:
>
> 1. How do I limit the size of a message to 10mb?
See the "maxblocks" keyword for imta.cnf
>
> 2. Is there a default limit to the number of To:
> addresses a message can have? And if so how can I
> change that?
I think it's unlimited, but without your version, I'm not going to be able to tell.
>
> 3. Once I set service.http.smtphost to another
> server, how do I set it back to use itself as the
> outgoing smtp? And if I do that will it still follow
> the imta.cnf rules for re-writes that I have written?
configutil -o service.http.smtphost -v "" restart http.
Once you do that, mail will be submitted to the local mta. It will be processed exactly the same as any other mail originating at "localhost"
# 2
Thanks Jay, you are helpful as always.I am running 6.2 the Sept 2006 build.
# 3
So if I have 8KB blocks then to restrict to 10 mb would be to addmaxblocks 1280Do I need to add that to each channel, or is there a way to set that globally? Also if I need to add it to each channel is there an order that keywords need to be placed in?
# 4
> So if I have 8KB blocks then to restrict to 10 mb
> would be to add
Except that MTA typical blocks are 10k, not 8k.
>
> maxblocks 1280
>
> Do I need to add that to each channel, or is there a
> way to set that globally?
The "defaults channel:"
Also if I need to add it
> to each channel is there an order that keywords need
> to be placed in?
Keywords can be placed in any order.
remember to run
imsimta cnbuild
imsimta restart dispatcher
after making your edits.
# 5
In my defaults channel i added maxblocks 1024 and rebuilt, and restart dispatcher. when I sent a large test message through, it chopped it up into 15 1024kb messages. where did I go wrong?
# 6
> In my defaults channel i added maxblocks 1024 and
> rebuilt, and restart dispatcher.
Hi -
You might want to check your conversion table. What you really want in your default channel is:
10 240 kilobytes = 10 megabytes
> when I sent a large test message through, it chopped it up into 15 >1024kb messages.
>
> where did I go wrong?
what you really have is: 15 x 1024KB = 15MB
Hope this sheds some light and is useful!
Ken
Message was edited by:
kdavid
Message was edited by:
kdavid
Message was edited by:
kdavid
Message was edited by:
kdavid
# 7
I guess I got lost on this topic somewhere along the way. What I want is to limit the size of messages that users can send to 10mb. So what do I want to set my maxblocks to?Thanks-Troy
# 8
Hi,
If you want to restrict emails on a site-wide basis to a specific value you use the BLOCK_LIMIT option.dat parameter:
"Places an absolute limit on the size, in blocks, of any message that may be sent or received with the MTA. Any message exceeding this size is rejected. By default, the MTA imposes no size limits. Note that the blocklimit channel keyword can be used to impose limits on a per-channel basis. The size in bytes of a block is specified with the BLOCK_SIZE option."
You can also specify the blocklimit imta.cnf channel keyword to *further* restrict this value. Restrictions will apply on the lesser of the BLOCK_LIMIT/blocklimit value (e.g. if BLOCK_LIMIT=10240 and blocklimit 20480, the lesser value of 10240 will apply).
By default BLOCK_SIZE is 1024, so for a 10MB limit you would want to set (10 x 1240 x 1024 = 10MB):
BLOCK_LIMIT=10240
Regards,
Shane.