共 2450 篇文章

标签:配置 第92页

linux邮件服务器搭建

使用postfix(提供**tp服务)、squirrelmail(提供web方式收发邮件)、dovecot(IMAP、pop3)、cyrus-imapd(创建邮箱用户)、saslauthd软件来实现。 (注意:在安装linux的时候,把防火墙和selinux设为禁止,我当时没把selinux设为禁止,当时头都做大了) 1。sendmail把系统的25和110端口给占用了,所以先要将sendmail服务停止并卸载: service sendmail stop rpm -e sendmail 2.postfix服务的搭建与配置    一:首先要挂载光盘     mount /dev/cdrom /mnt    二:安装postfix     rpm -ivh /mnt/Server/postfix…    三:配置postfix     vi /etc/postfix/mail.cf(建议把里面的内容全删了)     #myhostname = mail.fu.com     #mydomain = fu.com     #myorgin =$mydomain     #inet_interfaces =all     #mydestination =$myhostname,$mydomain     #mynetworks = 192.168.1.0/24,127.0.0.0/8     #relay_domains = fu.com     四:开启postfix     service postfix start     chkconfig postfix on 3.**tp安装配置(发邮件的)     一:安装**tp     rpm –ivh /mnt/Server/cyrus-sasl….     二:配置**tp     vi /etc/sysconfig/saslauthd     #socketdir=/var/run/saslauthd     #mech=shadow     三:开启**tp     service saslauthd start     chkconfig saslauthd on     四:配置/etc/postfix/main.cf(一定要按照顺序配置main.cf,别一下把main.cf全配了,不能你的postfix是启动不了的)     **tpd_sasl_auth_enable =yes     **tpd_sasl_local_domain =’’     **tpd_recipient_restrictions =permit_mynetworks,     sermit_sal_authenticated,reject_unauth_destination(注意这行和上一行是一起的,是连在一起的,假如这样分段写postfix启动会失败的 我上次就犯了这种错误,能后用冒泡的方法找出来的)     broken_sasl_auth_clients = yes **tpd_client_restrictions = permit_sasl_authenticated **tpd_sasl_security_options = noanonymous mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp     五:记得要重启postfix     service postfix restart 4.devecot安装(这是pop3接收邮件的)     一:安装devecot     yum  install dovecot*(yum安装下次会说)     二:配置dovecot(配置文件/etc/dovecot.conf)     protocols = pop3 pop3s; protocol pop3 { listen = *:10100 };  三:启动dovecot     service dovecot start chkconfig dovecot on  四:安装cyrus-imapd     要安装的包cyrus-imapd-perl-2.3.7-7.el5.i386.rpm     cyrus-imapd-utils-2.3.7-7.el5.i386.rpm     cyrus-imapd-2.3.7-7.el5.i386.rpm...

网络杂谈