Now you can make a test to see what you 've got. Open a Konsole window or use your favorite shell and type 'telnet localhost 25'
If you 've got something like this image you have just connected to smtp server! To disconnect type quit
You can try any other ports you like but our interest is on ports 25 (smtp), 110 (pop3), 79 (finger), 6017 (admin server of XMail).
CTRLACCOUNTS.TAB | |
---|---|
SYNTAX | "username"[TAB]"password"[NEWLINE] |
Ex. | "root" "01c04b0" |
Login Logout | |
---|---|
Login admin server | "telnet[SPACE]"domain or ipadr"[SPACE]port" after connected type "adminname"[TAB]"password" |
Description | This command logins you on admin server |
Ex. | "telnet mymailserver.com 6017" "root" "mypass" |
Logout from admin server | "quit" |
Description | This command logouts you from admin server |
Ex. | "quit" |
Domain Management | |
Adding a domain | "domainadd"[TAB]"domain" |
Description | This command adds a domain to mail server |
Ex. | "domainadd" "mycompany.com" |
Deletinging a domain | "domaindel"[TAB]"domain" |
Description | This command delete a domain from mail server |
Ex. | "domaindel" "mycompany.com" |
Listing handled domains | "domainlist" or "domainlist"[TAB]"wildmatch0"[TAB]...[TAB}"wildmatchN" |
Description | This command list all the handled domains from the mail server. You can use this command with wildcards as * or ? to search for domains |
Ex. | "domainlist" or "domainlist" "*.com" |
Adding domain alias | "aliasdomainadd"[TAB]"realdomain"[TAB]"aliasdomain" |
Description | This command add an alias for a domain |
Ex. | "aliasdomainadd" "mycompany.com" "mycompany2.com |
This example define mycompany2.com as an alias of mycompany.com | |
In domain string you can use wildcards *, ? for more general definitions | |
Ex. | "aliasdomainadd" "mycompany.com" "*.mycompany2.com |
This example define all subdomains of mycompany2.com as aliases of mycompany.com | |
Deleting domain alias | "aliasdomainadel"[TAB]"aliasdomain" |
Description | This command delete an alias domain |
Ex. | "aliasdomaindel" "mycompany2.com |
In domain string you can use wildcards *, ? for more general definitions | |
Listing alias domains | "aliasdomainlist" or "aliasdomainlist"[TAB]"wildmatch0"[TAB]...[TAB}"wildmatchN" |
Description | This command list all the alias domains from the mail server. You can use this command with wildcards as * or ? to search for domains |
Ex. | "aliasdomainlist" or "aliasdomainlist" "*.com" |
Getting custom domain file | "custdomget"[TAB]"domain" |
Description | |
Ex. | "custdomget" "spacejam.foo" |
Setting custom domain file | "custdomset"[TAB]"domain" |
Description | |
Ex. | "custdomset" "spacejam.foo" |
Listting custom domains | "custdomlist" |
Description | |
Ex. | "custdomlist" |
User Management | |
Adding a user account | "useradd"[TAB]"domain"[TAB]"username"[TAB]"password"[TAB]"usertype" |
Description | This command adds a user to mail server under a handled domain |
Values |
|
Ex. | "useradd" "mycompany.com" "user1" "passofuser" "U" |
Deleting a user account | "userdel"[TAB]"domain"[TAB]"username" |
Description | This command delete a username for a domain |
Ex. | "userdel" "mycompany.com" "cris" |
Changing a user's password | "userpasswd"[TAB]"domain"[TAB]"username"[TAB]"newpassword" |
Description | This command changes a user's password |
Ex. | "userpasswd" "mycompany.com" "cris" "mynewpass" |
Authenticate user | "userauth"[TAB]"domain"[TAB]"username"[TAB]"password" |
Description | This command authenticate a user |
Ex. | "userauth" "mycompany.com" "cris" "mypass" |
Retrieve user statistics | "userstat"[TAB]"domain"[TAB]"username" |
Description | This command retrieve user statistics |
Ex. | "userstat" "mycompany.com" "cris" |
Listing user vars | "uservars"[TAB]"domain"[TAB]"username" |
Description | This command retrieve user vars |
Ex. | "uservars" "mycompany.com" "cris" |
Setting user vars | "uservarset"[TAB]"domain"[TAB]"username"[TAB]"varname"[TAB]"varvalue"... |
Description | This command set values to user variables. User variables are variables which are stored in USER.TAB file. These varname can be
|
Ex. | "uservarset" "mycompany.com" "cris" "PopEnable" "0" |
Listing users | "userlist"[TAB]"domain"[TAB]"username" or "userlist"[TAB]"domain" or "userlist" |
Description | This command list users domain and username can contain wildcards * or ? |
Ex. | "uservars" "mycompany.com" "cris" |
Mailing Lists | |
Adding a mailing list user | "mluseradd"[TAB]"domain"[TAB]"username"[TAB]"mailaddress"[TAB]"permissions" or "mluseradd"[TAB]"domain"[TAB]"username"[TAB]"mailaddress" |
Description | This command add a user in a mailing list. Permissions are: R = read or RW = read and write |
Ex. | "mluseradd" "mycompany.com" "cris" "cris@crisdomain.com" |
Deleting a mailing list user | "mluserdel"[TAB]"domain"[TAB]"mlusername"[TAB]"mailaddress"[TAB] |
Description | This command delete a user from a mailing list. |
Ex. | "mluserdel" "mycompany.com" "cris" "cris@crisdomain.com" |
Listing mailing list users | "mluserlist"[TAB]"domain"[TAB]"mlusername"[TAB] |
Description | This command list users for a mailing list. |
Ex. | "mluserlist" "mycompany.com" "cris*" |
Alias Management | |
Adding an alias |
"aliasadd"[TAB]"domain"[TAB]"alias"[TAB]"username" |
Description |
This command add an allias
domain = domain name ( must be handled by the server ) alias = alias to add username = real email account ( locally handled ) |
Ex. | |
Deleting an alias |
"aliasdel"[TAB]"domain"[TAB]"alias"[TAB]"username" |
Description |
This command delete an allias
domain = domain name ( must be handled by the server ) alias = alias to add username = real email account ( locally handled ) |
Ex. | |
Listing aliases |
"aliaslist"[TAB]"domain"[TAB]"alias"[TAB]"username"
or "aliaslist"[TAB]"domain"[TAB]"alias" or "aliaslist"[TAB]"domain" or "aliaslist" |
Description |
This command list alliases
domain = domain name ( must be handled by the server ) alias = alias to add username = real email account ( locally handled ) |
Ex. | |
POP3 links | |
Adding a POP3 external link | "poplnkadd"[TAB]"loc-domain"[TAB]"loc-username"[TAB]"extrn-domain"[TAB] "extrn-username"[TAB]"extrn-password"[TAB]"authtype" or "mluseradd"[TAB]"domain"[TAB]"username"[TAB]"mailaddress" |
Description | This command make an external POP link for a user on a domain of a hadled xmail domain |
Ex. | "poplnkadd" "mycompany.com" "cris" "otherISP.com" "cris@otherISP.com" "cris" "crispassonotherISP" "CLR" |
Deleting a POP3 external link | "poplnkdel"[TAB]"loc-domain"[TAB]"loc-username"[TAB]"extrn-domain"[TAB]"extrn-username" or "mluseradd"[TAB]"domain"[TAB]"username"[TAB]"mailaddress" |
Description | This command delete an external POP link for a user on a domain of a hadled xmail domain |
Ex. | "poplnkadd" "mycompany.com" "cris" "otherISP.com" "cris@otherISP.com" "cris" |
Listing POP3 external links | "poplnklist"[TAB]"loc-domain"[TAB]"loc-username" or "poplnklist"[TAB]"loc-domain"[TAB] or "poplnklist" |
Description | This command lists external POP links for users or domains |
Ex. | "poplnklist" "mylist.com" |
Enabling a POP3 external links | "poplnkenable"[TAB]"enable"[TAB]"loc-domain"[TAB]"loc-username"[TAB] "extrn-domain"[TAB]"extrn-username" or "poplnkenable"[TAB]"enable"[TAB]"loc-domain"[TAB]"loc-username" |
Description | This command enables or disables external POP links |
Ex. | |
File management | |
Listing files | "filelist"[TAB]"relative-path"[TAB]"match-string" |
Description | Return a list of files for a relative MailRoot path and wildcard match string
|
Ex. | "filelist" "/" "*.*" |
Getting a configuration file | "cfgfileget"[TAB]"relative-path" |
Description | List line by line a configuration file. You can not use this command with indexed files |
Ex. | "cfgfileget" "ctrlaccounts.tab" |
Setting a configuration file | "cfgfileset"[TAB]"relative-path" |
Description | In success case the client must list the configuration file line by line, ending with a line containing a single dot ([NEWLINE].[NEWLINE]). If a line of the file begin with a dot, another dot must be added at the begin of the line. The client must then get another respond string indicating the final command. You can make XMail to not work properly with a bad configured file. You can not use this command with indexed files |
Ex. | "cfgfileget" "ctrlaccounts.tab" |
Frozen messages | |
Listing frozen messages | "frozlist" |
Description | Return a list of messages which for some reson are frozen |
Ex. | "frozlist" |
Rescheduling frozen messages | "frozsubmit"[TAB]"lev0"[TAB]"lev1"[TAB]"msgfile" |
Description | After a successful frozsubmit command the frozen message will bedeleted from frozlist |
Ex. | |
Deleting frozen messages | "frozdel"[TAB]"lev0"[TAB]"lev1"[TAB]"msgfile" |
Description | Delete a frozen message |
Ex. | |
Getting frozen message log file | "frozgetlog"[TAB]"lev0"[TAB]"lev1"[TAB]"msgfile" |
Description | Getting frozen message log |
Ex. | |
Other commands | |
Starting a queue flush | "etrn"[TAB]"email-match0"... |
Description | |
Ex. | "etrn" "*@*.mydomain.com" "your-domain.org" |
Do nothing | "noop" |
Description | |
Ex. | "noop" |
CTRLACCOUNTS.TAB | |
---|---|
Description | This file contain the accounts that are enable to remote administer XMail. The password is encrypted with XMCrypt program supplied with the source distro. REMEMBER THAT THIS HOLDS ADMIN ACCOUNTS, SO PLEASE CHOOSE COMPLEX USERNAMES AND PASSWORDS AND USE CTRL.IPMAP.TAB TO RESTRICT IP ACCESS ! REMEMBER TO REMOVE THE EXAMPLE ACCOUNT FROM THIS FILE ! |
SYNTAX | "username"[TAB]"password"[NEWLINE] |
Ex. | "root" "01c04b0" |
SERVER.TAB | |
Description | This file contain server configuration variabiles. |
SYNTAX | "varname"[TAB]"varvalue"[NEWLINE] |
Ex. | |
Values |
|
CTRL.IPMAP.TAB | |
Description | This file control IP access permission to CTRL(admin) server. |
SYNTAX | "ipaddr"[TAB]"netmask"[TAB]"permisssion"[TAB]"precedence"[NEWLINE] |
Ex. |
"0.0.0.0"[TAB]"0.0.0.0"[TAB]"DENY"[TAB]"1"[NEWLINE] "212.131.173.0"[TAB]"255.255.255.0"[TAB]"ALLOW"[TAB]"2"[NEWLINE] This configuration deny access to all IPs except the ones of the class "C" network "212.131.173.XXX". Higher precedences win over lower ones. |
DOMAINS.TAB | |
Description | Define domains handled by the server. |
SYNTAX | "domain"[NEWLINE] |
Ex. | "localhost.localdomain" "mycompany.com" |
MAILUSERS.TAB | |
Description |
Define an account Ex. "dlibenzi" in domain "home.bogus" with the encrypted password "XYZ...", user id "1" and mail directory "dlibenzi" inside $MAIL_ROOT/domains/home.bogus. To allow multiple domains handling the POP3 client must use the entire email address for the POP3 user account, ex. if a user has email user@domain it must supply : user@domai as POP3 account login. The directory "account-dir" __must__ case match with the field "account-dir" of this file. Note that user id __must__ be unique for all users ( can't exist duplicated user ids ). The user id 0 is reserved by XMail and cannot be used. The last field "U" is the account type : "U" = User account "M" = Mailing list account The encrypted password is generated by XMCrypt whose source is in XMCrypt.cpp. Even if external authentication is used ( see Part 8 External Authentication ) this file _must_ contain an entry for each user handled by XMail. You __CANNOT__ edit this file while XMail is running due to the fact that is an indexed file. You can use instead the remote command "useradd" |
SYNTAX |
"domain"[TAB]"account"[TAB]"enc-passwd"[TAB]"account-id"[TAB] "account-dir"[TAB]"account-type"[NEWLINE] |
Ex. | "home.bogus" "dlibenzi" "XYZ..." 1 "dlibenzi" "U" |
USERDEF.TAB / USER.TAB | |
Description |
Set values for users contain user default values for new users that are not set during the new account creation. This file is looked up in two different places, first in $MAIL_ROOT/domains/DOMAIN then in $MAIL_ROOT, where DOMAIN is the name of the domain where We're going to create the new user. For each "domain" handled by the server We'll create a directory "domain" inside $MAIL_ROOT. Inside $MAIL_ROOT/"domain" will reside "domain" "account" directories ( $MAIL_ROOT/"domain"/"account" ). This folder contain a subfolder named mailbox ( or Maildir/(tmp,new,cur) ) that store all "account" messages. It also contains a file named USER.TAB that store "account" variabiles, ex : "RealName" "Davide Libenzi" "HomePage" "http://www.xmailserver.org/davide.html" "MaxMBSize" "30000" |
SYNTAX |
"varname"[TAB]"value"[NEWLINE] |
Ex. | "RealName" "Jo Smith" |
MLUSERS.TAB | |
Description |
If the user is a mailing list this file must exist inside user account subdirectory and contain a list of users subscribed to this list. user = subscriber email address perms = subscriber permissions ( R = read or RW = read/write ) If the USER.TAB file defines a "ClosedML" variable as 1 then a client can post to this mailing list only if It's listed in MLUSERS.TAB with RW permissions. |
SYNTAX | "user"[TAB]"perms"[NEWLINE] |
Ex. |
"davidel@xmailserver.org" "RW" "ghostuser@nightmare.net" "R" |
ALIASES.TAB | |
Description |
Define aliases for user accounts You __CANNOT__ edit this file while XMail is running due to the fact that is an indexed file. |
SYNTAX | "domain"[TAB]"alias"[TAB]"realaccount"[NEWLINE] |
Ex. |
"home.bogus" "davidel" "dlibenzi" define "davidel" as alias for "dlibenzi" in "home.bogus" domain. "home.bogus" "foo*bog" "homer@internal-domain.org" define an alias for all users whose name start with foo and end with bog that point to the locally handled account homer@internal-domain.org. "home.bogus" "??trips" "travels" define an alias for all users whose name start with any two chars and end with trips. You can have widcard even in the domain field, like : "*" "postmaster" "postmaster@domain.net" |
ALIASDOMAIN.TAB | |
Description | Define aliases for handled domains |
SYNTAX | "aliasdomain"[TAB]"realdomain"[NEWLINE] |
Ex. |
"simpson.org" "simpson.com" "*.homer.net" "homer.net" The first line define simpson.org as an alias of simpson.com while the second remap all subdomains of homer.net to homer.net |
DNSROOTS.TAB | |
Description |
this is a file that lists a root name server in each line ( this is not a TAB file ). This can be created from a query via nslookup for type=ns and host = "." |
SYNTAX | hosts |
Ex. |
a.root-servers.net. h.root-servers.net. c.root-servers.net. g.root-servers.net. f.root-servers.net. b.root-servers.net. j.root-servers.net. k.root-servers.net. l.root-servers.net. m.root-servers.net. i.root-servers.net. e.root-servers.net. d.root-servers.net. |
EXTALIASES.TAB | |
Description | This file is used in configutaions in which the server run not directly on internet but act as internal mail exchanger and external mail gateway. This file define "Return-Path: <...>" mapping for internal mail delivery. If You are using a Mail client like Outlook, Eudora, KMail ... You have configured Your email address with the external account say "dlibenzi@xmailserver.org". When You post an inernal message to "foo@home.bogus" the mail client put Your external email address ( "dlibenzi@xmailserver.org" ) in the "MAIL FROM: <...>" SMTP request. Now if the user "foo" reply to this message, it'll reply to "dlibenzimaticad.it" then it'll be sent to the external mail server. With the entry above in EXTALIASES.TAB file the "Return-Path: <...>" field is filled with "dlibenzi@home.bogus" that lead to an internal mail reply. You __CANNOT__ edit this file while XMail is running due to the fact that is an indexed file. |
SYNTAX | "external-domain"[TAB]"external-account"[TAB]"local-domain"[TAB]"local-user"[NEWLINE] |
Ex. | "xmailserver.org" "dlibenzi" "home.bogus" "dlibenzi" |
MESSAGE.ID | |
Description | Is a file storing a sequential message number. You set it at 1 when You install the server and leave it be handled by the software. |
SYNTAX | |
Ex. | |
POP3LINKS.TAB | |
Description |
This entry is used to syncronize an external account like "dlibenzi@xmailserver.org" with encrypted
password "XYZ..." with a local account like "dlibenzi@home.bogus" using APOP authentication.
It connect with the "xmailserver.org" POP3 server and download all messages for "dlibenzi@xmailserver.org" into
the local account "dlibenzi@home.bogus".
The remote server must support ASKED authentication to specify ASKED as authtype.
Using authentication is more secure coz clear usernames and password does not
travel on the network, if You're not sure about it, specify CLR as authtype.
For non local POP3 sync You've to specify a line like this one ( @ as the first domain char ) :
"@home.bogus.com" "dlibenzi" "xmailserver.org:110" "dlibenzi" "XYZ..." "CLR" This entry is used to syncronize the external account "dlibenzi@xmailserver.org" with encrypted password "XYZ..." with the account "dlibenzi@home.bogus.com" using CLR authentication. The message will be pushed into the spool having as destination dlibenzi@home.bogus.com , so You've to have some kind of processing for that user or domain in Your XMail configuration ( for example custom domain processing ). You can also have the option to setup a line like this one : "?home.bogus.com,felins.net,pets.org" "dlibenzi" "xmailserver.org" "dlibenzi" "XYZ..." "CLR" and messages are dropped inside the spool by following these rules :
"&.local,felins.net,pets.org" "dlibenzi" "xmailserver.org" "dlibenzi" "XYZ..." "CLR" where a fetched message whose To: address is graycat@felins.net will be replaced with graycat@felins.net.local. You can avoid the matching domain list after the masquerading domain but, in that case, You may have bad destination addresses inside the spool. The list MUST be comma separated WITHOUT spaces. XMail will start PSYNC session with a delay that You can specify with the -Yi nsec command line parameter ( default 120 ). XMail will also check for the presence ( inside MAIL_ROOT ) of a file named ".psync-trigger" and, when this file is found, a PSYNC session will start and such file will be removed. authtype = authentication method ( CLR = USER/PASS auth APOP = APOP auth ) |
SYNTAX |
"local-domain"[TAB]"local-account"[TAB]"external-domain"[TAB] "external-account"[TAB]"external-crypted-password"[TAB]"authtype"[NEWLINE] |
Ex. | "home.bogus" "dlibenzi" "xmailserver.org" "dlibenzi" "XYZ..." "APOP" |
SMTPGW.TAB | |
Description |
Define a smtp gateway list for a domain where domain = a valid domain gateway as is defined in DNS MX RRs port= a valid integer that is the port where the gateway is listening (optional) Each gateway in the list must be separated with "," No spaces are allowed |
SYNTAX | "domain"[TAB]"domaingateway:port(0),....,domaingateway:port(N)"[NEWLINE] |
Ex. |
"foo.example.com" "mail.xmailserver.org:7001,192.168.1.1:6123,mx.xmailserver.org"
or "*.dummy.net" "mail.xmailserver.org,192.168.1.1,mx.xmailserver.org:6423" |
SMTPFWD.TAB | |
Description |
Define a smtp frwd mail exchanger list where domain = a valid domain gateway as is defined in DNS MX RRs port= a valid integer that is the port where the gateway is listening (optional) Each gateway in the list must be separated with "," No spaces are allowed |
SYNTAX | "domain"[TAB]"domaingateway:port(0),....,domaingateway:port(N)"[NEWLINE] |
Ex. |
"foo.example.com" "mail.xmailserver.org:7001,192.168.1.1:6123,mx.xmailserver.org"
will send all mail for "foo.example.com" using the provided list of mail exchangers,
while :
"*.dummy.net" "mail.xmailserver.org,192.168.1.1,mx.xmailserver.org:6423" will send all mail for "*.dummy.net" through the provided list of mail exchangers. If the port ( :nn ) is not specified the default SMTP port ( 25 ) is assumed. You can also enable XMail to random-select the order of the gateway list by specifying : "*.dummy.net" "#mail.xmailserver.org,192.168.1.1,mx.xmailserver.org:6423" using the character # as the first char of the gateway list. |
SMTPRELAY.TAB | |
Description |
Define a range of hosts to use as a relay the xMail server |
SYNTAX | "ipaddr"[TAB]"netmask"[NEWLINE] |
Ex. |
"212.131.173.0"[TAB]"255.255.255.0"[NEWLINE]
allow all hosts of the class "C" network "212.131.173.XXX" to use the server as relay. |
SMTPAUTH.TAB | |
Description |
Permit SMTP clients authentication with protocols PLAIN, LOGIN, CRAM-MD5
and custom.
With custom authentication a file containing all secrets ( username + ':' + password ) is passed as parameter to the custom authentication program which will test all secrets to find the one matching ( if exist ). For this reason it's better to keep the number of entries in this file as low as possible. Permissions are a string that can contain : M = open mailing features R = open relay features ( bypass all other relay blocking traps ) V = VRFY command enabled ( bypass SERVER.TAB variable ) T = ETRN command enabled ( bypass SERVER.TAB variable ) Z = disable mail size checking ( bypass SERVER.TAB variable ) When PLAIN, LOGIN or CRAM-MD5 authentication mode are used a first lookup in MAILUSERS.TAB accounts is performed to avoid duplicating informations with SMTPAUTH.TAB. So using these authentication modes a user must use as username the full email address ( the : separator is permitted instead @ ) and as password his POP3 password. If the lookup succeed the SERVER.TAB variable "DefaultSmtpPerms" is used to assign user SMTP permissions ( default MR ). If the lookup will fail then SMTPAUTH.TAB lookup is done. |
SYNTAX | "username"[TAB]"password"[TAB]"permissions"[NEWLINE] |
Ex. | |
SMTPEXTAUTH.TAB | |
Description |
Besides internal SMTP authentication methods a user ( XMail administrator ) can define
custom authentication procedures by setting up properly this file.
The file SMTPEXTAUTH.TAB is the server part of the custom authentication which has the given format : "auth-name"[TAB]"base-challenge"[TAB]"program-path"[TAB]"arg-or-macro"...[NEWLINE] This file can contain multiple lines whose "auth-name" will be listed during the EHLO command response. Where "arg-or-macro" can be : @@CHALL = server challenge given by base-challenge + ':' + server-timestamp @@DGEST = client response to server challenge ( @@CHALL ) @@FSECRT = a file containing all the lines ( username + ':' + password ) of SMTPAUTH.TAB |
SYNTAX | "auth-name"[TAB]"base-challenge"[TAB]"program-path"[TAB]"arg-or-macro"...[NEWLINE] |
Ex. | "RSA-AUTH" "foochallenge" "/usr/bin/myrsa-authenticate" "-c" "@@CHALL" "-f" "@@FSECRT" "-d" "@@DGEST" |
SPAMMERS.TAB | |
Description | Set up a ban list for spammers based on ip address and a netmask |
SYNTAX | "ipaddr"[TAB]"netmask"[NEWLINE] |
Ex. |
"212.131.173.0"[TAB]"255.255.255.0"[NEWLINE]
register all hosts of the class "C" network "212.131.173.XXX" as spammers, and block them the use of XMail SMTP server. |
SPAM-ADDRESS.TAB | |
Description | Set up a ban list for spammers based on email address |
SYNTAX | "spam-address"[NEWLINE] |
Ex. |
"*@rude.net"[NEWLINE]
"*-admin@even.more.rude.net"[NEWLINE] will block mails coming from the entire domain rude.net and comig from all addresses that end with -admin@even.more.rude.net. |
POP3.IPMAP.TAB | |
Description | This file control the global IP access permission to POP3 server if located into MAIL_ROOT path, and user IP access to its POP3 mailbox if located inside the user directory. |
SYNTAX | "ipaddr"[TAB]"netmask"[TAB]"permission"[TAB]"precedence"[NEWLINE] |
Ex. |
"0.0.0.0"[TAB]"0.0.0.0"[TAB]"DENY"[TAB]"1"[NEWLINE]
"212.131.173.0"[TAB]"255.255.255.0"[TAB]"ALLOW"[TAB]"2"[NEWLINE] This configuration deny access to all IPs except the ones of the class "C" network "212.131.173.XXX". Higher precedences win over lower ones. |
SMTP.IPMAP.TAB | |
Description | This file control IP access permission to SMTP server. |
SYNTAX | "ipaddr"[TAB]"netmask"[TAB]"permission"[TAB]"precedence"[NEWLINE] |
Ex. |
"0.0.0.0"[TAB]"0.0.0.0"[TAB]"DENY"[TAB]"1"[NEWLINE]
"212.131.173.0"[TAB]"255.255.255.0"[TAB]"ALLOW"[TAB]"2"[NEWLINE] This configuration deny access to all IPs except the ones of the class "C" network "212.131.173.XXX". Higher precedences win over lower ones. |
FINGER.IPMAP.TAB | |
Description | This file control IP access permission to FINGER server. |
SYNTAX | "ipaddr"[TAB]"netmask"[TAB]"permission"[TAB]"precedence"[NEWLINE] |
Ex. |
"0.0.0.0"[TAB]"0.0.0.0"[TAB]"DENY"[TAB]"1"[NEWLINE]
"212.131.173.0"[TAB]"255.255.255.0"[TAB]"ALLOW"[TAB]"2"[NEWLINE] This configuration deny access to all IPs except the ones of the class "C" network "212.131.173.XXX". Higher precedences win over lower ones. |
MAILPROC.TAB | |
Description |
store commands ( internals or externals ) that has to be executed on message file.
The presence of this file is optional an if it does not exist the default processing
is to store the message in user mailbox.
Each argument can be a macro also : @@FROM will be substituted with the sender of the message @@RCPT will be substituted with the recipient of the message @@RRCPT will be substituted with the real recipient ( @@RCPT could be an alias ) of the message @@FILE will be substituted with the message file path ( the external command _must_ only read the file ) @@MSGID will be substituted with the ( XMail unique ) message id @@MSGREF will be substituted with the reference SMTP message id @@TMPFILE will create a copy of the message file to a temporary one. It can be used with "external" command but in this case it's external program responsibility to delete the temporary file. Supported commands : [EXTERNAL] "external"[TAB]"priority"[TAB]"wait-timeout"[TAB]"command-path"[TAB]"arg-or-macro"[TAB]...[NEWLINE] where : external = command keyword priority = process priority - 0 = normal -1 = below normal +1 = above normal wait-timeout = wait timeout for process execution in seconds - 0 = nowait if wait-timeout = 0 You must add a "wait" command at the end of MAILPROC.TAB to give the executed external commands the time to read the message file. This is coz such file is a temporary one that will be deleted when XMail exit from MAILPROC.TAB file processing. [MAILBOX] "mailbox"[NEWLINE] With this command the message will be push into local user mailbox. [REDIRECT] "redirect"[TAB]"address"[TAB]...[NEWLINE] Redirect message to internal or external addresses. [LREDIRECT] "lredirect"[TAB]"address"[TAB]...[NEWLINE] Redirect message to internal or external addresses impersonating local domain during messages delivery. [WAIT] "wait"[TAB]"timeout"[NEWLINE] Wait "timeout" seconds. This command is used to give external commands the time to read the temporary message file when such commands are lounched with wait-timeout = 0. |
SYNTAX | "command"[TAB]"arg-or-macro"[TAB]...[NEWLINE] |
Ex. | |