Sambar Server Documentation

Mail Frequently Asked Questions


How do I send attachments larger than 100K via WebMail ?
How can I block attachments with executable or Visual Basic code ?
How do I setup two domains in my mail server ?
Netscape messenger does not allow @ in the username, how can a virtual-hosted client access mail ?

How do I send attachments larger than 100K via WebMail ?
There are two settings that determine the size of a mail message. The first Mail Message Size in the config/mail.ini file is used by the SMTP server to restrict the size of any single mail message recieved by the server. By default, mail messages are restricted to 200K bytes of data (including attachments).

The second, less obvious, setting is the Maximum Content-Length in the config/config.ini file. This setting indicates the maximum size of any HTTP POST content recieved by the server. Since WebMail goes through the web server when sending messages to the SMTP server, this value must reflect the maximum message size you wish to send.

How can I block attachments with executable or Visual Basic code ?
Some attachments can be stopped using the existing filtering mechanisms by adding rules such as:

delete "" CASEI body "filename=\"*.exe\"*
delete "" CASEI body "filename=\"*.vbs\"*

There is one limitation to the above filtering rules, which is that the body filtering rules only apply to the first 2K bytes of the body. So if the attachment appears after a long textual message (or is the second attachment), the above filtering rules will not apply.

How do I setup two domains in my mail server ?
Modify the Local Domains in the [smtpd] section of the config/mail.ini file to have the domains you wish to support:

Local Domains = *domain1.com *domain2.com *domain3.com
Then when creating users, you have the option of creating the user account as:
tod@domain1.com
tod@domain2.com
tod@domain3.com
Each of the above map to a separate user account. If, however, you have only a single account tod, then mail directed to any of the domains will go into that single account.

Netscape messenger does not allow @ in the username, how can a virtual-hosted client access mail ?
To get around this limitation in the Netscape client, the star (*) symbol can be used in place of the at (@) symbol. The POP3 and SMTP servers will translate a star (*) to the at (@) symbol during user login.

© 2001 Sambar Technologies. All rights reserved. Terms of Use.