Online help for LANMailServer

EMail Server LANMailServer program settings
General
Local Email Accounts
Local domain name, which should also be a valid internet domain | Enter the domain name to be used for incoming and outgoing emails. The domain name should be a valid internet domain so that emails sent to the internet are valid. e.g., mydomain.de LANMailServer checks all emails sent via LANMailServer SMTP against this domain name. If a local email account exists for this domain name and the local part of the email address (before the @), the email will not be sent to the internet but directly imported into the local email account.
|
Optionally, other local domain names | Additional domain names can be specified, which may be useful if multiple email addresses with different domains are used. e.g.,
LANMailServer checks all emails sent via LANMailServer SMTP against these domain names. If a local email account exists for one of the domain names and the local part of the email address (before the @), the email will not be sent to the internet but directly imported into the local email account.
|
Checking external email accounts | Set how often and optionally during which period external email accounts should be checked for new emails. External email accounts can be defined for each local email account. LANMailServer checks the external email accounts at the specified interval and imports the emails into the local email account. Checking external email accounts is only performed if LANMailServer has detected an internet connection. The internet connection type must be set to "Connection via LAN/permanent line/DSL via router." See also Configure local email accounts
|
Delete copies of emails kept in external mailboxes after | Enable this setting and specify the number of days after which emails in external mailboxes are automatically deleted. Note: Emails in external mailboxes are only deleted if this email account is regularly accessed.
|
Internet Connection
Type of Internet Connection | Connection via LAN/leased line/DSL through a router Use this setting if you have a permanent internet connection. Offline mode, do not establish an internet connection Never establishes an internet connection. All emails in the outgoing queue will never be sent.
Important Note The type of internet connection affects the LANMailServer SMTP server. The SMTP server only attempts to send emails when you are online. If there is no connection, the SMTP server writes the data to a file (queue) on your hard drive and sends it once you are online.
|
POP3 Server
Timeout | Set the time how long LANMailServer should wait for a response from the email program.
| ||||||
Port (Default 110) | The port setting should only be changed if you are running another POP3 server on your PC. When changing the port, you must also update the port specification in your email program.
| ||||||
SSL Port (Default 995) | The port setting should only be changed if you are running another POP3 server on your PC. When changing the port, you must also update the port specification in your email program. Specify port -1 to not run a POP3 server secured via SSL. See also: Notes on SSL access
| ||||||
Access Restriction | This setting is important to protect the LANMailServer POP3 server from unauthorized access. Possible settings:
|
IMAP4 Server
Timeout | Set the time how long LANMailServer should wait for a response from the email program.
| ||||||
Port (Default 143) | The port setting should only be changed if you are running another IMAP4 server on your PC. When changing the port, you must also update the port specification in your email program.
| ||||||
SSL Port (Default 993) | The port setting should only be changed if you are running another IMAP4 server on your PC. When changing the port, you must also update the port specification in your email program. Specify port -1 to not run an IMAP4 server secured via SSL. See also: Notes on SSL access
| ||||||
IMAP APPEND for all mailboxes | Default: 100 MB This value indicates the maximum size of an email that can be added to a folder (mailbox) via an IMAP APPEND command from a client program. Enter a value of 0 to prohibit adding emails. When emails are sent via SMTP, the email program uses the IMAP APPEND command to store the sent email in the "Sent Items" folder. If the email exceeds the size limit, the email program may completely refuse to send the email.
| ||||||
Access Restriction | This setting is important to protect the LANMailServer IMAP4 server from unauthorized access. Possible settings:
|
SMTP Server
Timeout | Set the time LANMailServer should wait for a response from the email program when sending emails. This setting also affects the wait time between the provider's SMTP server or, when using the LANMailServer server, the wait time when connecting to the email server of the email recipient. Increase the time if there are issues with email sending.
| ||||||
Port (Default 25) | The port setting should only be changed if you are running another SMTP server on your PC. When changing the port, you must also update the port specification in your email program.
| ||||||
SMTP Authentication Always Required
| If this setting is enabled, every email program must authenticate with the username/password of a local email account. Without authentication, email sending to internal and external email accounts will always be denied. If authentication is not required (i.e., anyone can send emails), deactivate this option and choose the not-recommended option "Open Relay." Important
Choose the variant "SMTP Auth. Always Necessary for Internet Sending, Not Necessary Locally" to allow emails to be sent to local email accounts without authentication. Emails sent to the internet (non-local email addresses) can only be sent with authentication. This option must be used if LANMailServer is to accept emails directly from the internet via SMTP (Port 25).
| ||||||
Allow Encrypted Connections via StartTLS
| Enable this setting to allow an email program to establish an encrypted connection to the server via StartTLS. See also: Notes on SSL Access
| ||||||
Sender Email Address Must Be a Local Email Account | Enable this option to ensure the SMTP server only accepts emails from senders for whom a local email account is configured.
| ||||||
Always Send Emails for Existing Local Email Accounts to the Internet | Default: Disabled. If this function is disabled, emails sent through the LANMailServer SMTP server will be sorted into the respective local account if the email recipient is a local email account. Enable this function to send the email to the internet even if the recipient has a local email account. The email will also be saved in the local email account; LANMailServer will not retrieve the email again from the external mailbox. To access the external account, IMAP4 should be used, so LANMailServer can more easily filter emails that are already stored in the local email account. When accessing via POP3, the entire email is retrieved from the external mailbox and discarded after verification.
| ||||||
Access Restriction | This setting is important to protect the LANMailServer SMTP server from unauthorized access. Possible settings:
| ||||||
Email Sending | |||||||
The email sending settings are used for sending emails to the internet for all local email accounts. For each local email account, a different SMTP server or other SMTP authentication data can also be specified separately.
| |||||||
Direct Sending: LANMailServer Assumes the Functions of an SMTP Server | Use this setting to allow LANMailServer itself to assume the functions of an SMTP server. Using the LANMailServer SMTP server is only possible for security reasons if the username and password of the local email account are specified in the email program under the option "Server Requires Authentication." This setting is only recommended if you have a permanent internet connection. If using a dial-up connection, there may be issues with email sending as some servers prohibit receiving emails with an IP address from a dial-up connection or immediately mark them as spam or delete them.
| ||||||
Use This SMTP Server | Enter the SMTP server of an email provider. Also required are the username and password for email sending (SMTP authentication) of the email provider.
Optional Specification: "Optional, Always Overwrite Sender Email Address with This Email Address" Enter a valid email address to use only this email address as the sender email address for every email sent to the internet. This makes it possible to use a different domain locally than the internet domain. Note: If a separate SMTP server is defined in the user's local email account, this SMTP server will always be used for sending emails to the internet.
| ||||||
Failed Deliveries | Specify after how many days LANMailServer should stop attempting to send an email to the internet. The email will be returned to the sender as "Undeliverable." If the sender no longer exists, the email will be forwarded to the Postmaster.
| ||||||
Maximum Number of Sending Threads | Set the number of sending threads (simultaneous email sending) LANMailServer should use for sending emails to the internet. A typical value is 1 thread. If you have a high internet upload rate, you can increase this value to achieve faster email sending.
| ||||||
SMTP Helo Name | An optional valid domain can be entered here in case the external SMTP server refuses to accept emails due to an invalid Helo name.
| ||||||
Add a Digital Signature (S/MIME) to Emails | Enable this setting to add a digital signature to all outgoing emails. Click the "Digital Signature" link to change the S/MIME settings:
| ||||||
Add a DomainKey Signature to Emails | This option allows adding a DomainKey signature to each email. Click "Add DomainKey Signature" to enter the DomainKey selector and private key. This information is provided by your administrator or server provider.
| ||||||
Limit Emails to Be Sent to | Enable this option and specify the maximum email size in MB. If an email sent to LANMailServer exceeds this size, its acceptance will be denied.
| ||||||
Limit Recipients per Email to | Limits the number of recipients per email in case the external SMTP server has a recipient limit. This results in a single email being split into multiple emails for sending. e.g., If an email needs to be sent to 250 recipients as CCs and the external SMTP server has a limit of 2 recipients per email, LANMailServer will split the email into 125 individual emails, each with 2 recipients, and send them to the external SMTP server. This setting can also be used to bypass the GoogleMail error "451-4.3.0 Multiple destination domains per transaction is unsupported." Specify a limit of 1 in such cases. Emails with recipients in different destination domains will be individually sent to the GoogleMail server.
| ||||||
Limit Sending from Outgoing Queue to | If a very large number of emails are intended for internet sending, the SMTP server used might reject the emails. After enabling this option, specify the maximum number of emails that should be sent to the external SMTP server before a pause is taken.
| ||||||
Email Pickup | |||||||
Enable this setting to regularly check a folder for .eml files. The included .eml files will be loaded and either distributed locally or sent to the internet. Sending occurs without confirmation or prior warning. Notes:
|
Autoresponder
If the autoresponder has been enabled for local email accounts, the following options influence the autoresponder function.
Avoid Email Loops | Enable these settings to ensure emails from other autoresponders are not answered. Detection is based on the email header fields X-Loop, X-Auto-Response-Suppress, or Auto-Submitted. If none of these fields are present, the email is considered a non-autoresponder email.
|
Insert X-Loop Header Field into All Emails Sent by Autoresponder | Adds the X-Loop header field to the automatic reply email, so other autoresponders do not automatically reply to the email if supported by their software.
|
Limit Number of Autoresponder Emails Sent to One Address Per Day | If the opposing autoresponder does not respect the X-Loop header field, an endless loop may occur when responding to emails. To prevent this, you can specify the maximum number of emails sent to a target email address per day. Once this limit is exceeded, no further emails will be automatically responded to or sent.
The email limit applies separately for each configured local user.
|
Autoresponder Template for Creating New Local Email Accounts | A default text can be stored, which will automatically be used when creating new email accounts.
|
SMS Sending (only for Germany, Austria, and Switzerland)
To send SMS messages for incoming emails, you need to register with the SMS service SMSout.de. The SMS is sent using the HTTP protocol, and encrypted transmission (HTTPS) can also be used.
For each local email account, you can individually enable SMS sending and specify a mobile number.
SMSout.de Username | Enter your SMSout.de username.
|
SMSout.de Password: | Enter your SMSout.de password.
|
Use HTTPS Connection
| Enable this setting to send SMS messages via an encrypted HTTP connection.
|
SMS Sending Mode | Choose the "Without own sender" variant to send SMS messages with any phone number (the cheapest option). With the "With own sender" variant, your mobile number or the sender text stored in SMSout.de will be used.
|
Contents of the Email to be Sent as SMS | Each SMS may contain a maximum of 160 characters; texts with more than 160 characters will be shortened to 160 characters. Sender and Subject of the Email Sender, Subject, and Start of the Email
|
Appearance
Define the style in which the LANMailServer Console program interface should be displayed. After changing the style, the LANMailServer Console should be closed and restarted.
Advanced
Internal Settings
Create Log File for Error Detection | When this setting is enabled, log files are created in the user's Temp directory containing communication between client and server, as well as communication between external email servers and LANMailServer. Note: This setting should be disabled if not used, as the log files will eventually consume the entire hard drive storage space.
|
Log POP3/IMAP4 Commands Without Results for Error Detection | If errors occur during POP3/IMAP4 access by an email program, this option can be enabled to facilitate error tracking. Unlike the "Create Log File for Error Detection" option, only commands are recorded in the log, without potentially large data results.
|
Log SQL Statements Without Results for Error Detection | Records all SQL statements in the log, which can facilitate error tracking. |
Automatic Server Restart | The server is automatically restarted once per day; you can specify the time for the restart here (default: 03:00 a.m.). This setting is only meaningful if LANMailServer runs 24 hours a day.
|
Permanently Delete Automatically Deleted Emails in Mailboxes | Many email programs only set the delete flag for emails when accessed via IMAP but never actually delete (EXPUNGE) them. LANMailServer can automatically delete emails at the specified interval, as they will no longer be displayed by the email program.
|
Maximum Supported TLS Version for Accessing External POP3, IMAP4, and SMTP Servers | Select the highest supported TLS version. If an antivirus program reports the error "Invalid Certificate" in connection with TLS v3, it means the antivirus program does not support the certificate. In this case, you can set the highest TLS version to 1.2.
|
SSL Certificate
Use Internal SSL Certificate for Server Name "localhost" | This is the default setting; the internal self-signed LANMailServer certificate for the server name "localhost" will be used. If the server name differs, a custom certificate with the correct server name must be used; otherwise, the email program will repeatedly display the error "Target principal name is incorrect."
|
Use Custom SSL Certificate | Select this option to use a custom certificate. A custom certificate can be created as a self-signed certificate using OpenSSL software, or alternatively, a certificate from a trusted authority can be used. The certificate must contain the correct server name; otherwise, the email program will repeatedly display the error "Target principal name is incorrect." Guide: Create Custom Self-Signed Certificate with OpenSSL
|
The HTTP server is used to implement the JSON API for creating, deleting, and modifying users. Additionally, the HTTP server supports OAuth2 authentication if the email program allows configuration of custom apps.
Enable HTTP API/OAuth2 Server | Activates the HTTP server. JSON API Notes:
OAuth2 Notes:
|
HTTP Port | Enter the HTTP server port; default is 6080.
|
HTTPS Port | Enter the HTTPS server port; default is 60443. Notes:
|
API Key | Displays the API key that must be transmitted in the header for each POST call: APIkey: <API Key> You can generate a new API key. After saving, you must update the API key in all custom scripts and programs.
|
JSON API Commands
Command | Notes |
get_version | Returns the LANMailServer version and API version.
|
get_users | Returns all created users without groups as an array. Optionally, you can pass "onlyActive" = true or false to retrieve only active users or also inactive ones.
|
get_user | Returns the stored data of a user. You must also pass either id or username. id and username can be obtained via the get_users command.
|
update_user | Used to modify a user. You must also pass either id or username for the user to be updated. id and username can be obtained via the get_users command. Use get_user to retrieve the stored data and field names. When updating the user, the field names must be used with the same spelling. The password cannot be changed via API. All characters must be transmitted as UTF-8 encoded.
|
create_user | Creates a new user. You must also pass username and password, optionally Active true or false. If successful, the id of the new user is returned.
|
remove_user | Deletes a user and all stored emails of the user permanently. You must also pass either id or username. id and username can be obtained via the get_users command.
|
OAuth2 Endpoints and Parameters
ClamAV
ClamWin and clamd must be installed on your computer.
Using ClamAV/ClamWin/Clamd with LANMailServer
Server Name with clamd and Port | Enter the server name and port; this is usually localhost and 3310.
|
Maximum Email Size | Specify the maximum email size for scanning. The larger the email, the more time is needed for scanning. Pay attention to the StreamMaxLength setting in the clamd.conf file; the size specified here must not exceed StreamMaxLength.
|
Scan All Incoming Emails from External Email Accounts | Scans all emails retrieved from external email mailboxes via LANMailServer. If a virus is found, the emails are deleted or marked with a tag in the subject.
|
Scan All Emails Sent via SMTP | Scans all emails sent via the LANMailServer SMTP server. If a virus is found, sending is denied.
|
Add Header Entry "X-Virus-Scanned: ClamWin" | Adds an email header entry X-Virus-Scanned: ClamWin to each scanned email. In your email program, e.g., Thunderbird, you can view the email headers to determine if the email was scanned.
|
Create Log Entry When Scanning Emails | Creates a log entry during email scanning. If a virus is found, a log entry is always created.
|
Handle Infected Emails from External Email Accounts... | Specify whether infected emails should be deleted or marked with a tag in the subject.
|
Language
Select the language of the program interface and messages displayed on screen and in the log file. After changing the language, you must restart the LANMailServer service to ensure the service outputs log messages in the selected language.
For SSL access, LANMailServer includes its own self-signed certificate for the server name "localhost." If the email program or antivirus software issues a warning during SSL-secured access, this certificate must be added to the Windows certificate store. To install the certificate, follow these steps:
- Press Windows key and R to display the Windows Run dialog.
- Enter certmgr.msc in the Run dialog and click OK.
- In the certificate manager, select Trusted Root Certification Authorities and then Certificates on the left.
- Under the Action menu - All Actions, select Import.
- Select the certificate lanmailserver.crt in the LANMailServer program folder and let it be imported.
Manual last updated: Sun, 30 Mar 2025 22:06:38 +0100
Manual as complete RSS feed: Manual as RSS feed
Manual localized with Microsoft Copilot
Erstellt mit RSSWriter https://www.rsswriter.de