<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0">
 <channel>
  <title>Email Server for Local Networks POP3 IMAP4 IMAP with Autoresponder, SMTP Relay Server, Email Distribution Groups, OAuth2 Support</title>
  <link>https://int.lanmailserver.de/</link>
  <description>Email Server for Local Networks POP3 IMAP4 IMAP with Autoresponder, SMTP Relay Server, Email Distribution Groups, OAuth2 Support</description>
  <copyright>Mirko Boeer</copyright>
  <pubDate>Wed, 8 Oct 2025 22:36:23 +0100</pubDate>
  <language>en-us</language>
  <category>Software</category>
  <ttl>1440</ttl>
  <managingEditor>nfo@lanmailserver.de</managingEditor>
  <webMaster>nfo@lanmailserver.de</webMaster>
  <generator>RSSWriter 3.00 https://www.rsswriter.de/</generator>
  <keywords>Email Server, POP3, IMAP4, Local Network, Autoresponder, SMTP Relay Server, Email Distribution Groups, Alternative to AVM KEN!, IMAP,Windows,OAuth2</keywords>
  <image>
   <url>https://int.lanmailserver.de/images/lanmailserver_screen.png</url>
   <link>https://int.lanmailserver.de/</link>
   <title>Email Server for Local Networks POP3 IMAP4 IMAP with Autoresponder, SMTP Relay Server, Email Distribution Groups, OAuth2 Support</title>
   <description>Email Server for Local Networks POP3 IMAP4 IMAP with Autoresponder, SMTP Relay Server, Email Distribution Groups, OAuth2 Support</description>
  </image>
    <item>
     <title>Introduction</title>
     <link>https://int.lanmailserver.de/</link>
     <author>nfo@lanmailserver.de</author>
     <guid isPermaLink="false">e-mail-server-features</guid>
     <keywords>Email Server, POP3, IMAP4, Local Network, Autoresponder, SMTP Relay Server, Email Distribution Groups, Alternative to AVM KEN!, IMAP,Windows,OAuth2</keywords>
     <contextid>1</contextid>
     <description><![CDATA[<style>body {font-family: Calibri, Verdana, Arial;font-size: 12pt; color: #000000;} li > p, li > div {display: inline} </style><p><span>LANMailServer allows sending and receiving emails within a local network, requiring only one computer with internet access. Using a conventional email program that supports the POP3/IMAP4 and SMTP standards, emails can be received and sent. It supports normal text emails, HTML format emails with or without file attachments. LANMailServer can be used with LAN connections and dial-up connections (Dial-Up Networking, T-Online Software).</span></p><div></div><p><span><strong>Overview of Features</strong></span></p><ul><li><p><span>Windows service that runs in the background without requiring a Windows user login. Server configuration is done via the LANMailServer Console software.</span></p></li><li><p><span>Creation of local email accounts, including options for forwarding emails locally or to the internet, and an autoresponder function. (Shareware version supports up to 2 email accounts, with no forwarding options or autoresponder features.)</span></p></li><li><p><span>Creation of email groups to consolidate email accounts, allowing emails to be sent directly to the group rather than to individual recipients.</span></p></li><li><p><span>Emails can be sent within the network and to internet.</span></p></li><li><p><span>Emails from external email accounts can be retrieved and assigned to local users. External email accounts supporting POP3/IMAP4 standards are supported. (Shareware version supports up to 2 external email accounts.)</span></p></li><li><p><span>Sending emails of any size within the network or to the internet using the integrated SMTP server or any SMTP server of an email provider (Shareware version restricts email size to max. 100 KB).</span></p></li><li><p><span>Sending emails via HTTP from webspace or a personal server using the included PHP script, via Microsoft 365/Microsoft Graph (maximum email size: 3.9 MB), or via Amazon SES (maximum email size: 10 MB).</span></p></li><li><p><span>Retrieval of emails from local email accounts via POP3 or IMAP4.</span></p></li><li><p><span>The IMAP4 server supports IMAP4rev1 with extensions UIDPLUS, MOVE, IDLE, APPENDLIMIT, and NAMESPACE.</span></p></li><li><p><span>Modern authentication with OAuth2 support for Microsoft Office 365/Exchange online accounts, and optionally for Google Mail after setting up a custom app.</span></p></li><li><p><span>Security for receiving emails by restricting reception to the local PC or a definable IP address range.</span></p></li><li><p><span>Security for sending emails by restricting transmission to the local PC or a definable IP address range.</span></p></li><li><p><span>Logging functionality to document server access.</span></p></li><li><p><span>Viewing existing server connections.</span></p></li><li><p><span>Viewing emails in the outgoing queue with options to check info on delivery issues or delete emails from the outgoing queue.</span></p></li><li><p><span>SMS notifications for new email arrivals (requires registration with <a href="https://www.smsout.de/" target="_blank">SMSout.de</a> service, Germany, Austria and Switzerland only).</span></p></li><li><p><span>Local mailboxes can be designated as e-invoice mailboxes. Incoming emails are checked for attachments in XML format (ZUGFeRD DIN EN16931 or XRechnung) or PDF format (PDF/A with attachments in XML format). Detected e-invoices can be forwarded to another email address or retained in the mailbox.</span></p></li></ul><div></div><p><span><strong>System Requirements</strong></span></p><ul><li><p><span>Operating system: Windows 7 or newer versions, and Windows Server 2008 or newer versions.</span></p></li><li><p><span>At least 100 MB of hard drive space; additional space may be needed for email storage.</span></p></li><li><p><span>Screen resolution of at least 256 colors (recommended: 16 million colors) at a minimum of 800x600.</span></p></li><li><p><span>POP3 and/or IMAP4-capable email program (e.g., Microsoft Outlook, Windows Live Mail, Thunderbird, eM Client, The Bat!).</span></p></li><li><p><span>For receiving external emails or sending emails to external addresses: an email provider with at least one POP3/IMAP mailbox and/or SMTP server for email transmission.</span></p></li><li><p><span>For accessing MySQL databases: Microsoft Visual C++ 2013 runtime. If necessary DLLs are not available on the system, a notification will appear during database access.</span></p></li></ul> 
]]></description>
     <pubDate>Fri, 1 Aug 2025 12:15:10 +0100</pubDate>
    </item>
    <item>
     <title>LANMailServer usage</title>
     <link>https://int.lanmailserver.de/</link>
     <author>nfo@lanmailserver.de</author>
     <guid isPermaLink="false">email-server-usage</guid>
     <keywords>Email Server, POP3, IMAP4, Local Network, Autoresponder, SMTP Relay Server, Email Distribution Groups, Alternative to AVM KEN!, IMAP,Windows,OAuth2</keywords>
     <contextid>40</contextid>
     <description><![CDATA[<style>body {font-family: Calibri, Verdana, Arial;font-size: 12pt; color: #000000;} li > p, li > div {display: inline} </style><p><span>LANMailServer consists of a Windows service, the server application, and the LANMailServer Console program for administering server application. You can log off from the computer without any issues&#8212;LANMailServer will continue to run in the background, handling all incoming and outgoing emails. It is also not necessary to have the LANMailServer Console software running permanently.</span></p><p><span><strong>LANMailServer is ready to use immediately after the first launch; you only need to:</strong></span></p><ul><li><p><span><a href="progcfg.html">Complete the program configuration</a>,</span></p></li><li><p><span><a href="localmailaccountscfg.html">Set up local email accounts</a>,</span></p></li><li><p><span><a href="groupscfg.html">Set up any necessary groups</a>, and</span></p></li><li><p><span><a href="emailprogram.html">Configure a POP3-/IMAP4-capable email program</a>.</span></p></li></ul><p><span><strong>See also:</strong>&nbsp; <a href="progcfg.html">Settings of LANMailServer</a></span></p><p align="left">&nbsp;</p> 
]]></description>
     <pubDate>Mon, 9 Jun 2025 14:21:45 +0100</pubDate>
    </item>
    <item>
     <title>EMail Server LANMailServer program settings</title>
     <link>https://int.lanmailserver.de/</link>
     <author>nfo@lanmailserver.de</author>
     <guid isPermaLink="false">progcfg</guid>
     <keywords>Sqlite,MySQL,crt, certificate,s/mime,domainkey,Email Server, POP3, IMAP4, Local Network, Autoresponder, SMTP Relay Server, Email Distribution Groups,  IMAP</keywords>
     <contextid>95</contextid>
     <description><![CDATA[<p>&nbsp;</p><p><b>General</b></p><table cellspacing="0" cols="2" rules="all" width="100%" border="1" frame="box"><tr valign="top"><td width="28%">Password to protect the LANMailServer Console</td><td width="72%">Enter a password; this must be entered each time the LANMailServer Console starts and when the settings are opened. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Folder for data storage</td><td width="72%">The folder is for viewing only; it cannot be changed. <p>LANMailServer needs to store files, such as emails sent to the LANMailServer SMTP server or all saved emails of configured users.</p><p>The System user and Administrators must have full access to the folder; users must be able to read/execute, write, modify, and view folder contents. Permissions for the user can be removed if you always run the LANMailServer Console as an administrator.</p><p><u>Changing the data folder (for experts only!)</u></p><p><b>The data folder should never be changed; if you do so, it is at your own risk!</b></p><p>NEVER place the data folder on a network drive, removable media, cloud drive, or NAS storage. This can lead to database corruption in the event of connection issues. The database CANNOT be repaired.</p><p>Create a new data folder on a local hard drive. The System user and Administrators must have full access to the folder; users must be able to read/execute, write, modify, and view folder contents. Permissions for the user can be removed if you always run the LANMailServer Console as an administrator.</p><p>Stop the LANMailServer service through Control Panel - Administration - Services.</p><p>Copy all files from the current data folder, typically C:\ProgramData\LANMailServer, to the new data folder.</p><p>&nbsp;</p><p>Start regedit, navigate to</p><p>Computer\HKEY_LOCAL_MACHINE\ SOFTWARE\LANMailServer</p><p>Change the string DataPath to the name of the new folder.</p><p>For 64-bit systems, navigate to</p><p>Computer\HKEY_LOCAL_MACHINE\ SOFTWARE\WOW6432Node\LANMailServer</p><p>Also change the string DataPath to the name of the new folder here.</p><p>&nbsp;</p><p>Restart the service.</p><p>&nbsp;</p><p>Errors can be found in the Windows Event Log or in the file LMLog.txt in the new data folder.</p><p>&nbsp;</p><p>&nbsp;</p></td></tr><tr valign="top"><td width="28%"><a name="sqlitemysql"></a>Storing email data </td><td width="72%"><u>Locally in the data folder, using an SQLite database</u><p>Stores the SQLite database with email data in the data folder; this is the default setting. <br>The SQLite database stores the essential data of an email and emails up to 100KB. Larger emails are compressed in the data folder. </p><p>For many local email accounts and/or a high volume of email access and email sending, using MySQL is recommended, as SQLite usage can lead to significant delays or error messages.</p><p><u>Using a MySQL database</u></p><p>Stores data in a MySQL database; MySQL 8.0 or MariaDB 10.2 or later with utf8mb4_general_ci encoding is required. Older MySQL/MariaDB versions are not supported as SQL Window functions are used by LANMailServer. <br>The MySQL database should be installed on the same computer as LANMailServer to avoid delays (network latency). Only the essential data of an email is stored in the MySQL database; the email itself is compressed in the data folder. </p><p>&nbsp;</p><p>Note: <br>The data in the SQLite and MySQL databases is not retained when switching storage methods. These cannot be exported or imported either, as the table structure and stored data differ. </p><p><a href="install_mysqlserver.html">Install MySQL server yourself</a></p><p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Maximum size of the log file</td><td width="72%">Specify the maximum size of the log file before LANMailServer deletes old entries. The default size is 1 MB. <p>&nbsp;</p></td></tr></table><br><p><b>Local Email Accounts</b></p><table cellspacing="0" cols="2" rules="all" width="100%" border="1" frame="box"><tr valign="top"><td width="28%">Local domain name, which should also be a valid internet domain</td><td width="72%">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. <p>e.g., mydomain.de</p><p>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.</p><p>&nbsp;</p><p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Optionally, other local domain names</td><td width="72%">Additional domain names can be specified, which may be useful if multiple email addresses with different domains are used. <p>e.g., <br>mydomain.com <br>mydomain.eu <br>mydomain.co.uk </p><p>&nbsp;</p><p>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.</p><p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Checking external email accounts</td><td width="72%">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. <p>Checking external email accounts is only performed if LANMailServer has detected an internet connection. The internet connection type must be set to &quot;Connection via LAN/permanent line/DSL via router.&quot;</p><p><b>See also</b></p><p><a href="localmailaccountscfg.html">Configure local email accounts</a></p><p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Delete copies of emails kept in external mailboxes after</td><td width="72%">Enable this setting and specify the number of days after which emails in external mailboxes are automatically deleted. <p>Note: Emails in external mailboxes are only deleted if this email account is regularly accessed.</p><p>&nbsp;</p></td></tr></table><p><br></p><p><b>Internet Connection</b></p><table cellspacing="0" cols="2" rules="all" width="100%" border="1" frame="box"><tr valign="top"><td width="28%">Type of Internet Connection</td><td width="72%"><u>Connection via LAN/leased line/DSL through a router</u><p>Use this setting if you have a permanent internet connection.</p><p><u>Offline mode, do not establish an internet connection</u></p><p>Never establishes an internet connection. All emails in the outgoing queue will never be sent.</p><p>&nbsp;</p><p><b>Important Note</b></p><p>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.</p><p>&nbsp;</p></td></tr><tr><td width="28%"><font color="#000000" size="3" face="Calibri">Proxy server</font></td><td width="72%"><font color="#000000" size="3" face="Calibri">Please provide the proxy server details. These settings are currently only used for HTTP transmissions via Microsoft 365. For HTTP transmissions via webspace with a PHP script or via Amazon SES, the system settings from Windows system&nbsp;are applied.</font></td></tr></table><p>&nbsp;</p><p><b>POP3 Server</b></p><table cellspacing="0" cols="2" rules="all" width="100%" border="1" frame="box"><tr valign="top"><td width="28%">Timeout</td><td width="72%">Set the time how long LANMailServer should wait for a response from the email program. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Port (Default 110)</td><td width="72%">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. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">SSL Port (Default 995)</td><td width="72%">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. <p>Specify port -1 to not run a POP3 server secured via SSL.</p><p>See also: <a href="#certinstall">Notes on SSL access</a></p><p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Access Restriction</td><td width="72%">This setting is important to protect the LANMailServer POP3 server from unauthorized access. <p>Possible settings:</p><table cellspacing="0" cols="2" rules="all" width="100%" border="0" frame="box"><tr><td width="50%">Anyone can receive emails</td><td width="50%">This setting allows any user within the local network or from the internet to use the LANMailServer POP3 server. <p><b>This setting is not recommended!</b></p><p>&nbsp;</p></td></tr><tr><td width="50%">Emails can only be received on this PC</td><td width="50%">This is the default setting. Emails can only be received on the local PC. <p>&nbsp;</p></td></tr><tr><td width="50%">Anyone can receive emails if the IP addresses match this pattern</td><td width="50%">Specify one or more IP addresses (IPv4 and IPv6) separated by semicolons that can retrieve emails via the POP3 server. Wildcard characters * or ? can be used, e.g., 192.168.* allows any user to receive emails if the user's IP address starts with 192.168. <p>&nbsp;</p></td></tr></table><p>&nbsp;</p></td></tr></table><p>&nbsp;</p><p><b>IMAP4 Server</b></p><table cellspacing="0" cols="2" rules="all" width="100%" border="1" frame="box"><tr valign="top"><td width="28%">Timeout</td><td width="72%">Set the time how long LANMailServer should wait for a response from the email program. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Port (Default 143)</td><td width="72%">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. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">SSL Port (Default 993)</td><td width="72%">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. <p>Specify port -1 to not run an IMAP4 server secured via SSL.</p><p>See also: <a href="#certinstall">Notes on SSL access</a></p><p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">IMAP APPEND LIMIT&nbsp;for all mailboxes</td><td width="72%">Default: 100 MB <p>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.</p><p>When emails are sent via SMTP, the email program uses the IMAP APPEND command to store the sent email in the &quot;Sent Items&quot; folder. If the email exceeds the size limit, the email program may completely refuse to send the email.</p><p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Access Restriction</td><td width="72%">This setting is important to protect the LANMailServer IMAP4 server from unauthorized access. <p>Possible settings:</p><table cellspacing="0" cols="2" rules="all" width="100%" border="0" frame="box"><tr><td width="50%">Anyone can receive emails</td><td width="50%">This setting allows any user within the local network or from the internet to use the LANMailServer IMAP4 server. <p><b>This setting is not recommended!</b></p><p>&nbsp;</p></td></tr><tr><td width="50%">Emails can only be received on this PC</td><td width="50%">This is the default setting. Emails can only be received on the local PC. <p>&nbsp;</p></td></tr><tr><td width="50%">Anyone can receive emails if the IP addresses match this pattern</td><td width="50%">Specify one or more IP addresses (IPv4 and IPv6) separated by semicolons that can retrieve emails via the IMAP4 server. Wildcard characters * or ? can be used, e.g., 192.168.* allows any user to receive emails if the user's IP address starts with 192.168. <p>&nbsp;</p></td></tr></table><p>&nbsp;</p></td></tr></table><p>&nbsp;</p><p><b>SMTP Server</b></p><table cellspacing="0" cols="2" rules="all" width="100%" border="1" frame="box"><tr valign="top"><td width="28%">Timeout</td><td width="72%">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. <br>Increase the time if there are issues with email sending. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Port (Default 25)</td><td width="72%">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. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">SMTP Authentication Always Required <p>&nbsp;</p></td><td width="72%">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. <p>If authentication is not required (i.e., anyone can send emails), deactivate this option and choose the not-recommended option &quot;Open Relay.&quot;</p><p>Important</p><ul><li>Email sending without authentication poses a security risk, as any program, including viruses and worms, could send emails. </li><li>Email archiving is not performed when emails are sent without authentication, as the local email account is unknown in such cases. </li></ul><p>Choose the variant &quot;SMTP Auth. Always Necessary for Internet Sending, Not Necessary Locally&quot; 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).</p><p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Allow Encrypted Connections via StartTLS <p>&nbsp;</p></td><td width="72%">Enable this setting to allow an email program to establish an encrypted connection to the server via StartTLS. <p>See also: <a href="#certinstall">Notes on SSL Access</a></p><p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Sender Email Address Must Be a Local Email Account</td><td width="72%">Enable this option to ensure the SMTP server only accepts emails from senders for whom a <a href="localmailaccountscfg.html">local email account</a> is configured. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Always Send Emails for Existing Local Email Accounts to the Internet</td><td width="72%">Default: Disabled. <p>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.</p><p>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.</p><p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Access Restriction</td><td width="72%">This setting is important to protect the LANMailServer SMTP server from unauthorized access. <p>Possible settings:</p><table cellspacing="0" cols="2" rules="all" width="100%" border="1" frame="box"><tr><td width="50%">Anyone can send emails</td><td width="50%">This setting allows any user within the local network or from the internet to use the LANMailServer SMTP server. <p><b>This setting is not recommended as LANMailServer could be misused for sending spam emails!</b></p><p>&nbsp;</p></td></tr><tr><td width="50%">Emails can only be sent from this PC</td><td width="50%">This is the default setting. Emails can only be sent from the local PC. <p>&nbsp;</p></td></tr><tr><td width="50%">Anyone can send emails if the IP address(es) match this pattern</td><td width="50%">Specify one or more IP addresses (IPv4 and IPv6) separated by semicolons that can send emails via the SMTP server. Wildcard characters * or ? can be used, e.g., 192.168.* allows any user to send emails if the user's IP address starts with 192.168. <p>&nbsp;</p></td></tr></table><p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">&nbsp;</td><td width="72%">&nbsp;&nbsp;</td></tr><tr valign="top"><td width="28%"><u>Email Sending</u></td><td width="72%">&nbsp;</td></tr><tr valign="top"><td width="100%" colspan="2">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. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Direct Sending: LANMailServer Assumes the Functions of an SMTP Server</td><td width="72%">Use this setting to allow LANMailServer itself to assume the functions of an SMTP server. <p>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 &quot;Server Requires Authentication.&quot;</p><p><b>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.</b></p><p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Use This SMTP Server</td><td width="72%">Enter the SMTP server of an email provider. Also required are the username and password for email sending (SMTP authentication) of the email provider. <p><a href="oauth2_auth_smtp_pop3_imap4.html">Use &quot;Modern Authentication&quot; OAuth2 instead of BASIC/Standard Authentication for mailbox access or email sending</a></p><p><br><b>LANMailServer</b><b>only supports email providers with SMTP authentication or OAuth2 for security reasons.</b></p><p><u>Optional Specification: &quot;Optional, Always Overwrite Sender Email Address with This Email Address&quot;</u></p><p>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. <br><br>Placeholder %localpart%: Use the placeholder %localpart% to overwrite the local username of the LANMailServer user for the local part of the email address (before the @), e.g., max@mustermann.de as the sender email address should be overwritten with %localhost%@musterfrau.de, so the sender email address of the outgoing email will be max@musterfrau.de. <br><br></p><p><b>Note:</b> If a separate SMTP server is defined in the user's <a href="localmailaccountcfg.html">local email account</a>, this SMTP server will always be used for sending emails to the internet. </p><p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Failed Deliveries</td><td width="72%">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 &quot;Undeliverable.&quot; If the sender no longer exists, the email will be forwarded to the Postmaster. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Maximum Number of Sending Threads</td><td width="72%">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. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">SMTP Helo Name</td><td width="72%">An optional valid domain can be entered here in case the external SMTP server refuses to accept emails due to an invalid Helo name. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%"><a name="smime"></a>Add a Digital Signature (S/MIME) to Emails <br></td><td width="72%">Enable this setting to add a digital signature to <b>all</b> outgoing emails. Click the &quot;Digital Signature&quot; link to change the S/MIME settings: <br><table cellspacing="0" cols="2" rules="all" width="100%" border="1" frame="box"><tr><td width="28%">Send Signed Messages as Plaintext Emails</td><td width="72%">Enable this setting to send the emails as plaintext emails, allowing them to be displayed in all email programs even without S/MIME support. <p>&nbsp;</p></td></tr><tr><td width="28%">Use Installed S/MIME Certificate from Windows Based on the Sender's Email Address</td><td width="72%">This is the recommended setting. <br><br>In Windows, under Control Panel - Internet Options, the digital certificate for the respective sender email address should be imported. It will then be available system-wide for all applications in Windows. <p>Note: If no certificate exists for the sender's email address, the email will not be sent.</p><p>&nbsp;</p></td></tr><tr><td width="28%">Use the Following Certificate</td><td width="72%">Alternatively, specify the folder and filename of the PFX file and the private password to ensure LANMailServer always uses this certificate. <p>Note: <br>When using this option, it is <b>not</b> checked whether the certificate matches the sender's email address. If the certificate does not match the sender's email address, the email will be considered &quot;forged&quot; by the recipient email program. </p><p>&nbsp;</p></td></tr></table><p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Add a DomainKey Signature to Emails <br></td><td width="72%">This option allows adding a DomainKey signature to each email. Click &quot;Add DomainKey Signature&quot; to enter the DomainKey selector and private key. This information is provided by your administrator or server provider. <p><a href="http://de.wikipedia.org/wiki/DomainKeys" target="_blank">DomainKeys on Wikipedia</a></p><p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Limit Emails to Be Sent to</td><td width="72%">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. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Limit Recipients per Email to</td><td width="72%">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. <p>e.g.,</p><p>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.</p><p>This setting can also be used to bypass the GoogleMail error &quot;451-4.3.0 Multiple destination domains per transaction is unsupported.&quot; Specify a limit of 1 in such cases. Emails with recipients in different destination domains will be individually sent to the GoogleMail server.</p><p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Limit Sending from Outgoing Queue to</td><td width="72%">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. <p>&nbsp;</p></td></tr><tr valign="top"><td width="100%" colspan="2"><u>Email Pickup</u></td></tr><tr valign="top"><td width="100%" colspan="2">&nbsp; <p>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.</p><p>Notes:</p><ul><li>The LANMailServer service must have read and write permissions for this folder. </li><li>Only .eml files in this folder will be searched, loaded, sent, and deleted; all other files remain untouched. </li><li>The .eml files must be properly formatted and encoded, e.g., they can be created using Thunderbird. </li><li>For security reasons, access to this folder should be restricted to prevent malicious software from placing .eml files there. </li></ul><p>&nbsp;</p></td></tr></table><p><br></p><p><b>Autoresponder</b></p><p>If the autoresponder has been enabled for local email accounts, the following options influence the autoresponder function.</p><table cellspacing="0" cols="2" rules="all" width="100%" border="0" frame="box"><tr valign="top"><td width="28%">Avoid Email Loops</td><td width="72%">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. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Insert X-Loop Header Field into All Emails Sent by Autoresponder</td><td width="72%">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. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Limit Number of Autoresponder Emails Sent to One Address Per Day</td><td width="72%">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. <p>&nbsp;</p><p>The email limit applies separately for each configured local user.</p><p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Autoresponder Template for Creating New Local Email Accounts</td><td width="72%">A default text can be stored, which will automatically be used when creating new email accounts. <p>&nbsp;</p></td></tr></table><p>&nbsp;</p><p><b>SMS Sending</b> (only for Germany, Austria, and Switzerland) </p><p>To send SMS messages for incoming emails, you need to register with the SMS service <a href="http://www.smsout.de" target="_blank">SMSout.de</a>. The SMS is sent using the HTTP protocol, and encrypted transmission (HTTPS) can also be used. <br>For each local email account, you can individually enable SMS sending and specify a mobile number. </p><table cellspacing="0" cols="2" rules="all" width="100%" border="1" frame="box"><tr valign="top"><td width="28%">SMSout.de Username</td><td width="72%">Enter your SMSout.de username. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">SMSout.de Password:</td><td width="72%">Enter your SMSout.de password. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Use HTTPS Connection <p>&nbsp;</p></td><td width="72%">Enable this setting to send SMS messages via an encrypted HTTP connection. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">SMS Sending Mode</td><td width="72%">Choose the &quot;Without own sender&quot; variant to send SMS messages with any phone number (the cheapest option). With the &quot;With own sender&quot; variant, your mobile number or the sender text stored in SMSout.de will be used. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Contents of the Email to be Sent as SMS</td><td width="72%">Each SMS may contain a maximum of 160 characters; texts with more than 160 characters will be shortened to 160 characters. <p>Sender and Subject of the Email <br>LANMailServer composes a character string from the sender (name and email address) and the subject of the email and sends this via SMS. </p><p>Sender, Subject, and Start of the Email <br>LANMailServer composes a character string from the sender (name and email address), the subject of the email, and the text of the email and sends this via SMS. </p><p>&nbsp;</p></td></tr></table><p>&nbsp;</p><p><b>Appearance</b></p><p>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.</p><p>&nbsp;</p><p><b>Advanced</b></p><p><u>Internal Settings</u></p><table cellspacing="0" cols="2" rules="all" width="100%" border="1" frame="box"><tr valign="top"><td width="28%">Create Log File for Error Detection</td><td width="72%">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. <p>Note: This setting should be disabled if not used, as the log files will eventually consume the entire hard drive storage space.</p><p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Log POP3/IMAP4 Commands Without Results for Error Detection</td><td width="72%">If errors occur during POP3/IMAP4 access by an email program, this option can be enabled to facilitate error tracking. Unlike the &quot;Create Log File for Error Detection&quot; option, only commands are recorded in the log, without potentially large data results. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Log SQL Statements Without Results for Error Detection</td><td width="72%">Records all SQL statements in the log, which can facilitate error tracking.</td></tr><tr valign="top"><td width="28%">Automatic Server Restart</td><td width="72%">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. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Permanently Delete Automatically Deleted Emails in Mailboxes</td><td width="72%">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. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Maximum Supported TLS Version for Accessing External POP3, IMAP4, and SMTP Servers</td><td width="72%">Select the highest supported TLS version. If an antivirus program reports the error &quot;Invalid Certificate&quot; 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. <p>&nbsp;</p></td></tr></table><p><u>SSL Certificate</u></p><table cellspacing="0" cols="2" rules="all" width="100%" border="1" frame="box"><tr valign="top"><td width="28%">Use Internal SSL Certificate for Server Name &quot;localhost&quot;</td><td width="72%">This is the default setting; the internal self-signed LANMailServer certificate for the server name &quot;localhost&quot; 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 &quot;Target principal name is incorrect.&quot; <p><a href="#certinstall">Notes on SSL Access</a></p><p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Use Custom SSL Certificate <br></td><td width="72%">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 &quot;Target principal name is incorrect.&quot; <p><a href="selfsignedcertificate.html">Guide: Create Custom Self-Signed Certificate with OpenSSL</a></p><p><a href="#certinstall">Notes on SSL Access</a></p><p>&nbsp;</p></td></tr></table><p>&nbsp;</p><p><u><a name="apihttpserver"></a>HTTP API/OAuth2 Server </u></p><p>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.</p><table cellspacing="0" cols="2" rules="all" width="100%" border="1" frame="box"><tr valign="top"><td width="28%">Enable HTTP API/OAuth2 Server</td><td width="72%">Activates the HTTP server. <p>JSON API Notes:</p><ul><li>Only HTTP POST calls with the header entry <font face="Courier New">APIkey: &lt;API Key&gt;</font> are accepted; all other calls are rejected with an error. </li><li>Calls must contain valid JSON code with UTF-8 encoding. Incorrectly encoded calls are rejected with a 406 error. </li><li>Examples can be found in the LANMailServer program folder: file api_sample.php as a PHP variant, APISample.dpr as a Delphi variant. </li></ul><p>OAuth2 Notes:</p><ul><li>All OAuth2 calls are interpreted based on the directory specification /oauth2/. </li><li>For each <a href="localmailaccountcfg.html">local user</a>, you can create OAuth2 clients and access areas. </li><li>The email program must support OAuth2 authentication to be fully configurable. </li></ul><p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">HTTP Port</td><td width="72%">Enter the HTTP server port; default is 6080. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">HTTPS Port</td><td width="72%">Enter the HTTPS server port; default is 60443. <p>Notes:</p><ul><li>The email server's SSL certificate is used as the SSL certificate. </li><li>If the HTTP server should not support HTTPS, specify port -1. </li></ul><p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">API Key</td><td width="72%">Displays the API key that must be transmitted in the header for each POST call: <font face="Courier New">APIkey: &lt;API Key&gt;</font><p>You can generate a new API key. After saving, you must update the API key in all custom scripts and programs.</p><p>&nbsp;</p></td></tr></table><p>&nbsp;</p><p>JSON API Commands</p><table cellspacing="0" cols="2" rules="all" width="100%" border="1" frame="box"><tr valign="top"><td height="12" width="28%"><b>Command</b></td><td height="12" width="72%"><b>Notes</b></td></tr><tr valign="top"><td height="16" width="28%">get_version</td><td height="16" width="72%">Returns the LANMailServer version and API version. <p>&nbsp;</p></td></tr><tr valign="top"><td height="16" width="28%">get_users</td><td height="16" width="72%">Returns all created users without groups as an array. Optionally, you can pass &quot;onlyActive&quot; = true or false to retrieve only active users or also inactive ones. <p>&nbsp;</p></td></tr><tr valign="top"><td height="16" width="28%">get_user</td><td height="16" width="72%">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. <p>&nbsp;</p></td></tr><tr valign="top"><td height="16" width="28%">update_user</td><td height="16" width="72%">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. <p>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.</p><p>All characters must be transmitted as UTF-8 encoded.</p><p>&nbsp;</p></td></tr><tr valign="top"><td height="16" width="28%">create_user</td><td height="16" width="72%">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. <p>&nbsp;</p></td></tr><tr valign="top"><td height="16" width="28%">remove_user</td><td height="16" width="72%">Deletes a user and <b>all</b> stored emails of the user <b>permanently</b>. You must also pass either id or username. id and username can be obtained via the get_users command. <p>&nbsp;</p></td></tr></table><p>&nbsp;</p><p><a href="oauth2_parameters.html">OAuth2 Endpoints and Parameters</a></p><p>&nbsp;</p><p><u>ClamAV</u></p><p>ClamWin and clamd must be installed on your computer.</p><p><a href="clamav-clamd.html">Using ClamAV/ClamWin/Clamd with LANMailServer</a></p><table cellspacing="0" cols="2" rules="all" width="100%" border="1" frame="box"><tr valign="top"><td width="28%">Server Name with clamd and Port</td><td width="72%">Enter the server name and port; this is usually localhost and 3310. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Maximum Email Size</td><td width="72%">Specify the maximum email size for scanning. The larger the email, the more time is needed for scanning. <p>Pay attention to the StreamMaxLength setting in the clamd.conf file; the size specified here must not exceed StreamMaxLength.</p><p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Scan All Incoming Emails from External Email Accounts</td><td width="72%">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. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Scan All Emails Sent via SMTP</td><td width="72%">Scans all emails sent via the LANMailServer SMTP server. If a virus is found, sending is denied. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Add Header Entry &quot;X-Virus-Scanned: ClamWin&quot;</td><td width="72%">Adds an email header entry <p>X-Virus-Scanned: ClamWin</p><p>to each scanned email. In your email program, e.g., Thunderbird, you can view the email headers to determine if the email was scanned.</p><p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Create Log Entry When Scanning Emails</td><td width="72%">Creates a log entry during email scanning. If a virus is found, a log entry is always created. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Handle Infected Emails from External Email Accounts...</td><td width="72%">Specify whether infected emails should be deleted or marked with a tag in the subject. <p>&nbsp;</p></td></tr></table><p>&nbsp;</p><p><u>Language</u></p><p>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.</p><p>&nbsp;</p><p><b><a name="certinstall"></a>Notes on SSL Access </b></p><p>For SSL access, LANMailServer includes its own self-signed certificate for the server name &quot;localhost.&quot; 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:</p><ol><li>Press Windows key and R to display the Windows Run dialog. </li><li>Enter certmgr.msc in the Run dialog and click OK. </li><li>In the certificate manager, select Trusted Root Certification Authorities and then Certificates on the left. </li><li>Under the Action menu - All Actions, select Import. </li><li>Select the certificate lanmailserver.crt in the LANMailServer program folder and let it be imported. </li></ol><p>&nbsp;</p><p>&nbsp;</p> 
]]></description>
     <pubDate>Thu, 31 Jul 2025 22:31:05 +0100</pubDate>
    </item>
    <item>
     <title>Setup local email accounts</title>
     <link>https://int.lanmailserver.de/</link>
     <author>nfo@lanmailserver.de</author>
     <guid isPermaLink="false">localmailaccountscfg</guid>
     <keywords>Setup local accounts,Email Server, POP3, IMAP4, Local Network, Autoresponder, SMTP Relay Server, Email Distribution Groups, Alternative to AVM KEN!, IMAP,Windows,OAuth2</keywords>
     <contextid>97</contextid>
     <description><![CDATA[<style>body {font-family: Calibri, Verdana, Arial;font-size: 12pt; color: #000000;} li > p, li > div {display: inline} </style><p><span><strong>Click on &quot;Local Email Accounts&quot; under Configuration to open the dialog for managing local email accounts.</strong></span></p><p><span>For each user, a local email account should be set up. It is also possible to retrieve emails from <a href="ExtAccountscfg.html">external mailboxes </a>for each email account and assign them directly to each user. This enables the sending/receiving of emails within the local network or sending emails to the internet. When setting up the email account, enter the username without spaces, special characters, or umlauts. After setting up the account, an email can be sent directly to <code>&lt;username&gt;@&lt;domainname&gt;</code> from an email program on the LANMailServer PC. In the recipient's email program, a corresponding email account must also be configured. Specify the name of the PC running LANMailServer as the incoming mail server (POP3 or IMAP4). Use the username and password you provided when creating the email account in LANMailServer as the account name (username) and password.</span></p><p><span>To create a new email account, click on &quot;Add.&quot; To modify an existing account, select the email account from the list and click on &quot;Edit.&quot; To delete an email account, select the account and click on &quot;Delete.&quot;</span></p><p><span><font color="#ff0000"><strong>In the Shareware version, a maximum of 2 local email accounts can be created.</strong></font></span></p><div></div><p><span><strong>See Also:</strong></span></p><ul><li><p><span><a href="localmailaccountcfg.html">Settings for local email accounts</a></span></p></li><li><p><span><a href="ExtAccountscfg.html">Retrieving emails from external mailboxes</a></span></p></li><li><p><span><a href="groupscfg.html">Setting up groups</a></span></p></li><li><p><span><a href="emailarchive.html">Using the email archive</a></span></p></li></ul> 
]]></description>
     <pubDate>Sat, 29 Mar 2025 18:26:25 +0100</pubDate>
    </item>
    <item>
     <title>Settings for local email accounts</title>
     <link>https://int.lanmailserver.de/</link>
     <author>nfo@lanmailserver.de</author>
     <guid isPermaLink="false">localmailaccountcfg</guid>
     <keywords>Email Server, S/MIME, DomainKey,OAuth2,POP3, IMAP4, Local Network, Autoresponder, SMTP Relay Server, Email Distribution Groups, Alternative to AVM KEN!, IMAP</keywords>
     <contextid>96</contextid>
     <description><![CDATA[<style>body {font-family: Calibri, Verdana, Arial;font-size: 12pt; color: #000000;} li > p, li > div {display: inline} </style><p>Click on &quot;Local Email Accounts&quot; in the Configuration menu to create, modify, or delete new local mailboxes.</p><p>To create a new email account, click &quot;Add.&quot; To modify an existing account, select the email account in the list and click &quot;Modify.&quot; To delete an email account, select the account and click &quot;Delete.&quot;</p><p>&nbsp;</p><p><b><font color="#ff0000">In the Shareware version, a maximum of 2 local email accounts can be created.</font></b></p><p>In custom applications/scripts, email accounts can be created or modified via the <a href="progcfg.htm#apihttpserver">JSON API</a>. </p><p>&nbsp;</p><p><u>General Tab</u></p><p>&nbsp;</p><style>img {max-width: 430px;height: auto;}</style><table cellspacing="0" cols="2" rules="all" width="100%" border="1" frame="box"><tr valign="top"><td width="28%">Account Name to Be Used as the Part Before &quot;@&quot; in the Local Email Address</td><td width="72%">Enter a unique name for the email account. The email account name must not contain spaces, special characters, or umlauts. <br>This email account name simultaneously forms the part before the &quot;@&quot; symbol for the local email address, e.g., meier. <br>This account name is also necessary for retrieving emails with an email program. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Password</td><td width="72%">Enter a password for the email account. This password must be communicated to the email account holder. It is also necessary for retrieving emails with an email program. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">The Email Account Holder Is Postmaster</td><td width="72%">This option should only be activated if the mailbox owner is to be the Postmaster. A Postmaster receives undeliverable emails from all email accounts. <br>Only one email account can be defined as Postmaster at a time. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Archive All Incoming/Outgoing Emails of This Email Account</td><td width="72%">Activate this option to add all emails received or sent through this email account to the <a href="emailarchive.html">Email Archive</a>. Emails in the archive can be searched. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Deny Sending Emails to the Internet</td><td width="72%">Once this setting is activated, sending emails to the internet is not allowed, and only emails to local LANMailServer email accounts can be sent. <p>If the autoresponder or forwarding is used, emails will also not be sent to the internet.</p><p>Note: The SMTP error <font face="Courier New">521 5.7.1 User &lt;email-address&gt; not local; no forwarding address</font> is returned if an attempt is made to send an email to the internet. </p><p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Save Emails Sent via SMTP in INBOX.SENT Folder (Not Recommended!)</td><td width="72%">Saves all emails sent via the LANMailServer SMTP server in the INBOX.SENT/Sent Items folder, similar to how Microsoft 365/Office 365 stores them. <p>Each email is stored on the server, delaying email acceptance and consuming a significant amount of storage space over time.</p><p><b>This option is not recommended.</b></p><p>If emails are sent only using email programs like Microsoft Outlook or Thunderbird with IMAP4 access, these email programs automatically save a copy in the Sent Items/INBOX.SENT, and no additional storage is required during SMTP access.</p><p>If you use programs such as <a href="https://www.supermailer.de/" target="_blank">SuperMailer</a>, <a href="https://www.birthdaymailer.de/" target="_blank">BirthdayMailer</a>, <a href="https://www.mailboxfetcher.de/" target="_blank">MailboxFetcher</a>, or <a href="https://www.followupmailer.de/" target="_blank">FollowUpMailer</a> for SMTP sending, activating this option allows permanent storage of each sent email. </p><p>&nbsp;</p></td></tr></table><table cellspacing="0" cols="2" rules="all" width="100%" border="1" frame="box"><tr valign="top"><td width="28%">This Email Account Should Be an E-Invoice Mailbox (EN16931/XRechnung Only)</td><td width="72%">Enable this option <b>only</b> if you want to receive e-invoices (EN16931/XRechnung). The attachments of incoming emails are examined, which can be very time-consuming if the emails contain large attachments. <p>Incoming emails are checked for attachments in the XML format ZUGFeRD DIN EN16931 or XRechnung, as well as PDF/A attachments with XML attachments in the ZUGFeRD DIN EN16931 or XRechnung format. LANMailServer does not validate the XML data but checks for specific details that should be present in every e-invoice or e-credit note.</p><p>If an email with an e-invoice is detected, it can be forwarded locally or to the internet. Alternatively, non-detected emails can be forwarded locally or to the internet.</p><p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Forward All Emails Received by This Account to This Email Address <p>&nbsp;</p><p>-- not available if it is an e-invoice mailbox --</p><p>&nbsp;</p></td><td width="72%">Specify a name for a local email account or an internet email address. If this field is filled in, emails intended for the local email account are automatically forwarded to the specified local email account or external internet email address. It is also possible to specify a group name; in this case, the email is forwarded to all email accounts in the group. <p>Activate the setting &quot;Leave a Copy of the Forwarded Email in This Local Email Account&quot; to additionally store the forwarded email in this mailbox. If this setting is deactivated, no copy will be left in this email account. Be mindful of storage space when using this function. If this local email account is never accessed and emails are not deleted, large amounts of data could accumulate.</p><p>&nbsp;</p><p><b>Activating/Deactivating Forwarding via Email</b></p><p>Each local user can activate or deactivate forwarding via email themselves. It is not possible to activate or deactivate forwarding through an external mailbox.</p><p><u>Deactivating Forwarding via Email</u></p><p>The local user must send an email with the subject <font face="Courier New">LMS Forwarding off</font> to their own local email address. Upon successful deactivation, a confirmation email will be sent to the local user. </p><p>Note: The term <font face="Courier New">LMS </font><b>must</b> be specified in uppercase letters. For the terms <font face="Courier New">Forwarding off </font><font face="Courier New">or </font><font face="Courier New">Forwarding off</font>, case sensitivity is ignored. The format of the email does not matter, and the email body is ignored. </p><p>&nbsp;</p><p><u>Activating Forwarding via Email</u></p><p>The local user must send an email with the subject <font face="Courier New">LMS Forwarding on &lt;email-address&gt;</font> to their own local email address. Upon successful activation, a confirmation email will be sent to the local user, which will, of course, be forwarded to the specified email address. A valid internal or external email address must be provided for <font face="Courier New">&lt;email-address&gt;</font>. </p><p>Note: The term <font face="Courier New">LMS </font><b>must</b> be specified in uppercase letters. For the terms <font face="Courier New">Forwarding on</font>, case sensitivity is ignored. </p><p><u>Option: Leave a Copy of the Forwarded Email in This Local Email Account</u></p><p>If the checkbox is selected in the email account, a copy will be left in the account; otherwise, no copy will remain. <br>With <font face="Courier New">LMS Forwarding with local Copy on &lt;email-address&gt;</font>, this option can be activated via email. With <font face="Courier New">LMS Forwarding without local Copy on &lt;email-address&gt;,</font> this option can be deactivated via email. </p><p>&nbsp;</p><p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Send SMS on Receiving an Email to: <p>&nbsp;</p><p>-- not available if it is an e-invoice mailbox --</p><p>&nbsp;</p><p>&nbsp;</p></td><td width="72%">Activate this setting and enter a valid mobile number. <p>Note: <br>For SMS sending, you must correctly enter the access data for the <a href="http://www.smsout.de/" target="_blank">SMSout.de</a> service in the LANMailServer configuration. </p><p>&nbsp;</p></td></tr></table><br><p><u>Autoresponder Tab</u></p><p>Using the autoresponder, you can automatically send a reply email to the sender of an email. As soon as LANMailServer receives an email in the local email account, including from external email accounts, LANMailServer automatically sends an email with the specified text.</p><table cellspacing="0" cols="2" rules="all" width="100%" border="1" frame="box"><tr valign="top"><td width="28%">Activate Autoresponder for This Email Account</td><td width="72%">Enable this setting to activate the autoresponder function. Afterward, please specify the text for the automatic reply email. <p><b>Activating the Autoresponder via Email (not available in the Shareware version)</b></p><p>Each local user can activate or deactivate the autoresponder via email and also define the email subject and content of the autoresponder text. It is not possible to activate or deactivate the autoresponder through an external mailbox. The autoresponder function can only be permanently activated, not for a specific time period.</p><p><u>Deactivate the Autoresponder via Email</u></p><p>The local user must send an email with the subject <font face="Courier New">LMS Autoresponder off</font> to their own local email address. Upon successful deactivation of the autoresponder, a confirmation email will be sent to the local user. </p><p>Note: The term <font face="Courier New">LMS </font><b>must</b> be specified in uppercase letters. For the term <font face="Courier New">Autoresponder off</font>, case sensitivity is ignored. The email format does not matter, and the email body is ignored. </p><p>&nbsp;</p><p><u>Activate the Autoresponder via Email</u></p><p>The local user must send a <b>plain text email</b> with the subject <font face="Courier New">LMS Autoresponder on</font> to their own local email address. After the term <font face="Courier New">LMS Autoresponder on</font>, the email subject for the autoresponder email can be specified. If no subject is provided, incoming emails will automatically be answered with &quot;Re: Subject of the incoming email.&quot; The email body can contain the text to be sent as the automatic reply to the incoming email. After activation of the autoresponder or in the event of an error, an email will be sent to the local user. </p><p>Note: The term <font face="Courier New">LMS </font><b>must</b> be specified in uppercase letters. For the term <font face="Courier New">Autoresponder on</font>, case sensitivity is ignored. </p><p>&nbsp;</p><p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Activate the Autoresponder Permanently or for a Specific Time Period</td><td width="72%">Select &quot;Permanently&quot; to activate the autoresponder indefinitely. Alternatively, choose the time period during which the autoresponder should automatically send reply emails. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Email Subject (Leave Blank to Automatically Use &quot;Re: Email Subject&quot;)</td><td width="72%">Leave this field blank so that LANMailServer automatically replies with the email subject &quot;Re: &lt;Subject of the Incoming Email&gt;.&quot; Enter text to use only this text as the email subject. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Text to Be Sent as a Reply to Each Email</td><td width="72%">Enter text to be sent as a reply email. You can use placeholders in the text, which can be inserted via the context menu (right mouse click). The following placeholders are available: <p>[SUBJECT] - Inserts the email subject at this point in the email text <br>[MAILDATE] - Inserts the email date at this point in the email text <br>[FROM] - Inserts the sender's email address at this point in the email text <br>[TO] - Inserts the recipient's email address at this point in the email text <br>[DATE_SHORT] - Inserts the current date (short format) at this point in the email text <br>[DATE_LONG] - Inserts the current date (long format) at this point in the email text <br>[TIME_SHORT] - Inserts the current time (short format) at this point in the email text <br>[TIME_LONG] - Inserts the current time (long format) at this point in the email text <br></p><p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Optional, Alternative Domain for Reply Email</td><td width="72%">Optionally, a domain other than the one configured can be specified for the reply email. The automatic reply will be sent with this domain. <p>Note: Some email servers do not allow sending with external domains.</p><p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Forward All Emails Received by This Account to This Email Address</td><td width="72%">Forwarding is only performed if the autoresponder is activated. If a time period is defined, forwarding will occur only during the specified period. <p>Specify one or more local email account names or email addresses, separated by semicolons.</p><p>Activate the setting &quot;Leave a Copy of the Forwarded Email in This Local Email Account&quot; to additionally store the forwarded email in this mailbox. If this setting is deactivated, no copy will be left in this email account.</p><p>&nbsp;</p></td></tr></table><p><br></p><h6>External Accounts Tab</h6><p>On this tab, you can specify external email accounts, i.e., email accounts hosted by an email provider. These email accounts are regularly checked by LANMailServer (see <a href="progcfg.html">Configuration Menu - Program Configuration under Local Email Accounts</a>) for new incoming emails. Emails are retrieved and then transferred to the local email mailbox so that they can be accessed and responded to like local emails. </p><p>&nbsp;</p><h6>Outgoing Mail Tab</h6><p>On this tab, choose whether the settings from the program preferences for sending emails to the internet should be used. A different SMTP server or a different username for SMTP authentication can be specified, or alternatively, emails can be stored in a local folder, uploaded via HTTP POST to a web server, or sent via a PHP script through a web server.</p><p><i>Alternative SMTP Server</i></p><table cellspacing="0" cols="2" rules="all" width="100%" border="1" frame="box"><tr valign="top"><td width="28%">SMTP Authentication Basic/Standard</td><td width="72%">&nbsp; <p><a href="oauth2_auth_smtp_pop3_imap4.html">Use &quot;Modern Authentication&quot; OAuth2 instead of BASIC/Standard Authentication for accessing mailboxes or sending emails</a></p><p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Optionally Overwrite Sender Email Address with This Email Address for All Emails</td><td width="72%">Enter a valid email address in the field; this email address will overwrite the sender email address of every email sent to the internet. It is also possible to use the placeholder %localpart%, as explained in the <a href="progcfg.html">LANMailServer settings</a>. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">S/MIME and DomainKey</td><td width="72%">Notes on S/MIME and DomainKey can be found in the <a href="progcfg.htm#smime">LANMailServer settings</a>. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Limit Email Size to</td><td width="72%">Using this option, the maximum size of an email to be sent for this user can be limited. If a limit for the SMTP server has already been set in the program settings, the size value specified here cannot exceed that value. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Limit Recipients per Email to</td><td width="72%">Limits the number of recipients per email in case the external SMTP server has a limit on the number of recipients. This will result in a single email being split into multiple emails for sending. <p>e.g.,</p><p>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.</p><p>This setting can also be used to bypass the GoogleMail error &quot;451-4.3.0 Multiple destination domains per transaction is unsupported.&quot; Specify a limitation of 1 in such cases. Emails with recipients from different destination domains will be individually sent to the GoogleMail server.</p><p>&nbsp;</p></td></tr></table><p>&nbsp;</p><p><i>Save in a Folder</i></p><p>Instead of sending emails via SMTP, emails can be stored in a local folder and used by custom software. Adequate storage space must be available; if saving fails, the email will be considered not sent, and further attempts to save will be made.</p><p>&nbsp;</p><p><i>Transmit via HTTP Post</i></p><p>Sends emails via HTTP Post to a custom script or software running on a web server. A variable name must be specified, and the custom script or software must evaluate this variable. The email is considered sent if HTTP error code 200 is returned. Other error codes result in a repeated upload via HTTP POST.</p><p>Note: To store data in a local folder, it is recommended to save directly to the folder, as this reduces unnecessary overhead.</p><p>Example PHP script for accepting the data and saving it in a directory:</p>&lt;?php <br><pre style="WORD-WRAP: break-word; MAX-WIDTH: 620px"> function SetHTTPResponseCode($httpStatusCode, $httpStatusMsg){
   if($httpStatusCode &gt; 0){
       $phpSapiName    = substr(php_sapi_name(), 0, 3);
       if ($phpSapiName == 'cgi' || $phpSapiName == 'fpm') {
          @header('Status: '.$httpStatusCode.' '.$httpStatusMsg);
       } else {
          $protocol = isset($_SERVER['SERVER_PROTOCOL']) ? 
                            $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0';
          @header($protocol.' '.$httpStatusCode.' '.$httpStatusMsg);
       }
   }
 }

 $UploadVar = 'rfc822data';
 $DestPath = 'd:/xampp/'; // Save folder

 if(isset($_FILES[$UploadVar])){
   $target_file = $DestPath  .  basename($_FILES[$UploadVar]['name']);
   if(!move_uploaded_file(
      $_FILES[$UploadVar]['tmp_name'], $target_file)){
     SetHTTPResponseCode(500, 'Can't save to ' . $target_file);
   }else
     SetHTTPResponseCode(200, 'OK');
 }else{
  SetHTTPResponseCode(403, $UploadVar . ' not found.');
 }
    </pre>?&gt; <p>&nbsp;</p><p><i>Transmit via Webspace/Own Server</i></p><p>Emails are sent via HTTP POST to a provided PHP script, which then sends the email to the recipient. PHP5 or newer is required.</p><p><b>Note:</b> Due to the overhead of the HTTP protocol, this method should only be used if sending emails via SMTP in your own network is not possible. </p><p>Click on &quot;Perform Upload of PHP Scripts&quot; to transfer the scripts via FTP/SFTP to the webspace. The script call will be tested in the process; in the event of an error, the directory on the webspace or the HTTP(s) call must be corrected. Providing the script password is necessary to secure the script call; the password should be very long.</p><p><b>Note:</b> The scripts must not be deleted or moved on the webspace. You can always re-upload the scripts to the webspace by clicking &quot;Perform Upload of PHP Scripts&quot; and carrying out the upload. </p><p>The script on the webspace will send emails using PHP mail() (default). Alternatively, you can specify an SMTP server with SMTP authentication to send emails via this SMTP server.</p><p>When LANMailServer is to send an email, the email is transferred as a file via FTP/SFTP, after which this file is sent via a script call. Sending is therefore not possible through a simple HTTP(s) call of the script, even with knowledge of the script password.</p><p>&nbsp;</p><p><font size="3"><em>Via HTTP using Microsoft Cloud (Microsoft/Office 365)</em></font></p><p><span>Emails are sent to Microsoft servers via the HTTP protocol using the Microsoft Graph API. A sender email address must be provided prior to sending, followed by the retrieval of an access token. All sender addresses of outgoing emails will be replaced by this email address, as Microsoft only allows sending emails using authorized addresses.</span></p><p>Notes</p><ul><li><p><span>Before retrieving the token, the correct account type must be selected:</span></p><ul><li><p><span><strong>Work or School Account</strong> These accounts are managed by Microsoft for organizations using Azure Active Directory. They are used to sign in to Microsoft (Office) 365 and other enterprise services.</span></p></li><li><p><span><strong>Personal Account (formerly Windows Live ID)</strong> These accounts represent individual relationships with Microsoft and are used to access consumer devices and services. They are intended for personal use.</span></p></li></ul></li><li><p><span>Maximum email size is <strong>3.9 MB</strong>; Microsoft servers do not allow larger messages.</span></p></li><li><p><span>It is always recommended to send emails via SMTP server <code>smtp.office365.com</code> as HTTP-based sending is much slower.</span></p></li><li><p><span>If an HTTP proxy server is required, it must be specified in the application&#8217;s internet connection settings.</span></p></li><li><p><span>An access token must always be retrieved. The service cannot obtain tokens without user interaction but can renew existing ones.</span></p></li><li><p><span>If no emails are sent with the token for more than 6 months, the Microsoft server declares it invalid and a new token must be retrieved.</span></p></li></ul><div></div><h3>&nbsp;</h3><p><font size="3"><em>Via HTTP using Amazon SES</em></font></p><p><span>You must register with Amazon SES and independently configure all settings for your domain and sender email address. Afterwards, apply to switch to production mode with Amazon SES.</span></p><p><span>Amazon SES supports sending via SMTP server, which you should also use with LANMailServer. If sending via SMTP is not possible (e.g., blocked ports by a company firewall), you can use this method to send emails via HTTP API through LANMailServer. Keep in mind, HTTP sending is slower than SMTP.</span></p><p>Configuration</p><ul><li><p><span>Create an SMTP user in Amazon SES. You will receive a username and password.</span></p></li><li><p><span>Use the <strong>username as AWS Access Key</strong> and the <strong>password as AWS Secret Key</strong>.</span></p></li><li><p><span>Choose the correct AWS region that Amazon has approved for you.</span></p></li><li><p><span>Enter in LANMailServer the sender email address registered in Amazon SES. LANMailServer will replace the sender on all outgoing emails with this address. Sending from unauthorized or arbitrary email addresses is not allowed in Amazon SES.</span></p></li></ul><p>Limits</p><ul><li><p><span>Maximum email size: <strong>10 MB</strong></span></p></li><li><p><span>Maximum recipients (To/Cc/Bcc): <strong>50 per email</strong></span></p></li><li><p><span>Do not exceed Amazon SES&#8217;s per-minute sending limit. Avoid sending mass emails directly through SES. Instead, use newsletter software like <strong><a href="https://int.supermailer.de/" target="_blank">SuperMailer</a></strong>to comply with rate limits.</span></p></li></ul><div></div><p>&nbsp;</p><p><u>OAuth2 Clients Tab</u></p><p>You can create one or more OAuth2 clients for each local email account to enable OAuth2 authentication, provided the email program allows configurable endpoints. Client IDs and client secrets are automatically and uniquely generated and cannot be modified. Using the access scope, you can restrict later access via POP3, IMAP, or SMTP. With the &quot;Copy URLs&quot; function, you can directly copy the endpoints. In the <a href="progcfg.htm#apihttpserver">program settings</a>, the HTTP-API/OAuth2 server must be activated; otherwise, OAuth2 authentication will not be available. </p><p><a href="oauth2_parameters.html">OAuth2 Endpoints and Parameters</a></p><p>&nbsp;</p><p><b>See Also</b></p><p><a href="ExtAccountscfg.html">Query Emails in External Mailboxes</a></p><p><a href="progcfg.html">LANMailServer Settings</a></p><p>&nbsp;</p> 
]]></description>
     <pubDate>Fri, 1 Aug 2025 12:06:28 +0100</pubDate>
    </item>
    <item>
     <title>Retrieve emails from external mailboxes</title>
     <link>https://int.lanmailserver.de/</link>
     <author>nfo@lanmailserver.de</author>
     <guid isPermaLink="false">ExtAccountscfg</guid>
     <keywords>Email Server, external accounts,inboxes,POP3, IMAP4, Local Network, Autoresponder, SMTP Relay Server, Email Distribution Groups, Alternative to AVM KEN!, IMAP</keywords>
     <contextid>80</contextid>
     <description><![CDATA[<style>body {font-family: Calibri, Verdana, Arial;font-size: 12pt; color: #000000;} li > p, li > div {display: inline} </style><p align="left">&nbsp;</p><p>Specifying external mailboxes is only necessary if the email account owner also has external email accounts with an email provider on the internet. LANMailServer retrieves emails from the external mailboxes and assigns them to the local email account. This allows the user to receive, read, reply to, and send emails locally. LANMailServer supports email accounts that conform to the POP3/IMAP4 standard, additionally supporting Hotmail and AOL accounts.</p><p>If emails from external mailboxes are to be integrated into multiple local email accounts, the <a href="globalmailaccountscfg.html">global external mailboxes</a> should be used. </p><p>&nbsp;</p><p><b><font color="#ff0000">In the Shareware version, a maximum of 2 external email accounts can be created for each local email account.</font></b></p><p>&nbsp;</p><p><b>Import Button for Email Accounts</b></p><p>Using the import wizard, you can import email accounts from Microsoft Outlook or Microsoft Outlook Express on the local computer. AOL mailboxes cannot be imported.</p><p><b>Important</b></p><ul><li>LANMailServer cannot read passwords for email accounts; you must enter these passwords in the import wizard. </li><li>For importing from Outlook, LANMailServer must be used as the 32-bit version if Outlook is installed as a 32-bit version, otherwise use the 64-bit version. </li></ul><p>&nbsp;</p><p><b>Setting Up External Email Accounts</b></p><p>You can add, modify, and delete external email accounts. All accounts that are added and checked will be monitored by LANMailServer for incoming new emails. If emails are present, they will be retrieved, assigned to the local email account, and then deleted from the external email account.</p><p>&nbsp;</p><p><u>Add, Modify, and Delete Email Accounts</u></p><p>Click &quot;Add&quot; to include a new external email account in the software. To modify an email account, select the email account from the list and click &quot;Modify.&quot; To delete an account, select the account and then click &quot;Delete.&quot;</p><h5><font size="3">See Also</font></h5><p><a href="pop3konto.html">Add/Modify a POP3 Account</a><br><a href="imapkonto.html">Add/Modify an IMAP Account</a><br></p> 
]]></description>
     <pubDate>Sat, 29 Mar 2025 18:26:45 +0100</pubDate>
    </item>
    <item>
     <title>Set up groups: email groups in LANMailServer</title>
     <link>https://int.lanmailserver.de/</link>
     <author>nfo@lanmailserver.de</author>
     <guid isPermaLink="false">groupscfg</guid>
     <keywords>Email Server, mailgroups, maillists, groups,POP3, IMAP4, Local Network, Autoresponder, SMTP Relay Server, Email Distribution Groups</keywords>
     <contextid>70</contextid>
     <description><![CDATA[<p><span>Click on &quot;Groups&quot; under Configuration to open the dialog for editing local email groups.</span></p><p><span>By creating groups, you can consolidate multiple local email accounts. For example, you can create a marketing group and a sales group and assign local email accounts to them. If you want to send an email to a group, you don't need to specify each email recipient individually. Instead, you can, for example, send an email to sales@&lt;domainname&gt; to email all the accounts in the Sales group.</span></p><p><span><strong>Notes:</strong></span></p><ul><li><p><span>Only local email accounts can be assigned to a group.</span></p></li><li><p><span>Local email groups are only accessible within the network. Emails from the internet cannot be sent to local groups.</span></p></li></ul><p><span>To create a new group, click &quot;Add.&quot; To modify an existing group, select the group from the list and click &quot;Modify.&quot; To delete a group, select the group and then click &quot;Delete.&quot;</span></p><p>&nbsp;</p><div></div><p><span><strong>Settings for Local Email Groups</strong></span></p><p><span><strong>General Tab</strong></span></p><p><span>Enter a unique name for the group. The group name must not contain spaces, special characters, or umlauts. This name will also form the part before the &quot;@&quot; symbol when you later send an email to the group members.</span></p><p><span><strong>Group Members Tab</strong></span></p><p><span>On this tab, specify local email accounts to be part of the group. Click &quot;Add&quot; to see all local email accounts and select the accounts to include. To remove an account from the group, select it from the list and click &quot;Delete.&quot;</span></p><div></div><p><span><strong>See Also:</strong></span></p><p><span><a href="localmailaccountcfg.html">Set up local email accounts</a></span></p> 
]]></description>
     <pubDate>Sat, 29 Mar 2025 18:31:18 +0100</pubDate>
    </item>
    <item>
     <title>Adding/modifying an external POP3 account for retrieval with LANMailServer</title>
     <link>https://int.lanmailserver.de/</link>
     <author>nfo@lanmailserver.de</author>
     <guid isPermaLink="false">pop3konto</guid>
     <keywords>Email Server, external POP3 account, POP3, IMAP4, Local Network, Autoresponder, SMTP Relay Server</keywords>
     <contextid>84</contextid>
     <description><![CDATA[<p><u>Inbox Tab</u></p><table cellspacing="0" cols="2" rules="all" width="100%" border="1" frame="box"><tr valign="top"><td width="28%">Mailbox Type:</td><td width="72%">Select POP3 as the mailbox type. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Incoming Mail Server</td><td width="72%">Enter the POP3 server. This information is provided by your provider and may be a designation such as mail.provider.de or an IP address like 139.54.124.45. <br>A list of providers with the settings for POP3 and SMTP servers can be found below this explanation. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Port</td><td width="72%">In most cases, the port is 110. You should only change this setting if the provider explicitly informs you that a different port must be used. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Server Requires Secure Connection (SSL/StartTLS)</td><td width="72%">Enable this setting if the server supports or requires an SSL-encrypted connection. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Number of Connection Attempts</td><td width="72%">Set how often SuperSpamKiller Pro should attempt to connect to the incoming mail server. In most cases, specifying 1 attempt should be sufficient. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Account Name</td><td width="72%">Enter the account name/username for the account. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Password</td><td width="72%">Enter a valid password for the email account. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Use APOP if the Server Allows It</td><td width="72%">Some POP3 servers support APOP for authentication, which transmits login credentials encrypted. Enable this setting for SuperSpamKiller Pro to use APOP for authentication. If unsuccessful, the credentials will be transmitted unencrypted, which is standard for the POP3 protocol. <p><b>Note:</b> If the POP3 server does not support APOP, retrieving emails may take more time. </p></td></tr><tr><td width="28%">POP3 Authentication Basic/Standard</td><td width="72%">&nbsp; <p><a href="oauth2_auth_smtp_pop3_imap4.html">Use &quot;Modern Authentication&quot; OAuth2 instead of BASIC/Standard Authentication for accessing mailboxes or sending emails</a></p><p>&nbsp;</p></td></tr><tr><td valign="top" width="28%">Leave Copies of Emails on the Server <p>&nbsp;</p></td><td width="72%">Enable this setting to keep emails permanently or for the specified number of days on the external server. <p>With more than approximately 15,000 emails, the retrieval process via POP3 will be significantly slowed down, and a large amount of memory will be required, which could cause the service to crash.</p><p>Use <a href="imapkonto.html">IMAP4</a> to keep emails on the server. This is the fastest and most memory-efficient method, and the number of emails in the external mailbox is not limited. </p><p>&nbsp;</p></td></tr></table><br><p>Click &quot;Test Settings&quot; to test the inbox settings.</p><p>&nbsp;</p><p><strong>See Also</strong></p><p><a href="ExtAccountscfg.html">Retrieve Emails from External Mailboxes</a></p><p><a href="globalmailaccountscfg.html">Settings for Global External Email Accounts</a></p> 
]]></description>
     <pubDate>Mon, 9 Jun 2025 12:28:17 +0100</pubDate>
    </item>
    <item>
     <title>Adding/modifying an external IMAP4 account for retrieval with LANMailServer</title>
     <link>https://int.lanmailserver.de/</link>
     <author>nfo@lanmailserver.de</author>
     <guid isPermaLink="false">imapkonto</guid>
     <keywords>Email Server, external IMAP4, POP3, IMAP4, Local Network, Autoresponder, SMTP Relay Server</keywords>
     <contextid>83</contextid>
     <description><![CDATA[<style>body {font-family: Calibri, Verdana, Arial;font-size: 12pt; color: #000000;} li > p, li > div {display: inline} </style><p><u>Inbox Tab</u></p><table cellspacing="0" cols="2" rules="all" width="100%" border="1" frame="box"><tr valign="top"><td width="28%">Mailbox Type:</td><td width="72%">Select IMAP as the mailbox type. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Incoming Mail Server</td><td width="72%">Enter the IMAP server. This information is provided by your provider and can be a designation such as mail.provider.de or an IP address like 139.54.124.45. <br></td></tr><tr valign="top"><td width="28%">Port</td><td width="72%">In most cases, the port is 143. You should only change this setting if the provider explicitly informs you that a different port must be used. <p>&nbsp;</p></td></tr><tr><td width="28%">Server Requires Secure Connection (SSL/StartTLS)</td><td width="72%">Enable this setting if the server supports or requires an SSL-encrypted connection. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Number of Connection Attempts</td><td width="72%">Set how often SuperSpamKiller Pro should attempt to connect to the incoming mail server. In most cases, specifying 1 attempt should be sufficient. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Account Name</td><td width="72%">Enter the account name/username for the account. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Password</td><td width="72%">Enter a valid password for the email account. <p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">IMAP Authentication Basic/Standard</td><td width="72%">&nbsp; <p><a href="oauth2_auth_smtp_pop3_imap4.html">Use &quot;Modern Authentication&quot; OAuth2 instead of BASIC/Standard Authentication for accessing mailboxes or sending emails</a></p><p>&nbsp;</p></td></tr></table><br><p>Click &quot;Test Settings&quot; to test the inbox settings.</p><p>&nbsp;</p><p><strong>See Also</strong></p><p><a href="ExtAccountscfg.html">Retrieve Emails from External Mailboxes</a></p><p><a href="globalmailaccountscfg.html">Settings for Global External Email Accounts</a></p> 
]]></description>
     <pubDate>Mon, 9 Jun 2025 12:28:06 +0100</pubDate>
    </item>
    <item>
     <title>Setup globale external email accounts</title>
     <link>https://int.lanmailserver.de/</link>
     <author>nfo@lanmailserver.de</author>
     <guid isPermaLink="false">globalmailaccountscfg</guid>
     <keywords>Email Server, POP3, IMAP4, Local Network, Autoresponder, SMTP Relay Server, Email Distribution Groups, global accounts, IMAP</keywords>
     <contextid>98</contextid>
     <description><![CDATA[<style>body {font-family: Calibri, Verdana, Arial;font-size: 12pt; color: #000000;} li > p, li > div {display: inline} </style><p>Global external mailboxes can be used to distribute emails from one or more external mailboxes to the local mailboxes in LANMailServer.</p><p>&nbsp;</p><p>Click on &quot;Global External Mailboxes...&quot; under Configuration to create, modify, or delete new external mailboxes.</p><p>To create a new email account, click &quot;Add.&quot; To modify an existing account, select the email account from the list and click &quot;Modify.&quot; To delete an email account, select the account and click &quot;Delete.&quot;</p><p>&nbsp;</p><p><b>Inbox Tab</b></p><p>Add the respective mailbox:</p><p><a href="pop3konto.html">Add a POP3 Account</a><br><a href="imapkonto.html">Add an IMAP Account</a><br></p><p><b>Email Distribution Tab</b></p><table cellspacing="0" cols="2" rules="all" width="100%" border="1" frame="box"><tr valign="top"><td width="28%">Distribute Emails to Local Mailboxes Based on the Local Part of the To Email Address</td><td width="72%">Choose this option to distribute emails to local mailboxes based on the local part of the &quot;To&quot; email address. <p>For example, if local mailboxes &quot;info&quot; and &quot;webmaster&quot; exist, emails from the external mailbox addressed to info@ will be assigned to the local mailbox &quot;info,&quot; and emails addressed to webmaster@ will be assigned to the local mailbox &quot;webmaster.&quot;</p><p>If no local mailbox exists for the local part of the &quot;To&quot; email address, the emails will be assigned to the selected local mailbox.</p><p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Always Distribute Emails to These Local Mailboxes</td><td width="72%">Choose this option to assign all emails from the external mailbox to the selected local mailboxes. <p>&nbsp;</p></td></tr></table><p>&nbsp;</p><p><b>Note:</b> If you delete local mailboxes that were specified on the Email Distribution tab, the retrieval of the external mailbox will no longer be performed. You must first revisit the settings of the external mailbox, check the configuration, and save it. </p><p>&nbsp;</p><p><strong>See also</strong></p><p><a href="progcfg.html">LANMailServer Settings</a></p><p>&nbsp;</p> 
]]></description>
     <pubDate>Sat, 29 Mar 2025 18:27:08 +0100</pubDate>
    </item>
    <item>
     <title>"Modern Authentication" OAuth2 for retrieving Emails</title>
     <link>https://int.lanmailserver.de/</link>
     <author>nfo@lanmailserver.de</author>
     <guid isPermaLink="false">oauth2_auth_smtp_pop3_imap4</guid>
     <keywords>Email Server, OAuth2, POP3, IMAP4, Local Network, Autoresponder, SMTP Relay Server</keywords>
     <contextid>22222</contextid>
     <description><![CDATA[<style>body {font-family: Calibri, Verdana, Arial;font-size: 12pt; color: #000000;} li > p, li > div {display: inline} </style><style>h5 {font-size: 14px}</style><p>OAuth2 is currently supported by Microsoft Office 365/Exchange Online and Gmail. Other providers/applications that also support the OAuth2 standard can be configured independently, e.g., <a href="https://int.lanmailserver.de/" target="_blank">LANMailServer Email Server</a>. </p><p>&nbsp;</p><p><strong>Difference Between BASIC/Standard Authentication and &quot;Modern Authentication&quot; OAuth2</strong></p><p>The POP3, IMAP, and SMTP protocols provide authentication using a username/email address and password. Over the years, various simple and complex encryption methods have been developed to ensure that login credentials cannot be intercepted during client-server communication. <br>With &quot;Modern Authentication&quot; using OAuth2, permission from the user must be obtained via a browser using an additional app provided by the server operator. Once permission is granted, the application receives an access token. Authentication then occurs using this token without transmitting the password. The access token expires at short intervals, requiring a new one to be requested repeatedly. This is more secure than using the same password continuously. <br>Disadvantage of &quot;Modern Authentication&quot;: A separate app must be created for each server operator, and proof of authenticity may be required, making this process time-consuming. </p><p>Information about OAuth: <a href="https://en.wikipedia.org/wiki/OAuth" target="_blank">Wikipedia OAuth</a></p><p>&nbsp;</p><p><strong>Built-In OAuth2 App</strong></p><p>An app is pre-integrated for accessing Microsoft accounts. You need to select the correct account type to gain access.</p><table width="80%" border="0"><tr><td valign="top" width="50%">Microsoft Azure AD v2 - Business or School Account</td><td width="50%">You may only use this account type if you have a business or school account with Microsoft. For private personal accounts (hotmail.com, live.com, outlook.com...), use the account type &quot;Microsoft Azure AD - Personal Account.&quot; <p>&nbsp;</p></td></tr><tr><td valign="top" width="50%">Microsoft Azure AD - Personal Account</td><td width="50%">Use this account type if you have a private, personal account (hotmail.com, live.com, outlook.com...) with Microsoft. <p>&nbsp;</p></td></tr></table><p>For Google accounts, you must create an app yourself due to the complex verification process: <a href="https://www.superscripte.de/oauth2/oauth2_app_google_cloud.html">Create OAuth2 App in Google Cloud</a>. </p><p>&nbsp;</p><p><b><a href="https://int.supermailer.de/" target="_blank">Newsletter SuperMailer</a>: Import contacts from Microsoft Cloud or send emails via Microsoft Cloud. </b></p><p>This functionality uses a separate app with its own access tokens, which must be authorized separately.</p><p>&nbsp;</p><p><strong>Using OAuth2</strong></p><p>In the respective dialog for sending or receiving emails, choose:</p><p>&lt;SMTP/POP3/IMAP&gt; AUTHentication Basic/Standard</p><p>OAuth2 &lt;account type&gt; or</p><p>OAuth2 &lt;custom_app&gt;.</p><p><img border="0" hspace="0" alt="OAuth2 instead pf BASIC/Standard auth" src="https://int.lanmailserver.de/email-server-help/lms_oauth2_eng.png"></p><p>You do not need to enter a password.</p><p>Then click on the &quot;Test&quot; button to authorize the app in the browser (authorization) and obtain an access token for the desktop program.</p><p>&nbsp;</p><p><strong>Using the Access Token</strong></p><p>The desktop program will use the access token instead of the password in the future and will also update it automatically every 60 minutes. This access token will be used for the SMTP, POP3, and IMAP protocols for the respective email address when OAuth2 is selected for authentication.</p><p>&nbsp;</p><p><strong>Data Storage</strong></p><p>The desktop programs SuperMailer, BirthdayMailer, FollowUpMailer, MailboxFetcher, and SuperSpamKiller Pro store the data encrypted in the Windows registry. All desktop programs access the same data, so it is not necessary to authorize access or create a new app in every desktop program.</p><p>The <a href="https://www.lanmailserver.de/" target="_blank">LANMailServer email server</a> uses its own app and stores the data in the local database, allowing easy data transfer when moving the server. </p><p>&nbsp;</p><p><strong>Adding Custom OAuth2 Apps or Deleting Access Tokens</strong></p><p>In the desktop program for configuring email sending or receiving, select &quot;Manage OAuth2 Apps and Tokens.&quot;</p><p><img border="0" hspace="0" alt="OAuth2 instead pf BASIC/Standard auth" src="https://int.lanmailserver.de/email-server-help/lms_oauth2_eng.png"></p><p><img border="0" hspace="0" alt="OAuth2 und Zugriffstokens verwalten" src="https://int.lanmailserver.de/email-server-help/lms_manage_oauth2appsEng.png"></p><p>&nbsp;</p><table width="80%" border="0"><tr><td valign="top" width="50%">Add</td><td width="50%">A custom app can be added. <p><a href="https://www.superscripte.de/oauth2/oauth2_app_microsoft_cloud.html">Create OAuth2 App in Microsoft Cloud for Office 365/Exchange Online</a><br><a href="https://www.superscripte.de/oauth2/oauth2_app_google_cloud.html">Create OAuth2 App in Google Cloud</a></p><p>&nbsp;</p></td></tr><tr><td valign="top" width="50%">Modify</td><td width="50%">Modify the app's settings. <p>&nbsp;</p></td></tr><tr><td valign="top" width="50%">Delete</td><td width="50%">Permanently deletes the app. <p>Note: <br>The desktop programs SuperMailer, BirthdayMailer, FollowUpMailer, and SuperSpamKiller Pro save the app name when OAuth2 is selected. If you delete an app in use, you must reconfigure the email sending or receiving settings. </p><p>&nbsp;</p><p>&nbsp;</p></td></tr><tr><td valign="top" width="50%">Sign Out Accounts</td><td width="50%">First select the app, then click &quot;Sign Out Accounts.&quot; You can now choose the email addresses for which to sign out from the cloud provider and delete the access tokens. <p>Note: <br>If the cloud provider returns an error during sign-out, this will be displayed, but the local access tokens will still be deleted. </p><p><a href="https://www.superscripte.de/oauth2/oauth2_BM_FUM_SM_SSKPro.html" target="_blank">OAuth2 App for Accessing Microsoft Accounts for SuperMailer, BirthdayMailer, FollowUpMailer, MailboxFetcher, and SuperSpamKiller Pro</a></p><p><a href="https://www.superscripte.de/oauth2/oauth2_LMS.html" target="_blank">OAuth2 App for Accessing Microsoft Accounts for LANMailServer</a></p><p>&nbsp;</p></td></tr><tr><td valign="top" width="50%">Revoke Access</td><td width="50%">This function is only available if supported by the cloud provider and the corresponding URL is stored in the app settings. <p>First select the app, then click &quot;Revoke Access.&quot; You can now choose the email addresses for which to sign out and remove them from the cloud provider account, and delete the access tokens. </p><p>Note: <br>If the cloud provider returns an error during sign-out, this will be displayed, but the local access tokens will still be deleted. </p><p><a href="https://www.superscripte.de/oauth2/oauth2_BM_FUM_SM_SSKPro.html" target="_blank">OAuth2 App for Accessing Microsoft Accounts for SuperMailer, BirthdayMailer, FollowUpMailer, and SuperSpamKiller Pro</a></p><p><a href="https://www.superscripte.de/oauth2/oauth2_LMS.html" target="_blank">OAuth2 App for Accessing Microsoft Accounts for LANMailServer</a></p><p>&nbsp;</p></td></tr></table><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p><strong>See Also</strong></p><p><a href="https://www.superscripte.de/oauth2/oauth2_BM_FUM_SM_SSKPro.html" target="_blank">OAuth2 App for Accessing Microsoft Accounts for SuperMailer, BirthdayMailer, FollowUpMailer, MailboxFetcher, and SuperSpamKiller Pro</a></p><p><a href="https://www.superscripte.de/oauth2/oauth2_LMS.html" target="_blank">OAuth2 App for Accessing Microsoft Accounts for LANMailServer</a></p><p><a href="https://www.superscripte.de/oauth2/oauth2_app_microsoft_cloud.html">Create OAuth2 App in Microsoft Cloud for Office 365/Exchange Online <br></a><a href="https://www.superscripte.de/oauth2/oauth2_app_google_cloud.html"><br>Create OAuth2 App in Google Cloud </a></p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p> 
]]></description>
     <pubDate>Mon, 9 Jun 2025 12:27:49 +0100</pubDate>
    </item>
    <item>
     <title>Email archive usage</title>
     <link>https://int.lanmailserver.de/</link>
     <author>nfo@lanmailserver.de</author>
     <guid isPermaLink="false">emailarchive</guid>
     <keywords>Email archive, Email Server, POP3, IMAP4, Local Network, Autoresponder, SMTP Relay Server, Email Distribution Groups, Alternative to AVM KEN!, IMAP</keywords>
     <contextid>59</contextid>
     <description><![CDATA[<style>body {font-family: Calibri, Verdana, Arial;font-size: 12pt; color: #000000;} li > p, li > div {display: inline} </style><p>In the email archive, all incoming and outgoing emails can be archived. LANMailServer stores the emails in a local database, which can be searched based on specific criteria. It is not possible to display all archived emails at once due to the potentially large volume of data.</p><p>To use the email archive, the checkbox &quot;Archive all incoming/outgoing emails for this email account&quot; must be selected for the respective <a href="localmailaccountscfg.html">local email account</a>. Emails are only archived under this condition. </p><p>&nbsp;</p><p><b>Emails in Email Archive</b></p><p>&nbsp;</p><p>Click into the search field and enter a search term to look for it in the sender, subject, or recipient name, then press the &lt;ENTER&gt; key. Alternatively, click on the small arrow of the search button and select &quot;Advanced Search,&quot; or use the &quot;Advanced Search&quot; button.</p><p>To change the sorting of columns or to add more columns, click &quot;Columns...&quot;.</p><p>To view an email, select an email from the search results and click &quot;View&quot; to display it in the internal viewer.</p><p>If you want to permanently delete one or more emails from the archive, select the email(s) and click &quot;Delete Email.&quot;</p><p>To save an email, select it and click &quot;Save.&quot;</p><p>&nbsp;</p><p>&nbsp;</p> 
]]></description>
     <pubDate>Sat, 29 Mar 2025 18:32:18 +0100</pubDate>
    </item>
    <item>
     <title>Perfom backup</title>
     <link>https://int.lanmailserver.de/</link>
     <author>nfo@lanmailserver.de</author>
     <guid isPermaLink="false">backup</guid>
     <keywords>Backup Email Server, POP3, IMAP4, Local Network, Autoresponder, SMTP Relay Server, Email Distribution Groups, Alternative to AVM KEN!, IMAP</keywords>
     <contextid>13</contextid>
     <description><![CDATA[<style>body {font-family: Calibri, Verdana, Arial;font-size: 12pt; color: #000000;} li > p, li > div {display: inline} </style><p>In the LANMailServer settings, you can find the data folder, which is usually located at c:\ProgramData\LANMailServer. All data in this data folder must be backed up. Before performing the backup, the LANMailServer service must be stopped to ensure the email database is fully written to the storage device.</p><p>&nbsp;</p><p><u>Restoring the Backup</u></p><p>All data must be restored to the data folder. Naturally, the LANMailServer service must be <b>stopped</b> beforehand. </p><p>&nbsp;</p><p>If the data is stored in a MySQL database, the MySQL database must also be <a href="install_mysqlserver.htm#mysqlbackuo">backed up/restored</a>. </p><p>&nbsp;</p><p>&nbsp;</p><p><u>Starting and Stopping the Service</u></p><p>&nbsp;</p><p>Through Control Panel - Administration - Services, you can stop and restart the LANMailServer service.</p><p>&nbsp;</p><p>Using the Command Prompt...</p><p>Open the Command Prompt with administrator rights and enter:</p><p><font face="Courier New">net stop LMService</font></p><p>To start the service:</p><p><font face="Courier New">net start LMService</font></p><p>&nbsp;</p><p>&nbsp;</p><p><b>See Also</b></p><p><a href="move.html">Move LANMailServer to another Computer</a></p><p>&nbsp;</p> 
]]></description>
     <pubDate>Sat, 29 Mar 2025 18:27:25 +0100</pubDate>
    </item>
    <item>
     <title>Move LANMailServer to another computer</title>
     <link>https://int.lanmailserver.de/</link>
     <author>nfo@lanmailserver.de</author>
     <guid isPermaLink="false">move</guid>
     <keywords>Move Email Server to other computer,Email Server, POP3, IMAP4, Local Network, SMTP Relay Server</keywords>
     <contextid>14</contextid>
     <description><![CDATA[<style>body {font-family: Calibri, Verdana, Arial;font-size: 12pt; color: #000000;} li > p, li > div {display: inline} </style><p>In the LANMailServer settings, you can find the data folder, which is usually located at c:\ProgramData\LANMailServer. All data in this folder must be transferred to the new computer. This data contains the entire configuration.</p><p>&nbsp;</p><p><u>Performing migration</u></p><ul><li>Log in as an administrator on both the old and the new computer. </li><li><a href="#servicestartstop">First, stop the LANMailServer Service</a></li><li>Copy all data from the data folder to the new computer, or transfer it via an external hard drive/NAS drive/cloud drive/network drive and then onto the new computer. </li><li>Uninstall LANMailServer on the old computer (Control Panel - Programs and Features - Uninstall LANMailServer). </li><li>Install LANMailServer on the new computer. </li></ul><p>After installation, LANMailServer will start and access the existing data. Start the LANMailServer Console and re-enter the license, as this is necessary to access all users.</p><p>&nbsp;</p><p>&nbsp;</p><p><u><a name="servicestartstop"></a>Starting and Stopping the Service </u></p><p>&nbsp;</p><p>Via Control Panel - Administration - Services, you can stop and restart the LANMailServer Service.</p><p>&nbsp;</p><p>Using the Command Prompt...</p><p>Open the Command Prompt with administrator rights and enter:</p><p><font face="Courier New">net stop LMService</font></p><p>To start the service:</p><p><font face="Courier New">net start LMService</font></p><p>&nbsp;</p><p><b>See Also</b></p><p><a href="backup.html">Perform a Backup</a></p><p>&nbsp;</p><p>&nbsp;</p> 
]]></description>
     <pubDate>Mon, 9 Jun 2025 12:27:31 +0100</pubDate>
    </item>
    <item>
     <title>Set up a POP3/IMAP4-compatible email program</title>
     <link>https://int.lanmailserver.de/</link>
     <author>nfo@lanmailserver.de</author>
     <guid isPermaLink="false">emailprogram</guid>
     <keywords>LANMailServer,E-Mail,Server, setup email program, port, imap4, pop3,Outlook,Thunderbird,Windows Live Mail</keywords>
     <contextid>60</contextid>
     <description><![CDATA[<style>body {font-family: Calibri, Verdana, Arial;font-size: 12pt; color: #000000;} li > p, li > div {display: inline} </style><p>To send and receive emails, any email program that supports the POP3 and/or IMAP4 standard for receiving emails and the SMTP standard with authentication (SMTP Auth) can be used.</p><p>&nbsp;</p><p><b>General Settings for any email program (Outlook, Thunderbird, eM Client...)</b></p><p><u>For Receiving Emails</u></p><p>Email Address: Email address of the local email account <br>Incoming Mail Server: localhost, if LANMailServer runs on your <strong>own computer</strong>; otherwise, <strong>name or</strong><strong>IP address of the</strong><strong>computer where LANMailServer is running</strong><br></p><p>For POP3 Port: 110 (unless this was changed in the program configuration)</p><p>For IMAP4 Port: 143 (unless this was changed in the program configuration) <br></p><p>&nbsp;</p><p><u>For Sending Emails Through Email Programs, Scripts, Print Servers...</u></p><p>Outgoing Mail Server: localhost, if LANMailServer runs on your <strong>own computer</strong>; otherwise, <strong>name or IP address of the computer where LANMailServer is running</strong></p><p>Port: 25 (unless this was changed in the program configuration)</p><p>Sending emails is only possible with SMTP authentication. If the email program supports the option &quot;Use the same credentials as for incoming mail,&quot; you can activate the corresponding option in the email program. If this function is not supported, you must enter the username and password for a local email account. <br>If you use an SMTP server from the email provider to send emails to the internet, you need to configure the SMTP server of the email provider and the username and password for SMTP authentication with the email provider in the LANMailServer settings. </p><p>&nbsp;</p><p><strong>Setup&nbsp;with Thunderbird</strong></p><p><img class="downsize-img" border="0" hspace="0" src="https://int.lanmailserver.de/email-server-help/tb_cfg1.png"></p><p>In Thunderbird settings click on &quot;New Account&quot;&nbsp; and add a new Mail Account.</p><p>&nbsp;</p><p><img class="downsize-img" border="0" hspace="0" src="https://int.lanmailserver.de/email-server-help/tb_cfg2.png"></p><p>Enter your full name, Email address and Password for accessing local LANMailServer email account.</p><p>Click on &quot;Configure manually&quot;, to enter Inbox/Outbox hostname.</p><p>&nbsp;</p><p><img class="downsize-img" border="0" hspace="0" src="https://int.lanmailserver.de/email-server-help/tb_cfg3.png"></p><p>Enter as hostname for incoming/outgoing server&nbsp;localhost, when LANMailServer is installed on same computer or name/IP address of computer with installed LANMailServer.</p><p>&nbsp;</p><p><img class="downsize-img" border="0" hspace="0" src="https://int.lanmailserver.de/email-server-help/tb_cfg4.png"></p><p>Click on &quot;Re-test&quot; to test your settings. When all settings are correct, click on &quot;Done&quot;.</p><p>Now you can use Thunderbird to retrieve emails/send emails&nbsp;from/to LANMailServer.</p><p>&nbsp;</p><p><b>See Also</b></p><p><a href="https://www.lanmailserver.de/emailserver-hilfe/emailprogram.html">LANMailServer with Outlook and Windows (live) Mail (german)</a></p><p><a href="progcfg.html">LANMailServer Settings</a></p><p><a href="localmailaccountcfg.html">Settings for Local Email Accounts</a></p><p><a href="groupscfg.html">Set up Groups</a></p><p><a href="probleme.html">Issues When Using LANMailServer</a></p><p>&nbsp;</p> 
]]></description>
     <pubDate>Wed, 9 Apr 2025 14:16:28 +0100</pubDate>
    </item>
    <item>
     <title>Issues when using LANMailServer</title>
     <link>https://int.lanmailserver.de/</link>
     <author>nfo@lanmailserver.de</author>
     <guid isPermaLink="false">probleme</guid>
     <keywords>LANMailServer,E-Mail,Server,email server,issues, errors,Email Server, POP3, IMAP4, Local Network, Autoresponder, SMTP Relay Server</keywords>
     <contextid>16</contextid>
     <description><![CDATA[<style>body {font-family: Calibri, Verdana, Arial;font-size: 12pt; color: #000000;} li > p, li > div {display: inline} </style><p><b>How Can I Get Help with LANMailServer?</b></p><p>Visit the <a href="https://board.superscripte.de/" target="_blank">Support Forum</a> to search for an answer to your question or ask your question directly in the forum. </p><p>&nbsp;</p><p><b>LANMailServer Console Cannot Connect to the Windows Service...</b></p><p>Ensure the Windows service &quot;LANMailServer Service&quot; is running on the same computer as LANMailServer Console. Also check the Windows Event Log, as Windows services cannot directly display error messages. You can view the Windows Event Log via Control Panel - Administration.</p><p>&nbsp;</p><p><b>I Keep Receiving a Socket Error in the Windows Event Log on Startup...</b></p><p>This error may have two causes:</p><ol><li>Check the port settings in the LANMailServer Console under Configuration - Settings - POP3/IMAP4 Server. If you are already using another POP3/IMAP4 server, set the LANMailServer POP3/IMAP4 server to a different port. Don't forget to update the port in your email program. </li><li>If you're using a firewall, check whether it allows internet access through LANMailServer (Ports 25, 53, 80, 110, 143). </li></ol><p>&nbsp;</p><p><b>Problems with Antivirus Software</b></p><p>Disable the antivirus software or outgoing email scanning before sending emails to avoid issues with email delivery. This problem typically occurs when sending a large number or large-sized emails.</p><p>&nbsp;</p><p><b>Checking Incoming Emails for Viruses</b></p><p>LANMailServer does not have interfaces for antivirus programs. If your antivirus program supports it, you can configure it to scan the &quot;ScanMail&quot; folder under the specified data folder (as set in the LANMailServer Console configuration). The antivirus program should delete infected emails from the folder, after which LANMailServer will ignore these emails.</p><p>&nbsp;</p><p><b>I Receive the &quot;Permission Denied&quot; Message or Another Error When Retrieving Emails in the Email Program</b></p><p>Check the settings for the email account in your email program. Make sure the username (account name) and password are correctly entered. Also verify the access restriction settings in the LANMailServer Console under Configuration - Settings - POP3/IMAP4 Server.</p><p>&nbsp;</p><p><b>Errors Occur When Sending Emails</b></p><ol><li>Check your firewall settings. </li><li>Verify the settings in the LANMailServer Console under Configuration - Settings - SMTP Server, including the username and password for email sending. </li><li>Ensure the data folder is correctly specified in the LANMailServer Console under Configuration - Settings - General, and that LANMailServer has read/write permissions for this folder. The folder is usually c:\programdata\lanmailserver, and the System and Administrator users must have full access. Users must be able to read, execute, write, modify, and view folder contents. </li></ol><p>&nbsp;</p><p><b>When Receiving Emails, the Message &quot;Forbidden: Your client is not allowed to access the POP3 server.&quot; or &quot;Forbidden: Your client is not allowed to access the IMAP4 server.&quot; Appears</b></p><p>Check the access restriction settings in the LANMailServer Console under Configuration - POP3/IMAP4 Server.</p><p>&nbsp;</p><p><b>When Sending Emails, the Message &quot;550 Forbidden: Your client is not allowed to access the SMTP server.&quot; Appears</b></p><p>Verify the access restriction settings in the LANMailServer Console under Configuration - SMTP Server.</p><p>&nbsp;</p><p><b>When Sending Emails, the Message &quot;Relaying Denied, Use SMTP Auth&quot; Appears</b></p><p>SMTP authentication is not enabled in your email program, or the username and password for SMTP authentication are incorrect.</p><p>&nbsp;</p><p><b>When Sending Emails, Error 354 Appears: &quot;Start Mail Input; End with <crlf>. <crlf>Exception: Attached File Not Found or Access Denied.&quot;</crlf></crlf></b></p><p>Check the internet connection to ensure it is not blocked by anonymization programs or firewalls.</p><p>&nbsp;</p><p><b>When Sending Emails, Error 421 Appears: &quot;&lt;domain&gt; Service Not Available, Closing Transmission Channel.&quot;</b></p><p>The SMTP server cannot resolve more domain names into IP addresses because the service responsible for this data resolution is not accepting additional requests. This may have two causes:</p><ul><li>A technical issue with the SMTP server; only the email provider can resolve this. </li><li>No internet connection exists, or a firewall is blocking access to the DNS service (Port 53). </li></ul><p>&nbsp;</p><p><b>When Sending Emails, Error 500 or 501 Appears: &quot;Syntax Error&quot;</b></p><ol><li>Check the spelling of your email address for the email account in your email program. </li><li>Verify your computer name; it must not contain spaces, special characters, or umlauts. <br>On Windows 7 and newer: To change the computer name, click System in the Control Panel. Go to the Computer Name tab and click Change. Other operating systems have similar steps. </li></ol><p>&nbsp;</p><p><b>When Sending Emails, Error 530 Appears: &quot;Authentication Required.&quot;</b></p><p>SMTP authentication is not enabled. Enable authentication for the SMTP server in your email program and enter a valid username and password. If you are using the SMTP server of your email provider, enter the username and password for the provider's SMTP server in your email program. You must also enter the same credentials in the LANMailServer Console under Configuration - Settings - SMTP Server.</p><p>&nbsp;</p><p><b>When Sending Emails, Error 550 Appears: &quot;Requested Action Not Taken: Mailbox Unavailable.&quot;</b></p><p>This error is returned by the SMTP server when the recipient's mailbox does not exist, indicating the email address is invalid.</p><p>&nbsp;</p><p><b>When Sending Emails, Error 552 Appears: &quot;Requested Mail Action Aborted: Exceeded Storage Allocation.&quot;</b></p><p>The SMTP server has insufficient space to temporarily store the email. LANMailServer will continue attempting to send the email until space becomes available. You can also inform your email provider to resolve the issue promptly.</p><p>&nbsp;</p><p><b><a href="https://www.supermailer.de/smtp_reply_codes.htm" target="_blank">Additional SMTP Error Codes</a></b></p> 
]]></description>
     <pubDate>Mon, 9 Jun 2025 12:27:20 +0100</pubDate>
    </item>
    <item>
     <title>LANMailServer internal OAuth2 endpoints and parameters</title>
     <link>https://int.lanmailserver.de/</link>
     <author>nfo@lanmailserver.de</author>
     <guid isPermaLink="false">oauth2_parameters</guid>
     <keywords>LANMailServer,OAuth2, email server, oauth2 endpoints,Email Server, POP3, IMAP4, Local Network, Autoresponder, SMTP Relay Server</keywords>
     <contextid>13</contextid>
     <description><![CDATA[<style>body {font-family: Calibri, Verdana, Arial;font-size: 12pt; color: #000000;} li > p, li > div {display: inline} </style><style>textarea {max-width: 620px; height: auto; font-family: 'Courier New', 'Courier'; font-size: 14px}</style><p>LANMailServer itself provides the capability for an email program or script to authenticate using OAuth2 to retrieve and/or send emails.</p><p>In the <a href="progcfg.htm#apihttpserver">program settings</a>, the HTTP-API/OAuth2 server must be enabled; otherwise, OAuth2 authentication will not be available. </p><p>The documentation assumes that the HTTP-API/OAuth2 server is running on HTTP Port 6080.</p><p>All HTTP-GET parameters must be URL-encoded.</p><p>If there is no access using the token for 6 months, it will be deleted, and a new browser authentication will be required.</p><p>&nbsp;</p><h4>Authorization endpoint, retrieve access code</h4><p>Example URL</p><p>The URL must be accessed in a browser, and the username and password must be entered correctly.</p><textarea style="with: 100%" rows="4" cols="157" readonly="readonly">http://localhost:6080/oauth2/auth?client_id=17-E1C099F6F2CB4044B5C24AFA2CBED1E7&amp;scope=IMAP.AccessAsUser.All%20POP.AccessAsUser.All%20SMTP.Send%20offline_access&amp;access_type=offline&amp;response_type=code&amp;state=state_parameter_passthrough_value&amp;redirect_uri=http://localhost/oauth2/code&amp;login_hint=lanmailserver </textarea><p>Example Response</p><p>The provided redirect_uri is returned with the parameters code= and, if specified, state=&lt;value&gt;.</p><p><textarea style="with: 100%" rows="4" cols="157" readonly="readonly">http://localhost/oauth2/code?state=state_parameter_passthrough_value&amp;code=&lt;CODE&gt;</textarea></p><p>If errors occur, they are displayed directly in the browser, e.g., parameter_error; client_id doesn't exist or is disabled.</p><p>&nbsp;</p><p>&nbsp;</p><table cellspacing="0" cols="2" rules="all" width="100%" border="1" frame="box"><tr valign="top"><td width="28%">URL</td><td width="72%">http://localhost:6080/oauth2/auth <p>Data must be transmitted via HTTP-GET.</p><p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Parameters</td><td width="72%">&nbsp;<table width="100%" border="0"><tr><td valign="top" width="25%">client_id</td><td width="75%">Mandatory field, information from the <a href="localmailaccountcfg.html">local email account</a> under OAuth2 Clients <p>&nbsp;</p></td></tr><tr><td valign="top" width="25%">scope</td><td width="75%">&nbsp; <p>Mandatory field, case sensitivity must be observed. Values must be separated by spaces.</p><p>&nbsp;</p><p>IMAP.AccessAsUser.All - Access to IMAP4 server allowed</p><p>POP.AccessAsUser.All - Access to POP3 server allowed</p><p>SMTP.Send - Access via SMTP allowed</p><p>offline_access - A refresh token is sent; this is standard.</p><p>&nbsp;</p></td></tr><tr><td valign="top" width="25%">access_type</td><td width="75%">Optional field <p>Value: online or offline</p><p>This corresponds to the scope offline_access</p><p>&nbsp;</p></td></tr><tr><td valign="top" width="25%">response_type</td><td width="75%">Mandatory field; must be set to code. <p>&nbsp;</p></td></tr><tr><td valign="top" width="25%">state</td><td width="75%">Optional; a custom parameter can be passed. This parameter can be used to increase security. <p>&nbsp;</p></td></tr><tr><td valign="top" width="25%">redirect_uri</td><td width="75%">Mandatory field; specify a custom redirect URL. The URL must start with http:// or https://, and your program/email program must evaluate this. A code is transmitted that can be exchanged for an access token. <p>&nbsp;</p></td></tr><tr><td valign="top" width="25%">login_hint</td><td width="75%">Optional; a username/email address can be passed. If a local account exists, this information will be prefilled in the browser login form. <p>&nbsp;</p></td></tr></table><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p></td></tr></table><p>&nbsp;</p><h4>AccessToken endpoint, exchange code for access token</h4><p>The exchange must take place within 30 seconds; otherwise, the code will expire.</p><p>Example URL</p><textarea style="with: 100%" rows="10" cols="157" readonly="readonly">POST /oauth2/token HTTP/1.1 Host: localhost:6080 Content-Type: application/x-www-form-urlencoded code=&lt;CODE&gt;&amp; client_id=your_client_id&amp; client_secret=your_client_secret&amp; redirect_uri=http%3A//localhost/oauth2/code&amp; grant_type=authorization_code </textarea><p>&nbsp;</p><p>Example Response (JSON)</p><p><textarea style="with: 100%" rows="8" cols="157" readonly="readonly">{ &quot;access_token&quot;: &quot;1/abcedefghij&quot;, &quot;expires_in&quot;: 3920, &quot;token_type&quot;: &quot;Bearer&quot;, &quot;scope&quot;: &quot;IMAP.AccessAsUser.All SMTP.Send&quot;, &quot;refresh_token&quot;: &quot;1/stuvwxyz&quot; } </textarea></p><p>If errors occur, the parameters error= and error_description= are returned via redirection.</p><p><textarea style="with: 100%" rows="4" cols="157" readonly="readonly">http://localhost/oauth2/code?error=&lt;errorcode&gt;&amp;error_description=&lt;errortext&gt;</textarea></p><p>&nbsp;</p><table cellspacing="0" cols="2" rules="all" width="100%" border="1" frame="box"><tr valign="top"><td width="28%">URL</td><td width="72%">http://localhost:6080/oauth2/token <p>Data must be transmitted via HTTP-POST.</p><p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Parameters</td><td width="72%">&nbsp;<table width="100%" border="0"><tr><td valign="top" width="25%">client_id</td><td width="75%">Mandatory field, information from the <a href="localmailaccountcfg.html">local email account</a> under OAuth2 Clients <p>&nbsp;</p></td></tr><tr><td valign="top" width="25%">client_secret</td><td width="75%">Mandatory field, information from the <a href="localmailaccountcfg.html">local email account</a> under OAuth2 Clients <p>&nbsp;</p></td></tr><tr><td valign="top" width="25%">code</td><td width="75%">Mandatory field, retrieved code. <p>&nbsp;</p></td></tr><tr><td valign="top" width="25%">redirect_uri</td><td width="75%">Mandatory field, specify a custom redirect URL. The URL must start with http:// or https://, and your program/email program must evaluate this.&nbsp; A code is transmitted, which can be exchanged for an access token. <p>&nbsp;</p></td></tr><tr><td valign="top" width="25%">grant_type</td><td width="75%">Mandatory field, authorization_code must be passed. <p>&nbsp;</p></td></tr></table><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p></td></tr></table><p>&nbsp;</p><h4>RefreshToken endpoint, updating&nbsp;access token</h4><p>Every 60 minutes the access token expires, and a new access token and refresh token must be retrieved using the refresh token.</p><p>Example URL</p><textarea style="with: 100%" rows="9" cols="157" readonly="readonly">POST /oauth2/token HTTP/1.1 Host: localhost:6080 Content-Type: application/x-www-form-urlencoded refresh_token=&lt;refresh_token&gt;&amp; client_id=your_client_id&amp; client_secret=your_client_secret&amp; grant_type=refresh_token </textarea><p>&nbsp;</p><p>Example Response (JSON)</p><p><textarea style="with: 100%" rows="8" cols="157" readonly="readonly">{ &quot;access_token&quot;: &quot;NEU_1/abcedefghij&quot;, &quot;expires_in&quot;: 3920, &quot;token_type&quot;: &quot;Bearer&quot;, &quot;scope&quot;: &quot;IMAP.AccessAsUser.All SMTP.Send&quot;, &quot;refresh_token&quot;: &quot;NEU_1/stuvwxyz&quot; } </textarea></p><p>If errors occur a JSON array with parameters error= and error_description= are returned.</p><p><textarea style="with: 100%" rows="5" cols="157" readonly="readonly">{ &quot;error&quot;: &quot;&lt;errorcode&gt;&quot;, &quot;error_description&quot;: &quot;&lt;errortext&gt;&quot; } </textarea></p><p>&nbsp;</p><table cellspacing="0" cols="2" rules="all" width="100%" border="1" frame="box"><tr valign="top"><td width="28%">URL</td><td width="72%">http://localhost:6080/oauth2/token <p>Data must be transmitted via HTTP-POST.</p><p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Parameters</td><td width="72%">&nbsp;<table width="100%" border="0"><tr><td valign="top" width="25%">client_id</td><td width="75%">Mandatory field, information from the <a href="localmailaccountcfg.html">local email account</a> under OAuth2 Clients <p>&nbsp;</p></td></tr><tr><td valign="top" width="25%">client_secret</td><td width="75%">Mandatory field, information from the <a href="localmailaccountcfg.html">local email account</a> under OAuth2 Clients <p>&nbsp;</p></td></tr><tr><td valign="top" width="25%">refresh_token</td><td width="75%">Mandatory field, submission of the refresh token. <p>&nbsp;</p></td></tr><tr><td valign="top" width="25%">grant_type</td><td width="75%">Mandatory field; refresh_token must be passed. <p>&nbsp;</p></td></tr></table><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p></td></tr></table><p>&nbsp;</p><p>&nbsp;</p><h4>Logout</h4><p>&nbsp;</p><p>Example URL</p><textarea style="with: 100%" rows="9" cols="157" readonly="readonly">POST /oauth2/logout HTTP/1.1 Host: localhost:6080 Content-Type: application/x-www-form-urlencoded token=&lt;access_token oder refresh_token&gt;</textarea><p>&nbsp;</p><p>Response</p><p>HTTP error 200 will be returned.</p><p>&nbsp;</p><p>If errors occur a JSON array with parameters error= and error_description= are returned.</p><p><textarea style="with: 100%" rows="5" cols="157" readonly="readonly">{ &quot;error&quot;: &quot;&lt;errorcode&gt;&quot;, &quot;error_description&quot;: &quot;&lt;errortext&gt;&quot; } </textarea></p><p>&nbsp;</p><table cellspacing="0" cols="2" rules="all" width="100%" border="1" frame="box"><tr valign="top"><td width="28%">URL</td><td width="72%">http://localhost:6080/oauth2/logout <p>Data must be transmitted via HTTP-POST.</p><p>&nbsp;</p></td></tr><tr valign="top"><td width="28%">Parameters</td><td width="72%">&nbsp;<table width="100%" border="0"><tr><td valign="top" width="25%">token</td><td width="75%">Mandatory field; submission of the refresh token or access token. <p>&nbsp;</p></td></tr></table><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p></td></tr></table><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p> 
]]></description>
     <pubDate>Mon, 9 Jun 2025 12:27:11 +0100</pubDate>
    </item>
    <item>
     <title>Create a self-signed certificate with OpenSSL</title>
     <link>https://int.lanmailserver.de/</link>
     <author>nfo@lanmailserver.de</author>
     <guid isPermaLink="false">selfsignedcertificate</guid>
     <keywords>Email Server,certificate,cert,pem,Email Server, POP3, IMAP4, Local Network, Autoresponder, SMTP Relay Server</keywords>
     <contextid>999</contextid>
     <description><![CDATA[<style>body {font-family: Calibri, Verdana, Arial;font-size: 12pt; color: #000000;} li > p, li > div {display: inline} </style><style> img {max-width: 620px; height: auto;}</style><p>In an email program, the server name for POP3/IMAP and SMTP is entered. When accessing via SSL, the server name must match the name in the SSL certificate; otherwise, the error &quot;Target principal name is incorrect&quot; will be displayed during access. LANMailServer is installed on a regular Windows computer (workstation or server), and this Windows computer has a name that can be used as the server name within the network. The SSL certificate must be issued for the server name to avoid errors in the email program.</p><p><u>Create Your Own SSL Certificate</u></p><p>Windows software OpenSSL is required to create the certificate. You can download the 32-bit or 64-bit Windows version from <a href="https://slproweb.com/products/Win32OpenSSL.html">https://slproweb.com/products/Win32OpenSSL.html</a> and then install it. It's best to install the software directly into C:\OpenSSL, D:\OpenSSL, etc., as the software is a console application without a graphical user interface, making it easier to navigate to the folder via the console. In this example, the software was installed to E:\OpenSSL-Win32. </p><p>&nbsp;</p><ul><li>Create a folder named &quot;lanmailserver&quot; in Windows Explorer, preferably directly in the root directory of drive C:, D:, E:, etc., as this saves time when typing. </li><li>Open the Command Prompt, navigate to the drive where OpenSSL is installed, then to the OpenSSL installation folder, and then to the <font face="Courier New">bin</font> subfolder. </li><li>Enter: <br><br><font face="Courier New">openssl req -new -days 9999 -newkey rsa:4096bits -sha512 -x509 -nodes -passin pass:&lt;password&gt; -passout pass:&lt;password&gt; -out &lt;drive&gt;:\lanmailserver\lanmailserver.crt -keyout &lt;drive&gt;:\lanmailserver\lanmailserver.pem</font><br><br>Replace <font face="Courier New">&lt;password&gt;</font> with a password without spaces, avoiding special characters or umlauts. Both passwords must be the same. <br>Replace <font face="Courier New">&lt;drive&gt;</font> with the drive containing the &quot;lanmailserver&quot; folder. <br><br>The <font face="Courier New">-days</font> parameter was set to 9999 so the certificate will be valid for 9999 days. If fewer days are specified, a new certificate will need to be created after expiration. <br><br><br></li><li>Press ENTER to begin generating a private key. </li><li>You will be prompted for various information. The most important detail is &quot; <font face="Courier New">Common Name (e.g. server FQDN or YOUR name)</font>,&quot; where the correct email server name must be entered. This is the name that must later be entered in the email program. All other information can be provided, but avoid umlauts and special characters. Simply press ENTER/RETURN to accept default values. </li><li>Type &quot;Exit&quot; to close the Command Prompt. </li><li>In the LANMailServer settings, select the option for a custom SSL certificate, choose the files lanmailserver.crt and lanmailserver.pem located in &lt;drive&gt;:\lanmailserver, and enter the &lt;password&gt;. The files and folder &lt;drive&gt;:\lanmailserver must not be deleted. <br><br></li></ul><p>&nbsp;</p><p>Adding the Certificate to Trusted Root Certificates</p><ol><li>Press the Windows Key + R to open the Windows Run dialog. </li><li>Type certmgr.msc in the Run dialog and click OK. </li><li>In the Certificate Manager, select Trusted Root Certification Authorities and then Certificates on the left. </li><li>Under the Action menu, select Import. </li><li>Select the certificate lanmailserver.crt from the folder &lt;drive&gt;:\lanmailserver and let it import. </li><li>On each computer that requires SSL access to LANMailServer, importing into Trusted Root Certificates may be necessary. </li></ol><p>&nbsp;</p><p>&nbsp;</p><p>Simple Example: For the server name lanmailserver.de, OpenSSL was installed on drive E:\OpenSSL-Win32, and the password used is &quot;GEHEIM&quot;:</p><p><img border="0" hspace="0" src="https://int.lanmailserver.de/email-server-help/selfsignedcertificate.png" width="1022" height="582"></p><p>In the email program, lanmailserver.de must be entered as the POP3 or IMAP4 and SMTP server for this example. Only this name can be used with the SSL certificate. If the server name is not correctly entered, the email program will display the error &quot;Target principal name is incorrect.&quot;</p><p>&nbsp;</p><p>Settings in LANMailServer:</p><p><img border="0" hspace="0" src="https://int.lanmailserver.de/email-server-help/lms_selfsignedcertificate.png" width="667" height="445"></p><p>&nbsp;</p><p>In Windows Explorer, you can directly click on the file lanmailserver.crt to view details about the server name and validity.</p><p>&nbsp;</p> 
]]></description>
     <pubDate>Mon, 9 Jun 2025 12:27:03 +0100</pubDate>
    </item>
    <item>
     <title>ClamAV/ClamWin/Clamd with LANMailServer</title>
     <link>https://int.lanmailserver.de/</link>
     <author>nfo@lanmailserver.de</author>
     <guid isPermaLink="false">clamav-clamd</guid>
     <keywords>Email Server, POP3, IMAP4, Local Network, clamwin, Autoresponder, SMTP Relay Server,LANMailServer,clamav,clamd</keywords>
     <contextid>20</contextid>
     <description><![CDATA[<style>body {font-family: Calibri, Verdana, Arial;font-size: 12pt; color: #000000;} li > p, li > div {display: inline} </style><style> img {max-width: 620px; height: auto;}</style><p>In&nbsp;LANMailServer <a href="progcfg.html">settings</a>, you can enable email scanning with ClamAV. To do this, you must install ClamAV. </p><p>You need to download and install the software yourself, which requires administrator rights and basic Windows/DOS knowledge.</p><p><b>Install ClamAV</b></p><p>Download the latest version of ClamAV for Windows from <a href="https://www.clamav.net/downloads" target="_blank">https://www.clamav.net/downloads</a> and install it on the computer where LANMailServer is installed. </p><p><strong>Do not start ClamAV after installation is complete.</strong></p><p><strong><a id="clamav_folder" name="clamav_folder">ClamAV Folder</a></strong></p><p>ClamAV is installed to:</p><ul><li>32bit version: C:\Program Files (x86)\ClamAV </li><li>64bit version: C:\Program Files\ClamAV </li></ul><p><strong>Configuration for clamd and freshclam</strong></p><p>To run ClamAV as a service, clamd is required. LANMailServer passes the email to clamd via port 3310, which scans it for viruses and returns a result: infected/not infected.</p><p>Configuration files for clamd and freshclam are required. You can download them ready-made:</p><p><a href="https://www.lanmailserver.de/emailserver-hilfe/clamav_conf.zip">Download conf files</a></p><p>Administrator rights required: Unzip the ZIP file and copy clamd.conf and freshclam.conf into the <a href="#clamav_folder">ClamAV folder</a>. </p><p>If you want to make changes to the conf files yourself, open them in Notepad and edit them. Then save the file in Windows ANSI format, <strong>not</strong> in UTF-8 format, which is now the default in Notepad. </p><p><strong>Create additional folders manually</strong></p><p>clamd and freshclam require additional folders that you must <strong>manually</strong> create. </p><p>Open Windows Explorer on drive C:\ and go to the ProgramData folder. If the folder is not visible, you must enable hidden folders in Windows Explorer or manually enter C:\ProgramData in the address bar and press RETURN/ENTER.</p><p><img src="https://int.lanmailserver.de/email-server-help/windowsExplorerProgramData.png"></p><p>Create the folder <font face="Courier New">.clamwin</font> in C:\ProgramData, and within it the folders <font face="Courier New">db</font> and <font face="Courier New">log</font>, so that the following folders exist: </p><p><font face="Courier New">C:\ProgramData\.clamwin\db</font><br><font face="Courier New">C:\ProgramData\.clamwin\log</font></p><p><strong><img src="https://int.lanmailserver.de/email-server-help/clamavfolders.png"></strong></p><p><strong>Install clamd and freshclam as services and update ClamAV database</strong></p><p>clamd must run as a background service so that no user needs to be logged in. freshclam must also run to download virus database updates every 12 hours.</p><p>Start Command Prompt or PowerShell as <strong>Administrator</strong>. </p><p>Navigate to the <a href="#clamav_folder">ClamAV folder</a></p><p><font face="Courier New">32bit: cd %ProgramFiles(x86)%\ClamAV</font></p><p>64bit: <font face="Courier New">cd %ProgramFiles%\ClamAV</font></p><p>Type and press RETURN/ENTER:</p><p><font face="Courier New">clamd --install-service</font></p><p>then</p><p><font face="Courier New">freshclam --install-service</font></p><p><img src="https://int.lanmailserver.de/email-server-help/clamd_freshclam_install_as_service.png"></p><p>&nbsp;</p><p>Now perform a download of the virus database by typing:</p><p><font face="Courier New">freshclam</font></p><p>and pressing RETURN/ENTER.</p><p>This will download the ClamAV databases. If errors occur, they will be displayed and <strong>must be resolved</strong>. </p><p><strong></strong></p><p><strong>Start clamd and freshclam as services</strong></p><p>Type and press RETURN/ENTER:</p><p><font face="Courier New">net start clamd</font></p><p>to start clamd,</p><p><font face="Courier New">net start freshclam</font></p><p>to start freshclam and allow it to check for virus database updates every 12 hours.</p><p><font face="Courier New">net stop clamd and net stop freshclam</font> can be used to stop the services. Alternatively, in Control Panel - Administrative Tools - Services, you will find &quot;ClamAV ClamD&quot; and &quot;ClamAV FreshClam&quot; in the list of running services and can stop or start them there. </p><p><a href="https://docs.clamav.net/manual/Usage/Services.html" target="_blank">ClamAV Documentation</a></p><p><strong>Maximum size of emails to be scanned</strong></p><p>The clamd service supports files up to 25 MB. If larger emails need to be scanned, add <font face="Courier New">StreamMaxLength</font> with a size in megabytes to the end of clamd.conf, e.g. 30 MB: </p><p><font face="Courier New">StreamMaxLength 30M</font></p><p>Be sure to save in Windows ANSI format. You must stop and restart the clamd service after changes to the conf file.</p><p><img src="https://int.lanmailserver.de/email-server-help/clamd_streammaxlength.png"></p><p>&nbsp;</p><p><b>Updates</b></p><p>The virus databases are automatically updated by freshclam, but ClamAV itself is not. For updates, you must download the new version of ClamAV, uninstall the old version, and install the new one.</p> 
]]></description>
     <pubDate>Wed, 8 Oct 2025 22:35:55 +0100</pubDate>
    </item>
    <item>
     <title>Install MySQL server yourself</title>
     <link>https://int.lanmailserver.de/</link>
     <author>nfo@lanmailserver.de</author>
     <guid isPermaLink="false">install_mysqlserver</guid>
     <keywords>LANMailServer,mysql,Email Server, POP3, IMAP4, Local Network, Autoresponder, SMTP Relay Server</keywords>
     <contextid>21</contextid>
     <description><![CDATA[<style>body {font-family: Calibri, Verdana, Arial;font-size: 12pt; color: #000000;} li > p, li > div {display: inline} </style><style> img {max-width: 620px; height: auto;}</style><p>You can easily install a MySQL server on your own computer or any computer within your network. When using it with LANMailServer, it is recommended to install the database on the same computer to avoid delays caused by the network itself.</p><p>MySQL 8.0 or MariaDB 10.2 or newer is required. Older versions of MySQL/MariaDB cannot be used because SQL Window Functions are not supported by older versions.</p><p><b>For MySQL/MariaDB Experts</b></p><p>The latest MySQL server version can be found at <a href="https://dev.mysql.com/downloads/" target="_blank">https://dev.mysql.com/downloads/</a> or for MariaDB server at <a href="https://mariadb.org/" target="_blank">https://mariadb.org/</a>. You must manage the configuration of the databases and database users yourself. </p><p>Example of manually creating a user named lanmailserver with the password lanmailserver_is_super, allowing access from all hosts.</p><textarea style="HEIGHT: 194px; WIDTH: 630px" rows="14" cols="104" readonly="readonly" name="Create_MySQLUser">CREATE USER 'lanmailserver'@'%' IDENTIFIED BY 'lanmailserver_is_super'; GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, FILE, INDEX, ALTER, SUPER, CREATE TEMPORARY TABLES, CREATE VIEW, EVENT, TRIGGER, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EXECUTE ON *.* TO 'lanmailserver'@'%'; CREATE DATABASE IF NOT EXISTS `lanmailserver` CHARSET=utf8mb4; GRANT ALL PRIVILEGES ON `lanmailserver`.* TO 'lanmailserver'@'%'; </textarea><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p> 
]]></description>
     <pubDate>Mon, 9 Jun 2025 12:26:49 +0100</pubDate>
    </item>
    <item>
     <title>Milter, for developers only</title>
     <link>https://int.lanmailserver.de/</link>
     <author>nfo@lanmailserver.de</author>
     <guid isPermaLink="false">milter</guid>
     <keywords>LANMailServer,milter,Email Server, POP3, IMAP4, Local Network, Autoresponder, SMTP Relay Server</keywords>
     <contextid>20</contextid>
     <description><![CDATA[<style>body {font-family: Calibri, Verdana, Arial;font-size: 12pt; color: #000000;} li > p, li > div {display: inline} </style><p>A mail filter, or Milter for short, is used to process incoming emails. Such Milters are used by Sendmail and Postfix. In LANMailServer, custom Milters can be created in the form of DLLs, allowing incoming emails received via SMTP to be modified or completely discarded. Emails retrieved from external mailboxes cannot be modified.</p><p>The service &quot;LANMailServer Milter Service&quot; is invoked locally by LANMailServer via TCP/IP with the respective email data. The Milter Service forwards the data to the defined Milter DLLs. The Milter Service is executed in its own memory space, separate from the LANMailServer Service.</p><p>&nbsp;</p><p><b>File lmsmilters.ini</b></p><p>Custom Milter DLLs must be added to the file lmsmilters.ini with their drive, folder, and filename in the [MilterLibs] section with unique keys. The file lmsmilters.ini is always searched for in the LANMailServer program folder.</p><p>Example</p><p>[MilterLibs] <br>0=C:\Milters\MilterDLLTest.dll <br>1=C:\Milters\MilterTestDLL.dll <br></p><p><b>Create Your Own Milter DLL</b></p><p>Important: The custom Milter DLL must be compiled in 32-bit if LANMailServer is used as a 32-bit application; otherwise, it must be a 64-bit DLL.</p><p>Example for a Delphi DLL in the LANMailServer program folder file MilterDLLTest.dpr.</p><p>All strings are defined with the C++ data type BStr. Strings are initialized using the Ole2 function SysAllocString and released with SysFreeString. If assigning a custom string, the memory of the passed string must be freed using SysFreeString, then reinitialized with SysAllocString. The service will handle the release afterward.</p><p>The data type DWORD corresponds to Cardinal or longlong.</p><p>The calling convention is always stdcall, not cdecl!</p><p>The custom DLL must <b>always</b> export the procedure MilterInformation(). </p><p>The callback functions are called during the email client-to-server connection. If the response takes too long, the client will display an error message and disconnect. The callback functions should respond quickly to avoid disconnections. The Milter Service waits a maximum of 60 seconds for a response; otherwise, it always returns MilterTempfail.</p><p>&nbsp;</p><p><b>Return Values of Callback Functions</b></p><pre>MilterOK = 0x1; MilterDenied = 0x2; MilterTempfail = 0x3; 
MilterAccept = 0x1000; MilterReject = MilterAccept + 1; 
MilterContinue = MilterReject + 1 
    
    
    
    
    </pre><p>&nbsp;</p><p><b>Procedure to Export</b></p><pre>procedure MilterInformation(var MilterName: BStr; 
      
      <br>MilterVersion: PDWORD); 
    
    
    
 
    
    </pre><p>This procedure tests the validity of the DLL; the return values are not evaluated.</p><p>Pointer to BSTR MilterName returns an identifier for the Milter using the Ole2 function SysAllocString. The Milter Service releases the string using SysFreeString.</p><p>Pointer to DWORD MilterVersion can return a version.</p><p>&nbsp;</p><p><b>Optional Functions to Manipulate Email Content</b></p><pre>function callback_envfrom(const SessionHandle: DWORD; 
var mailFrom: BStr): DWORD; 
    
    
    </pre><p>Executed after the SMTP command MAIL FROM:. Envelope sender is passed.</p><p>Unique SessionHandle is passed as a DWORD.</p><p>Pointer to BSTR mailFrom, the envelope mail from is passed and can be modified. To modify, release the string with SysFreeString and initialize a new string with SysAllocString.</p><p>Return Values</p><p>MilterAccept or MilterContinue =&gt; Envelope mail from is accepted, and any changes are applied</p><p>MilterDenied or MilterReject =&gt; Envelope mail from is not accepted =&gt; Email is rejected by the server</p><p>MilterTempfail =&gt; Milter error, email is accepted</p><p>&nbsp;</p><pre>function callback_envrcpt(const SessionHandle: DWORD; 
var mailRcpt: BStr): DWORD; 
    
    
    </pre><p>Executed after the SMTP command RCPT TO:.</p><p>Unique SessionHandle is passed as a DWORD.</p><p>Pointer to BSTR mailRcpt, the recipient is passed and can be modified. The call may occur multiple times for CC or BCC emails. To modify, release the string with SysFreeString and initialize a new string with SysAllocString.</p><p>Return Values</p><p>MilterAccept or MilterContinue =&gt; Recipient is accepted, and any changes are applied</p><p>MilterDenied or MilterReject =&gt; Recipient is not accepted =&gt; Email is rejected by the server</p><p>MilterTempfail =&gt; Milter error, email is accepted</p><p>&nbsp;</p><pre>function callback_header(const SessionHandle: DWORD; 
var Header: BStr): DWORD; 
    
    
    </pre><p>Executed after the complete receipt of the email (SMTP command DATA .).</p><p>Unique SessionHandle is passed as a DWORD.</p><p>Pointer to BSTR Header, the complete email header is passed. To modify, release the string with SysFreeString and initialize a new string with SysAllocString.</p><p>Return Values</p><p>MilterAccept or MilterContinue =&gt; Email is accepted, and any changes are applied</p><p>MilterDenied or MilterReject =&gt; Email is not accepted =&gt; Email is rejected by the server</p><p>MilterTempfail =&gt; Milter error, email is accepted</p><p>&nbsp;</p><pre>function callback_body(const SessionHandle: DWORD; 
var Body: BStr): DWORD; 
    
    
    </pre><p>Executed after the complete receipt of the email (SMTP command DATA .).</p><p>Unique SessionHandle is passed as a DWORD.</p><p>Pointer to BSTR Body, the complete email body is passed. To modify, release the string with SysFreeString and initialize a new string with SysAllocString.</p><p>Return Values</p><p>MilterAccept or MilterContinue =&gt; Email is accepted, and any changes are applied</p><p>MilterDenied or MilterReject =&gt; Email is not accepted =&gt; Email is rejected by the server</p><p>MilterTempfail =&gt; Milter error, email is accepted</p><p>&nbsp;</p><pre>function callback_abort(const SessionHandle: DWORD): DWORD;</pre><p>The connection was aborted/email was not accepted by the server.</p><p>Unique SessionHandle is passed as a DWORD.</p><p>&nbsp;</p><pre>function callback_close(const SessionHandle: DWORD): DWORD;</pre><p>The connection from the client to the server was interrupted.</p><p>Unique SessionHandle is passed as a DWORD.</p><p>&nbsp;</p><p>&nbsp;</p> 
]]></description>
     <pubDate>Mon, 9 Jun 2025 12:26:30 +0100</pubDate>
    </item>
 </channel>
</rss>
