forked from GerHobbelt/xmail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Readme.html
5195 lines (4667 loc) · 202 KB
/
Readme.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>XMail mail server v 1.26</title>
<link rel="stylesheet" href="./xmail.css" type="text/css" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:root@localhost" />
</head>
<body>
<!-- INDEX BEGIN -->
<div name="index">
<p><a name="__index__"></a></p>
<ul>
<li><a href="#name">NAME</a></li>
<li><a href="#license">LICENSE</a></li>
<li><a href="#overview">OVERVIEW</a></li>
<li><a href="#version">VERSION</a></li>
<ul>
<li><a href="#current">current</a></li>
<li><a href="#release_type">release type</a></li>
<li><a href="#release_date">release date</a></li>
<li><a href="#project_by">project by</a></li>
<li><a href="#credits">credits</a></li>
<li><a href="#warning">warning</a></li>
</ul>
<li><a href="#documentation_conventions">DOCUMENTATION CONVENTIONS</a></li>
<li><a href="#features">FEATURES</a></li>
<li><a href="#porting_status">PORTING STATUS</a></li>
<li><a href="#requirements">REQUIREMENTS</a></li>
<li><a href="#obtaining_the_source">OBTAINING THE SOURCE</a></li>
<li><a href="#build">BUILD</a></li>
<li><a href="#configuration">CONFIGURATION</a></li>
<ul>
<li><a href="#linux_solaris_freebsd_openbsd">Linux/Solaris/FreeBSD/OpenBSD</a></li>
<li><a href="#nt_win2k_xp">NT/Win2K/XP</a></li>
<li><a href="#environment_variables">Environment variables</a></li>
<li><a href="#mailroot_structure">MailRoot structure</a></li>
<li><a href="#configuration_tables">Configuration tables</a></li>
<ul>
<li><a href="#aliases_tab">ALIASES.TAB</a></li>
<li><a href="#aliasdomain_tab">ALIASDOMAIN.TAB</a></li>
<li><a href="#domains_tab">DOMAINS.TAB</a></li>
<li><a href="#dnsroots">DNSROOTS</a></li>
<li><a href="#extaliases_tab">EXTALIASES.TAB</a></li>
<li><a href="#mailusers_tab">MAILUSERS.TAB</a></li>
<li><a href="#message_id">MESSAGE.ID</a></li>
<li><a href="#pop3links_tab">POP3LINKS.TAB</a></li>
<li><a href="#server_tab">SERVER.TAB</a></li>
<li><a href="#smtpgw_tab">SMTPGW.TAB</a></li>
<li><a href="#smtpfwd_tab">SMTPFWD.TAB</a></li>
<li><a href="#smtprelay_tab">SMTPRELAY.TAB</a></li>
<li><a href="#smtpauth_tab">SMTPAUTH.TAB</a></li>
<li><a href="#smtpextauth_tab">SMTPEXTAUTH.TAB</a></li>
<li><a href="#userdef_tab">USERDEF.TAB</a></li>
<li><a href="#ctrlaccounts_tab">CTRLACCOUNTS.TAB</a></li>
<li><a href="#spammers_tab">SPAMMERS.TAB</a></li>
<li><a href="#spam_address_tab">SPAM-ADDRESS.TAB</a></li>
<li><a href="#pop3_ipmap_tab">POP3.IPMAP.TAB</a></li>
<li><a href="#smtp_ipmap_tab">SMTP.IPMAP.TAB</a></li>
<li><a href="#ctrl_ipmap_tab">CTRL.IPMAP.TAB</a></li>
<li><a href="#finger_ipmap_tab">FINGER.IPMAP.TAB</a></li>
<li><a href="#user_tab">USER.TAB</a></li>
<li><a href="#mlusers_tab">MLUSERS.TAB</a></li>
<li><a href="#mailproc_tab">MAILPROC.TAB</a></li>
<li><a href="#smtp_ipprop_tab">SMTP.IPPROP.TAB</a></li>
<li><a href="#smtp_hnprop_tab">SMTP.HNPROP.TAB</a></li>
<li><a href="#filters_in_tab">FILTERS.IN.TAB</a></li>
<li><a href="#filters_out_tab">FILTERS.OUT.TAB</a></li>
<li><a href="#filters_post_rcpt_tab">FILTERS.POST-RCPT.TAB</a></li>
<li><a href="#filters_pre_data_tab">FILTERS.PRE-DATA.TAB</a></li>
<li><a href="#filters_post_data_tab">FILTERS.POST-DATA.TAB</a></li>
</ul>
</ul>
<li><a href="#macro_substitution">MACRO SUBSTITUTION</a></li>
<li><a href="#external_authentication">EXTERNAL AUTHENTICATION</a></li>
<li><a href="#smtp_client_authentication">SMTP CLIENT AUTHENTICATION</a></li>
<li><a href="#custom_domain_mail_processing">CUSTOM DOMAIN MAIL PROCESSING</a></li>
<li><a href="#cmd_aliases">CMD ALIASES</a></li>
<li><a href="#server_tab_variables">SERVER.TAB VARIABLES</a></li>
<li><a href="#message_filters">MESSAGE FILTERS</a></li>
<li><a href="#smtp_message_filters">SMTP MESSAGE FILTERS</a></li>
<li><a href="#user_tab_variables">USER.TAB VARIABLES</a></li>
<li><a href="#mail_routing_through_addresses">MAIL ROUTING THROUGH ADDRESSES</a></li>
<li><a href="#xmail_spool_design">XMAIL SPOOL DESIGN</a></li>
<li><a href="#smtp_gateway_configuration">SMTP GATEWAY CONFIGURATION</a></li>
<li><a href="#ssl_configuration">SSL CONFIGURATION</a></li>
<li><a href="#smtp_commands">SMTP COMMANDS</a></li>
<li><a href="#pop3_commands">POP3 COMMANDS</a></li>
<li><a href="#command_line">COMMAND LINE</a></li>
<li><a href="#xmail_admin_protocol">XMAIL ADMIN PROTOCOL</a></li>
<ul>
<li><a href="#description">Description</a></li>
<li><a href="#adding_a_user">Adding a user</a></li>
<li><a href="#deleting_a_user">Deleting a user</a></li>
<li><a href="#changing_a_user_s_password">Changing a user's password</a></li>
<li><a href="#authenticate_user">Authenticate user</a></li>
<li><a href="#retrieve_user_statistics">Retrieve user statistics</a></li>
<li><a href="#adding_an_alias">Adding an alias</a></li>
<li><a href="#deleting_an_alias">Deleting an alias</a></li>
<li><a href="#listing_aliases">Listing aliases</a></li>
<li><a href="#adding_an_external_alias">Adding an external alias</a></li>
<li><a href="#deleting_an_external_alias">Deleting an external alias</a></li>
<li><a href="#listing_external_aliases">Listing external aliases</a></li>
<li><a href="#listing_user_vars">Listing user vars</a></li>
<li><a href="#setting_user_vars">Setting user vars</a></li>
<li><a href="#listing_users">Listing users</a></li>
<li><a href="#getting_mailproc_tab_file">Getting mailproc.tab file</a></li>
<li><a href="#setting_mailproc_tab_file">Setting mailproc.tab file</a></li>
<li><a href="#adding_a_mailing_list_user">Adding a mailing list user</a></li>
<li><a href="#deleting_a_mailing_list_user">Deleting a mailing list user</a></li>
<li><a href="#listing_mailing_list_users">Listing mailing list users</a></li>
<li><a href="#adding_a_domain">Adding a domain</a></li>
<li><a href="#deleting_a_domain">Deleting a domain</a></li>
<li><a href="#listing_handled_domains">Listing handled domains</a></li>
<li><a href="#adding_a_domain_alias">Adding a domain alias</a></li>
<li><a href="#deleting_a_domain_alias">Deleting a domain alias</a></li>
<li><a href="#listing_alias_domains">Listing alias domains</a></li>
<li><a href="#getting_custom_domain_file">Getting custom domain file</a></li>
<li><a href="#setting_custom_domain_file">Setting custom domain file</a></li>
<li><a href="#listing_custom_domains">Listing custom domains</a></li>
<li><a href="#adding_a_pop3_external_link">Adding a POP3 external link</a></li>
<li><a href="#deleting_a_pop3_external_link">Deleting a POP3 external link</a></li>
<li><a href="#listing_pop3_external_links">Listing POP3 external links</a></li>
<li><a href="#enabling_a_pop3_external_link">Enabling a POP3 external link</a></li>
<li><a href="#listing_files">Listing files</a></li>
<li><a href="#getting_configuration_file">Getting configuration file</a></li>
<li><a href="#setting_configuration_file">Setting configuration file</a></li>
<li><a href="#listing_frozen_messages">Listing frozen messages</a></li>
<li><a href="#rescheduling_frozen_message">Rescheduling frozen message</a></li>
<li><a href="#deleting_frozen_message">Deleting frozen message</a></li>
<li><a href="#getting_frozen_message_log_file">Getting frozen message log file</a></li>
<li><a href="#getting_frozen_message">Getting frozen message</a></li>
<li><a href="#starting_a_queue_flush">Starting a queue flush</a></li>
<li><a href="#do_nothing_command">Do nothing command</a></li>
<li><a href="#quit_the_connection">Quit the connection</a></li>
<li><a href="#do_you_want___">Do you want...?</a></li>
</ul>
<li><a href="#xmail_local_mailer">XMAIL LOCAL MAILER</a></li>
<li><a href="#ctrlclnt__xmail_administration_">CtrlClnt (XMAIL ADMINISTRATION)</a></li>
<li><a href="#server_shutdown">SERVER SHUTDOWN</a></li>
<li><a href="#mkusers">MkUsers</a></li>
<li><a href="#sendmail">sendmail</a></li>
<li><a href="#miscellaneous">MISCELLANEOUS</a></li>
<li><a href="#thanks">THANKS</a></li>
</ul>
<hr name="index" />
</div>
<!-- INDEX END -->
<p>
</p>
<h1><a name="name">NAME</a></h1>
<p>XMail - Internet/Intranet mail server.</p>
<p>[<a href="#__index__">top</a>]</p>
<p>
</p>
<hr />
<h1><a name="license">LICENSE</a></h1>
<p>This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation (<a href="http://www.gnu.org">http://www.gnu.org</a>);
either version 2 of the License, or
(at your option) any later version.</p>
<p>This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.</p>
<p>You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</p>
<p>[<a href="#__index__">top</a>]</p>
<p>
</p>
<hr />
<h1><a name="overview">OVERVIEW</a></h1>
<p>XMail is an Internet and Intranet mail server featuring an SMTP server,
POP3 server, finger server, multiple domains,
no need for users to have a real system account,
SMTP relay checking, RBL/RSS/ORBS/DUL and custom (IP based and address based) spam protection,
SMTP authentication (PLAIN LOGIN CRAM-MD5 POP3-before-SMTP and custom),
a POP3 account synchronizer with external POP3 accounts, account aliases,
domain aliases, custom mail processing, direct mail files delivery,
custom mail filters, mailing lists, remote administration, custom mail exchangers,
logging, and multi-platform code.</p>
<p>XMail sources compile under GNU/Linux, FreeBSD, OpenBSD, NetBSD, OSX, Solaris and NT/2K.</p>
<p>This server was born due to the need of having a free and stable Mail Server
to be used inside my old company, which used a Windows Network.
I don't like to reinvent the wheel but the need of some special features
drive me to start a new project. Probably if I could use a Linux server
on my net, I would be able to satisfy my needs without writing code, but
this is not the case. It should be also portable to other OSs, like Linux
and other Unixes.</p>
<p>Another reason that drove me to write XMail is the presence of the same steps
in setting up a typical mail server, i.e.:</p>
<pre>
sendmail + qpopper + fetchmail</pre>
<p>if one needs SMTP, POP3 and external synchronization, or:</p>
<pre>
sendmail + qpopper</pre>
<p>for only SMTP and POP3 (I've quoted sendmail, qpopper and fetchmail, but there
are many other packages you can use to reach these needs).
With XMail you get an all-in-one package with a central administration that can
simplify the above common steps.</p>
<p>The first code of XMail Server is started on Windows NT and Linux, and
now, the FreeBSD and Solaris version ready. The compilers supported are gcc for
Linux, FreeBSD, OpenBSD and Solaris and M$ Visual C++ for NT/2K.</p>
<p>[<a href="#__index__">top</a>]</p>
<p>
</p>
<hr />
<h1><a name="version">VERSION</a></h1>
<p>
</p>
<h2><a name="current">current</a></h2>
<p>1.26</p>
<p>
</p>
<h2><a name="release_type">release type</a></h2>
<p>Gnu Public License <a href="http://www.gnu.org">http://www.gnu.org</a></p>
<p>
</p>
<h2><a name="release_date">release date</a></h2>
<p>Jan 4, 2008</p>
<p>
</p>
<h2><a name="project_by">project by</a></h2>
<p>Davide Libenzi <<a href="mailto:davidel@xmailserver.org">davidel@xmailserver.org</a>> <a href="http://www.xmailserver.org/">http://www.xmailserver.org/</a></p>
<p>
</p>
<h2><a name="credits">credits</a></h2>
<p>Michael Hartle <<a href="mailto:mhartle@hartle-klug.com">mhartle@hartle-klug.com</a>></p>
<p>Shawn Anderson <<a href="mailto:sanderson@eye-catcher.com">sanderson@eye-catcher.com</a>></p>
<p>Dick van der Kaaden <<a href="mailto:dick@netrex.nl">dick@netrex.nl</a>></p>
<p>Beau E, Cox <<a href="mailto:beau@beaucox.com">beau@beaucox.com</a>></p>
<p>
</p>
<h2><a name="warning">warning</a></h2>
<pre>
************************************************************
* <<WARNING>> *
* If you're upgrading an existing version of XMail it's *
* strongly suggested that you read all the ChangeLog *
* notes that range from existing version to the new one. *
************************************************************</pre>
<p>See the <a href="./ChangeLog.html"><b>Change Log</b></a>.</p><p>[<a href="#__index__">top</a>]</p>
<p>
</p>
<hr />
<h1><a name="documentation_conventions">DOCUMENTATION CONVENTIONS</a></h1>
<p>This document contains various examples of entries you must make to the XMail
configuration tables. These examples are written in a</p>
<pre>
mono-spaced font like this.</pre>
<p>The prototype statement is shown with explicit '<strong>[TAB]</strong>' and '<strong>[NEWLINE]</strong>'
characters:</p>
<pre>
"aliasdomain"[TAB]"realdomain"[NEWLINE]</pre>
<p>while examples omit these characters:</p>
<pre>
"simpson.org" "simpson.com"
"*.homer.net" "homer.net"</pre>
<p>'<strong>YOU MUST ALWAYS ENTER THE DATA EXACTLY AS SHOWN IN THE PROTOTYPE.</strong>'</p>
<p>When a prototype or example statement is too long to be easily shown on the screen or
printed, the line is split into multiple lines by showing '<strong>=</strong>>' at the end of
continued lines and indenting the continuation line(s):</p>
<pre>
"domain"[TAB]"account"[TAB]"enc-passwd"[TAB]"account-id"[TAB]"account-dir"[TAB]=>
"account-type"[NEWLINE]</pre>
<p>'<strong>DO NOT ENTER THE => CHARACTERS. ENTER THE ENTIRE ENTRY AS ONE LINE.</strong>'</p>
<p>[<a href="#__index__">top</a>]</p>
<p>
</p>
<hr />
<h1><a name="features">FEATURES</a></h1>
<ul>
<li>
<p>ESMTP/ESMTPS server</p>
</li>
<li>
<p>POP3/POP3S server</p>
</li>
<li>
<p>Finger server</p>
</li>
<li>
<p>Multiple domains</p>
</li>
<li>
<p>Users don't need a real system account</p>
</li>
<li>
<p>SMTP relay checking</p>
</li>
<li>
<p>Custom SMTP maps check</p>
</li>
<li>
<p>SMTP protection over spammers (IP based and address based)</p>
</li>
<li>
<p>SMTP authentication (PLAIN LOGIN CRAM-MD5 POP3/SMTP and custom)</p>
</li>
<li>
<p>SMTP ETRN command support</p>
</li>
<li>
<p>POP3 account synchronizer with external POP3 accounts</p>
</li>
<li>
<p>Account aliasing</p>
</li>
<li>
<p>Domain aliasing</p>
</li>
<li>
<p>Mailing lists</p>
</li>
<li>
<p>Custom mail processing</p>
</li>
<li>
<p>Locally generated mail files delivery</p>
</li>
<li>
<p>Remote administration</p>
</li>
<li>
<p>Custom mail exchangers</p>
</li>
<li>
<p>Logging</p>
</li>
<li>
<p>Multi platform (any Windows and almost any Unix OSs)</p>
</li>
<li>
<p>Fine grained message filters</p>
</li>
<li>
<p>Custom (external) POP3/SMTP authentication</p>
</li>
<li>
<p>TLS support for SMTP and POP3, both server and client side</p>
</li>
</ul>
<p>[<a href="#__index__">top</a>]</p>
<p>
</p>
<hr />
<h1><a name="porting_status">PORTING STATUS</a></h1>
<p>Right now the Linux and NT ports are stable, while the Solaris, FreeBSD, OpenBSD and OSX
ones have not been tested as well as the previous OSs.</p>
<p>[<a href="#__index__">top</a>]</p>
<p>
</p>
<hr />
<h1><a name="requirements">REQUIREMENTS</a></h1>
<ul>
<li>
<p>Any version of Linux that has glibc.</p>
</li>
<li>
<p>Windows NT with ws2_32.dll correctly installed.</p>
</li>
<li>
<p>A working DNS and gateway to the Internet (if you plan to use it).</p>
</li>
<li>
<p>To build from source for Linux you need any version of gcc and glibc installed.</p>
</li>
<li>
<p>To build from source for Windows you need MS Visual C++ (makefile included).</p>
</li>
<li>
<p>-or- any other working compiler that provides support for the Win32 SDK.</p>
</li>
</ul>
<p>[<a href="#__index__">top</a>]</p>
<p>
</p>
<hr />
<h1><a name="obtaining_the_source">OBTAINING THE SOURCE</a></h1>
<p>Always get the latest sources at the XMail home page <a href="http://www.xmailserver.org/">http://www.xmailserver.org/</a>
because otherwise you may be using an old version.</p>
<p>Use the correct distribution for your system and don't mix Unix files with
Windows ones because this is one of the most common cause of XMail bad behavior.</p>
<p>When you unzip (or untar) the package you've to check that the MailRoot
directory contained inside the package itself is complete (look at the directory tree
listed below) because some unzippers don't restore empty directories.</p>
<p>[<a href="#__index__">top</a>]</p>
<p>
</p>
<hr />
<h1><a name="build">BUILD</a></h1>
<p>XMail depends on OpenSSL to provide SSL support, so the development package of OpenSSL
(in Debian called libssl-dev) must be installed on your system. For Windows, the XMail
source already contains a pre-built version of the OpenSSL libraries, include files, and
executable. The OpenSSL web site can be found here <a href="http://www.openssl.org">http://www.openssl.org</a>.</p>
<p>[Windows]</p>
<pre>
You have to have the command line environment setup before (usually the vcvars32.bat
script inside the Visual C++ directory). You also need to copy the openSSL DLLs
(located in "win32ssl\dll") inside the same folder where the XMail.exe binary resides.</pre>
<pre>
C:> nmake /f Makefile.win
If once you run the XMail binaries, Windows complains about missing DLLs, your system
is probably missing the Microsoft CRT redistributable package, that you can download
here L<<a href="http://www.xmailserver.org/vcredist_x86.exe>">http://www.xmailserver.org/vcredist_x86.exe></a>;.</pre>
<p>[Linux]</p>
<pre>
# make -f Makefile.lnx</pre>
<p>[FreeBSD]</p>
<pre>
# setenv OSTYPE FreeBSD
# gmake -f Makefile.bsd</pre>
<p>or (depending on the shell):</p>
<pre>
# OSTYPE=FreeBSD gmake -f Makefile.bsd</pre>
<p>[OpenBSD]</p>
<pre>
# setenv OSTYPE OpenBSD
# gmake -f Makefile.bsd</pre>
<p>or (depending on the shell):</p>
<pre>
# OSTYPE=OpenBSD gmake -f Makefile.bsd</pre>
<p>[NetBSD]</p>
<pre>
# setenv OSTYPE NetBSD
# gmake -f Makefile.bsd</pre>
<p>or (depending on the shell):</p>
<pre>
# OSTYPE=NetBSD gmake -f Makefile.bsd</pre>
<p>[OSX]</p>
<pre>
# OSTYPE=Darwin make -f Makefile.bsd</pre>
<p>or (depending on the shell):</p>
<pre>
# setenv OSTYPE Darwin
# make -f Makefile.bsd</pre>
<p>[Solaris]</p>
<pre>
# make -f Makefile.sso</pre>
<p>Under Linux an init.d startup script is supplied (xmail) to allow you to run
XMail as a standard rc? daemon. You must put it into /etc/init.d (it depends on which
distro you're using) directory and then create K??xmail - S??xmail links into the
proper directories.</p>
<p>Under Windows NT/2000/XP the XMail's executable is a Win32 service by default and if
you want to have it built like a standard executable you've to comment the statement:</p>
<pre>
"#define SERVICE" in MainWin.cpp</pre>
<p>When it's built as a service (default) you can run:</p>
<pre>
XMail --install</pre>
<p>to install XMail as a manual startup service or:</p>
<pre>
XMail --install-auto</pre>
<p>to install XMail as an automatic startup service.</p>
<p>If you run '<strong>--install</strong>' and you want XMail to run at NT boot, you must go in
ControlPanel->Services and edit the startup options of XMail.
Once you have the service version of XMail you can run it in a 'normal' way by
executing:</p>
<pre>
XMail --debug [options]</pre>
<p>[<a href="#__index__">top</a>]</p>
<p>
</p>
<hr />
<h1><a name="configuration">CONFIGURATION</a></h1>
<p>
</p>
<h2><a name="linux_solaris_freebsd_openbsd">Linux/Solaris/FreeBSD/OpenBSD</a></h2>
<ol>
<li>
<p>Build XMail.</p>
</li>
<li>
<p>Log as root.</p>
</li>
<li>
<p>Copy the supplied MailRoot directory where you want it to reside (normally /var).</p>
</li>
<li>
<p>Do a
# chmod 700 /var/MailRoot
to setup MailRoot directory access rights.</p>
</li>
<li>
<p>Strip XMail executables if you want to reduce their sizes (strip filename).</p>
</li>
<li>
<p>Copy XMail executables to /var/MailRoot/bin.</p>
</li>
<li>
<p>If you have '<strong>inetd</strong>' installed, comment out the lines of '<strong>/etc/inetd.conf</strong>'
that involve SMTP, POP3, and Finger. Restart '<strong>inetd</strong>' (kill -HUP ...).</p>
</li>
<li>
<p>Since XMail uses syslog to log messages, enable syslogd if it's not running.</p>
</li>
<li>
<p>Setup the '<strong>SERVER.TAB</strong>' configuration file (after reading the rest of this
document well).</p>
</li>
<li>
<p>Add your users and domains (after reading the rest of this
document well).</p>
</li>
<li>
<p>Change or comment out (#) the example account in '<strong>ctrlaccounts.tab</strong>' by using
a non-trivial username and password.</p>
</li>
<li>
<p>Copy the xmail startup script to your init.d directory
(it's position depends on your distro).
If you've setup XMail to work in a subdirectory other than '<strong>/var/MailRoot</strong>' you
must edit the xmail startup script to customize its boot parameters.</p>
</li>
<li>
<p>Use the '<strong>sysv_inst.sh</strong>' shell script (from root user) to create SysV boot script -
unless your distro has other tools to do this.</p>
</li>
<li>
<p>To start XMail without reboot you can run (from root):
/etc/rc.d/init.d/xmail start
otherwise reboot your machine.</p>
</li>
<li>
<p>Setup the file '<strong>smtprelay.tab</strong>' if you want to extend mail relaying to IPs outside
of the internet's private IP blocks (or you want to deny even those - that comes enabled by
default with XMail).</p>
</li>
<li>
<p>Look at [<a href="#ssl_configuration">SSL CONFIGURATION</a>] for information about how to
create the required '<strong>server.key</strong>' and '<strong>server.cert</strong>' files.</p>
</li>
</ol>
<p>For further configuration options, please see the [<a href="#command_line">COMMAND LINE</a>] section.</p>
<p>[<a href="#configuration">configuration</a>] [<a href="#__index__">top</a>]</p>
<p>
</p>
<h2><a name="nt_win2k_xp">NT/Win2K/XP</a></h2>
<ol>
<li>
<p>Build XMail.</p>
</li>
<li>
<p>Copy the supplied MailRoot directory where you want it to reside (normally '<strong>C:\MailRoot</strong>').</p>
</li>
<li>
<p>Setup the MailRoot directory (and subdirectories and file) permissions to allow access
only to System and Administrators. Doing this you can run XMail as a console startup only
if you're Administrator (service startup as System).</p>
</li>
<li>
<p>Copy XMail executables to '<strong>C:\MailRoot\bin</strong>'. Also copy the OpenSSL DLLs located in
"win32ssl\dll" to '<strong>C:\MailRoot\bin</strong>'.</p>
</li>
<li>
<p>With '<strong>regedit</strong>', create '<strong>GNU</strong>' key inside '<strong>HKEY_LOCAL_MACHINE\SOFTWARE\</strong>' and then '<strong>XMail</strong>'
key inside '<strong>HKEY_LOCAL_MACHINE\SOFTWARE\GNU</strong>'.</p>
</li>
<li>
<p>Create a new string value named '<strong>MAIL_ROOT</strong>' inside '<strong>HKEY_LOCAL_MACHINE\SOFTWARE\GNU\XMail\</strong>'
with value '<strong>C:\MailRoot</strong>'.</p>
</li>
<li>
<p>Optionally create a new string value named '<strong>MAIL_CMD_LINE</strong>' inside
'<strong>HKEY_LOCAL_MACHINE\SOFTWARE\GNU\XMail\</strong>' to store your command line options
(read well the rest of this document).</p>
</li>
<li>
<p>Open an NT console (command prompt).</p>
</li>
<li>
<p>Go inside '<strong>C:\MailRoot\bin</strong>' and run:
XMail --install
for a manual startup, or:
XMail --install-auto
for an automatic startup.</p>
</li>
<li>
<p>If you have other services that provide the same functionality as XMail, that is
SMTP, POP3, or Finger servers, you must stop these services.</p>
</li>
<li>
<p>Setup the '<strong>SERVER.TAB</strong>' configuration option after reading the rest of this document
well.</p>
</li>
<li>
<p>Add your users and domains (after reading to the rest of this document well).</p>
</li>
<li>
<p>Setup file permissions of the '<strong>C:\MailRoot</strong>' directory to grant access only to
'<strong>SYSTEM</strong>' and '<strong>Domain Admins</strong>'.</p>
</li>
<li>
<p>Change or comment out (#) the example account in ctrlaccounts.tab by using a
non-trivial username and password.</p>
</li>
<li>
<p>To start XMail without reboot you can go to:
ControlPanel -> Services -> XMail server
and start the service, otherwise reboot your machine.</p>
</li>
<li>
<p>Setup the file '<strong>smtprelay.tab</strong>' if you want to extend mail relaying to IPs outside
of the internet's private IP blocks (or you want to deny even those - that comes enabled by
default with XMail).</p>
</li>
<li>
<p>Look at [<a href="#ssl_configuration">SSL CONFIGURATION</a>] for information about how to
create the required '<strong>server.key</strong>' and '<strong>server.cert</strong>' files.</p>
</li>
</ol>
<p>For further configuration options, please see the [<a href="#command_line">COMMAND LINE</a>] section.</p>
<p>[<a href="#configuration">configuration</a>] [<a href="#__index__">top</a>]</p>
<p>
</p>
<h2><a name="environment_variables">Environment variables</a></h2>
<dl>
<dt><strong><a name="mail_root" class="item">[MAIL_ROOT]</a></strong></dt>
<dd>
<p>If you want to start XMail as a simple test you must setup an environment variable
MAIL_ROOT that points to the XMail Server root directory.</p>
<p>Linux/etc.:</p>
<pre>
export MAIL_ROOT=/var/XMailRoot</pre>
<p>Windows:</p>
<pre>
set MAIL_ROOT=C:\MailRoot</pre>
</dd>
<dt><strong><a name="mail_cmd_line" class="item">[MAIL_CMD_LINE]</a></strong></dt>
<dd>
<p>Allows the user to specify extra command line parameters (they will be appended to the
ones specified in the command line).</p>
</dd>
<dt><strong><a name="xmail_pid_dir" class="item">[XMAIL_PID_DIR]</a></strong></dt>
<dd>
<p>Allows the user to specify the PID directory (Unix only ports). The specified directory must
NOT have the final slash (/) appended to the path.</p>
</dd>
</dl>
<p>[<a href="#configuration">configuration</a>] [<a href="#__index__">top</a>]</p>
<p>
</p>
<h2><a name="mailroot_structure">MailRoot structure</a></h2>
<p>Mail root directory contain these files:</p>
<pre>
aliases.tab <file>
aliasdomain.tab <file>
domains.tab <file>
dnsroots <file>
extaliases.tab <file>
mailusers.tab <file>
message.id <file>
pop3links.tab <file>
server.tab <file>
server.cert <file>
server.key <file>
smtpgw.tab <file>
smtpfwd.tab <file>
smtprelay.tab <file>
smtpauth.tab <file>
smtpextauth.tab <file>
userdef.tab <file>
ctrlaccounts.tab <file>
spammers.tab <file>
spam-address.tab <file>
pop3.ipmap.tab <file>
smtp.ipmap.tab <file>
ctrl.ipmap.tab <file>
finger.ipmap.tab <file>
filters.in.tab <file>
filters.out.tab <file>
filters.post-rcpt.tab <file>
filters.pre-data.tab <file>
filters.post-data.tab <file>
smtp.ipprop.tab <file>
smtp.hnprop.tab <file></pre>
<p>and these directories:</p>
<pre>
bin <dir>
cmdaliases <dir>
tabindex <dir>
dnscache <dir>
mx <dir>
ns <dir>
custdomains <dir>
filters <dir>
logs <dir>
pop3locks <dir>
pop3linklocks <dir>
pop3links <dir>
spool <dir>
local <dir>
temp <dir>
0 <dir>
0 <dir>
mess <dir>
rsnd <dir>
info <dir>
temp <dir>
slog <dir>
lock <dir>
mprc <dir>
froz <dir>
...
...
userauth <dir>
pop3 <dir>
smtp <dir>
domains <dir>
msgsync <dir></pre>
<p>and for each domain DOMAIN handled a directory (inside <strong>domains</strong>):</p>
<pre>
DOMAIN <dir>
userdef.tab <file>
mailproc.tab <file> [ optional ]</pre>
<p>inside of which reside, for each account ACCOUNT:</p>
<pre>
ACCOUNT <dir>
user.tab <file>
mlusers.tab <file> [ mailing list case ]
mailproc.tab <file> [ optional ]
pop3.ipmap.tab <file> [ optional ]</pre>
<p>and</p>
<pre>
mailbox <dir></pre>
<p>for mailbox structure, while:</p>
<pre>
Maildir <dir>
tmp <dir>
new <dir>
cur <dir></pre>
<p>for Maildir structure. The <strong>msgsync</strong> directory is used to store UIDL lists
for PSYNC accounts that require leaving messages on the server. Inside the <strong>msgsync</strong>
other directories will be created with the name of the remote server, directories that
will store UIDL DB files.</p>
<p>[<a href="#configuration">configuration</a>] [<a href="#__index__">top</a>]</p>
<p>
</p>
<h2><a name="configuration_tables">Configuration tables</a></h2>
<p>TAB ('<strong>something.tab</strong>') files are text files (in the sense meant by the OS in use:
<CR><LF> for NT and <CR> for Linux) with this format:</p>
<pre>
"value1"[TAB]"value2"[TAB]...[NEWLINE]</pre>
<p>The following sections explain each file's structure and use.</p>
<dl>
<dt><strong><a name="aliases_tab" class="item"><a href="#aliases_tab">ALIASES.TAB</a></a></strong></dt>
<dt><strong><a name="aliasdomain_tab" class="item"><a href="#aliasdomain_tab">ALIASDOMAIN.TAB</a></a></strong></dt>
<dt><strong><a name="domains_tab" class="item"><a href="#domains_tab">DOMAINS.TAB</a></a></strong></dt>
<dt><strong><a name="dnsroots" class="item"><a href="#dnsroots">DNSROOTS</a></a></strong></dt>
<dt><strong><a name="extaliases_tab" class="item"><a href="#extaliases_tab">EXTALIASES.TAB</a></a></strong></dt>
<dt><strong><a name="mailusers_tab" class="item"><a href="#mailusers_tab">MAILUSERS.TAB</a></a></strong></dt>
<dt><strong><a name="message_id" class="item"><a href="#message_id">MESSAGE.ID</a></a></strong></dt>
<dt><strong><a name="pop3links_tab" class="item"><a href="#pop3links_tab">POP3LINKS.TAB</a></a></strong></dt>
<dt><strong><a name="server_tab" class="item"><a href="#server_tab">SERVER.TAB</a></a></strong></dt>
<dt><strong><a name="smtpgw_tab" class="item"><a href="#smtpgw_tab">SMTPGW.TAB</a></a></strong></dt>
<dt><strong><a name="smtpfwd_tab" class="item"><a href="#smtpfwd_tab">SMTPFWD.TAB</a></a></strong></dt>
<dt><strong><a name="smtprelay_tab" class="item"><a href="#smtprelay_tab">SMTPRELAY.TAB</a></a></strong></dt>
<dt><strong><a name="smtpauth_tab" class="item"><a href="#smtpauth_tab">SMTPAUTH.TAB</a></a></strong></dt>
<dt><strong><a name="smtpextauth_tab" class="item"><a href="#smtpextauth_tab">SMTPEXTAUTH.TAB</a></a></strong></dt>
<dt><strong><a name="userdef_tab" class="item"><a href="#userdef_tab">USERDEF.TAB</a></a></strong></dt>
<dt><strong><a name="ctrlaccounts_tab" class="item"><a href="#ctrlaccounts_tab">CTRLACCOUNTS.TAB</a></a></strong></dt>
<dt><strong><a name="spammers_tab" class="item"><a href="#spammers_tab">SPAMMERS.TAB</a></a></strong></dt>
<dt><strong><a name="spam_address_tab" class="item"><a href="#spam_address_tab">SPAM-ADDRESS.TAB</a></a></strong></dt>
<dt><strong><a name="pop3_ipmap_tab" class="item"><a href="#pop3_ipmap_tab">POP3.IPMAP.TAB</a></a></strong></dt>
<dt><strong><a name="smtp_ipmap_tab" class="item"><a href="#smtp_ipmap_tab">SMTP.IPMAP.TAB</a></a></strong></dt>
<dt><strong><a name="ctrl_ipmap_tab" class="item"><a href="#ctrl_ipmap_tab">CTRL.IPMAP.TAB</a></a></strong></dt>
<dt><strong><a name="finger_ipmap_tab" class="item"><a href="#finger_ipmap_tab">FINGER.IPMAP.TAB</a></a></strong></dt>
<dt><strong><a name="user_tab" class="item"><a href="#user_tab">USER.TAB</a></a></strong></dt>
<dt><strong><a name="mlusers_tab" class="item"><a href="#mlusers_tab">MLUSERS.TAB</a></a></strong></dt>
<dt><strong><a name="mailproc_tab" class="item"><a href="#mailproc_tab">MAILPROC.TAB</a></a></strong></dt>
<dt><strong><a name="smtp_ipprop_tab" class="item"><a href="#smtp_ipprop_tab">SMTP.IPPROP.TAB</a></a></strong></dt>
<dt><strong><a name="smtp_hnprop_tab" class="item"><a href="#smtp_hnprop_tab">SMTP.HNPROP.TAB</a></a></strong></dt>
<dt><strong><a name="filters_in_tab" class="item"><a href="#filters_in_tab">FILTERS.IN.TAB</a></a></strong></dt>
<dt><strong><a name="filters_out_tab" class="item"><a href="#filters_out_tab">FILTERS.OUT.TAB</a></a></strong></dt>
<dt><strong><a name="filters_post_rcpt_tab" class="item"><a href="#filters_post_rcpt_tab">FILTERS.POST-RCPT.TAB</a></a></strong></dt>
<dt><strong><a name="filters_pre_data_tab" class="item"><a href="#filters_pre_data_tab">FILTERS.PRE-DATA.TAB</a></a></strong></dt>
<dt><strong><a name="filters_post_data_tab" class="item"><a href="#filters_post_data_tab">FILTERS.POST-DATA.TAB</a></a></strong></dt>
</dl>
<p>[<a href="#configuration">configuration</a>] [<a href="#__index__">top</a>]</p>
<p>
</p>
<h3><a name="aliases_tab">ALIASES.TAB</a></h3>
<pre>
"domain"[TAB]"alias"[TAB]"realaccount"[NEWLINE]</pre>
<p>Example:</p>
<pre>
"home.bogus" "davidel" "dlibenzi"</pre>
<p>define 'davidel' as alias for 'dlibenzi' in 'home.bogus' domain.</p>
<pre>
"home.bogus" "foo*bog" "homer@internal-domain.org"</pre>
<p>define an alias for all users whose name starts with '<strong>foo</strong>' and ends with '<strong>bog</strong>'
that points to the locally handled account '<strong>homer@internal-domain.org</strong>'.</p>
<pre>
"home.bogus" "??trips" "travels"</pre>
<p>define an alias for all users whose names start with any two chars and end with '<strong>trips</strong>'.
You can even have wildcards in the domain field, as:</p>
<pre>
"*" "postmaster" "postmaster@domain.net"</pre>
<p>You '<strong>CANNOT</strong>' edit this file while XMail is running because it is an indexed file.</p>
<p>[<a href="#configuration_tables">table index</a>] [<a href="#configuration">configuration</a>] [<a href="#__index__">top</a>]</p>
<p>
</p>
<h3><a name="aliasdomain_tab">ALIASDOMAIN.TAB</a></h3>
<pre>
"aliasdomain"[TAB]"realdomain"[NEWLINE]</pre>
<p>where '<strong>aliasdomain</strong>' can use wildcards:</p>
<pre>
"simpson.org" "simpson.com"
"*.homer.net" "homer.net"</pre>
<p>The first line defines '<strong>simpson.org</strong>' as an alias of '<strong>simpson.com</strong>' while the second remaps
all subdomains of '<strong>homer.net</strong>' to '<strong>homer.net</strong>'.</p>
<p>You '<strong>CANNOT</strong>' edit this file while XMail is running because it is an indexed file.</p>
<p>[<a href="#configuration_tables">table index</a>] [<a href="#configuration">configuration</a>] [<a href="#__index__">top</a>]</p>
<p>
</p>
<h3><a name="domains_tab">DOMAINS.TAB</a></h3>
<pre>
"domain"[NEWLINE]</pre>
<p>defines domains handled by the server.</p>
<p>[<a href="#configuration_tables">table index</a>] [<a href="#configuration">configuration</a>] [<a href="#__index__">top</a>]</p>
<p>
</p>
<h3><a name="dnsroots">DNSROOTS</a></h3>
<pre>
host</pre>
<p>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 = '.'.</p>
<p>[<a href="#configuration_tables">table index</a>] [<a href="#configuration">configuration</a>] [<a href="#__index__">top</a>]</p>
<p>
</p>
<h3><a name="extaliases_tab">EXTALIASES.TAB</a></h3>
<pre>
"external-domain"[TAB]"external-account"[TAB]"local-domain"[TAB]"local-user"[NEWLINE]</pre>
<p>Example:</p>
<pre>
"xmailserver.org" "dlibenzi" "home.bogus" "dlibenzi"</pre>
<p>This file is used in configurations in which the server does not run directly on Internet
(like my case) but acts as internal mail exchanger and external mail gateway.
This file defines 'Return-Path: <...>' mapping for internal mail delivery.
If you are using an Mail client like Outlook, Eudora, KMail ... you have to configure
your email address with the external account say 'dlibenzi@xmailserver.org'.
When you post an internal message to 'foo@home.bogus' the mail client puts your external
email address ('dlibenzi@xmailserver.org') in the 'MAIL FROM: <...>' SMTP request.
Now if the user 'foo' replies to this message, it replies to 'dlibenzi@xmailserver.org',
and then is sent to the external mail server.
With the entry above in '<strong>EXTALIASES.TAB</strong>' file the 'Return-Path: <...>' field is filled
with 'dlibenzi@home.bogus' that leads to an internal mail reply.</p>
<p>You '<strong>CANNOT</strong>' edit this file while XMail is running because it is an indexed file.</p>
<p>[<a href="#configuration_tables">table index</a>] [<a href="#configuration">configuration</a>] [<a href="#__index__">top</a>]</p>
<p>
</p>
<h3><a name="mailusers_tab">MAILUSERS.TAB</a></h3>
<pre>
"domain"[TAB]"account"[TAB]"enc-passwd"[TAB]"account-id"[TAB]"account-dir"[TAB]=>
"account-type"[NEWLINE]</pre>
<p>(remember, enter as one line.) Example:</p>
<pre>
"home.bogus" "dlibenzi" "XYZ..." 1 "dlibenzi" "U"</pre>
<p>defines an account 'dlibenzi' in domain 'home.bogus' with the encrypted password 'XYZ...',
user id '1' and mail directory 'dlibenzi' inside '<strong>$MAIL_ROOT/domains/home.bogus</strong>'.
To allow multiple domain handling the POP3 client must use the entire email address
for the POP3 user account; for example, if a user has email user@domain it must supply:</p>
<pre>
user@domain</pre>
<p>as POP3 account login.</p>
<p>The directory 'account-dir' '<strong>must</strong>' case match with the field 'account-dir' of this file.
Note that user id '<strong>must</strong>' be unique for all users (duplicate user ids are not allowed).
The user id 0 is reserved by XMail and cannot be used.</p>
<p>The last field 'U' is the account type:</p>
<pre>
"U" = User account
"M" = Mailing list account</pre>
<p>The encrypted password is generated by '<strong>XMCrypt</strong>' whose source is '<strong>XMCrypt.cpp</strong>'.
Even if external authentication is used (see <a href="#external_authentication">External Authentication</a>) this
file '<strong>must</strong>' contain an entry for each user handled by XMail.</p>
<p>You '<strong>CANNOT</strong>' edit this file while XMail is running because it is an indexed file.</p>
<p>[<a href="#configuration_tables">table index</a>] [<a href="#configuration">configuration</a>] [<a href="#__index__">top</a>]</p>
<p>
</p>
<h3><a name="message_id">MESSAGE.ID</a></h3>
<p>A file storing a sequential message number.
Set it at 1 when you install the server and leave it be handled by the software.</p>
<p>[<a href="#configuration_tables">table index</a>] [<a href="#configuration">configuration</a>] [<a href="#__index__">top</a>]</p>
<p>
</p>
<h3><a name="pop3links_tab">POP3LINKS.TAB</a></h3>
<pre>
"local-domain"[TAB]"local-account"[TAB]"external-domain"[TAB]=>
"external-account"[TAB]"external-crypted-password"[TAB]"authtype"[NEWLINE]</pre>
<p>(remember, enter as one line) where:</p>
<p>'<strong>authtype</strong>' = Comma-separated list of options:</p>
<dl>
<dt><strong><a name="clr" class="item">CLR</a></strong></dt>
<dd>
<p>Use clear-text USER/PASS authentication</p>
</dd>
<dt><strong><a name="apop" class="item">APOP</a></strong></dt>
<dd>
<p>Use POP3 APOP authentication (that does not send clear-text passwords over the wire).
Fall back to '<strong>CLR</strong>' if '<strong>APOP</strong>' is not supported</p>
</dd>
<dt><strong><a name="fapop" class="item">FAPOP</a></strong></dt>
<dd>
<p>Use POP3 APOP authentication (that does not send clear-text passwords over the wire).</p>
</dd>
<dt><strong><a name="stls" class="item">STLS</a></strong></dt>
<dd>
<p>Establish an SSL link with the server by issuing a POP3 STLS command.
Continue with the non-encrypted link if STLS is not supported</p>
</dd>
<dt><strong><a name="fstls" class="item">FSTLS</a></strong></dt>
<dd>
<p>Establish an SSL link with the server by issuing a POP3 STLS command.</p>
</dd>
<dt><strong><a name="pop3s" class="item">POP3S</a></strong></dt>
<dd>
<p>Establish a full POP3S connection with the remote server.</p>
</dd>
<dt><strong><a name="leave" class="item">Leave</a></strong></dt>
<dd>
<p>Leave messages on the server, and download only the new ones. In order for this
functionality to work, the remote POP3 server must support the UIDL command.</p>
</dd>
<dt><strong><a name="outbind" class="item">OutBind</a></strong></dt>
<dd>
<p>Sets the IP address of the network interface that should be used when connecting
to the remote host. This configuration should be used carefully, because XMail
will fail if the selected IP of the interface does not have a route to the remote
host using such IP.</p>
</dd>
</dl>
<p>Examples:</p>
<pre>
"home.bogus" "dlibenzi" "xmailserver.org" "dlibenzi" "XYZ..."=>
"APOP"</pre>
<p>This entry is used to synchronize the external account 'dlibenzi@xmailserver.org' with encrypted
password 'XYZ...' with the local account 'dlibenzi@home.bogus' using '<strong>APOP</strong>' authentication.