TAILIEUCHUNG - Professional Information Technology-Programming Book part 132

Tham khảo tài liệu 'professional information technology-programming book part 132', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | The default MDA in OpenBSD is popa3d but it s pretty limited so some tips on installing and configuring the IMAP and POP3 portions of Courier and Cyrus are also below. . popa3d This is OpenBSD s default POP3 MDA. You could read the popa3d manpage and then figure out a good command to put into etc to start it at boot time but it s more easily initialized through inetd. Edit etc and uncomment this line pop3 stream tcp nowait root usr sbin popa3d popa3d popa3d requires no configuration because it only fetches mail from local mailboxes so you have to have a user account on the system with a non-null password. It s pretty simple and should do perfectly for most servers that only need email for a small number of users. If you need IMAP or if you need something a little more complex you should probably use Courier-IMAP instead. . Courier-IMAP Technically Courier is a complete MTA but many people just use the MDA portion of it to deliver messages to local or virtual user accounts. In OpenBSD only the MDA portion of Courier Courier-IMAP is available and it s in usr ports mail courier-imap. Before you install it make sure you check out the pkg directory and the Makefile to see what flavors are available. Specifically you can build in support for LDAP MySQL PostgreSQL and POP3. At the end of the Courier-IMAP installation you ll be given a screenful of instructions. Basically they are 1. Make a configuration directory 2. mkdir etc courier-imap 3. Copy over the default configuration files to it 4. cp usr local share examples courier-imap etc courier-imap 5. Put this line in etc to start Courier-IMAP at boot time 6. mkdir -p var run courier-imap usr local libexec authlib authdaemond start 7. Edit your config files in etc courier-imap then generate OpenSSL certificates with the mkimapdcert script. . Cyrus-IMAPd There s a memory mapping incompatibility between Cyrus and OpenBSD so if you use this MDA you could have some performance .