CentOS安装maildrop下载生成RPM与创建maildrop rpm

系统 Linux
CentOS安装maildrop下载生成RPM[root@localhost postfix]# cd [root@localhost ~]# wget http://prdownloads.sourceforge.net/courier/maildrop-2.0.4.tar.bz2

经过长时间学习CentOS安装maildrop,你可能会遇到CentOS安装maildrop下载问题,这里将介绍CentOS安装maildrop问题的解决方法,他的缩写既是CentOS。CentOS社区将Redhat的网站上的所有源代码下载下来,进行重新编译。操作系统CentOS安装maildrop。

A、CentOS安装maildrop下载生成RPM
[root@localhost postfix]# cd
[root@localhost ~]# wget http://prdownloads.sourceforge.net/courier/maildrop-2.0.4.tar.bz2
[root@localhost ~]# cp maildrop-2.0.4.tar.bz2 $SOURCE
[root@localhost ~]# tar xjf maildrop-2.0.4.tar.bz2
[root@localhost ~]# cd maildrop-2.0.4
[root@localhost maildrop-2.0.4]# cp maildrop.spec $SPEC
[root@localhost maildrop-2.0.4]# cd $SPEC

CentOS安装编辑maildrop.spec 把下面:
BuildRequires: /usr/include/fam.h gdbm-devel pcre-devel
改为:
BuildRequires:  gdbm-devel pcre-devel
把下面:
%configure --with-devel --enable-userdb --enable-maildirquota  \
--enable-syslog=1 --enable-trusted-users='root mail daemon postmaster qmaild mmdf' \
--enable-restrict-trusted=0 \
--enable-sendmail=/usr/sbin/sendmail
改为:
%configure --with-devel --enable-userdb --enable-maildirquota \
--enable-syslog=1 --enable-trusted-users='root mail daemon postmaster qmaild mmdf' \
--enable-restrict-trusted=0 --enable-sendmail=/usr/sbin/sendmail \
--enable-authlib

B、CentOS安装创建maildrop rpm
[root@localhost SPECS]# yum -y install pcre-devel
[root@localhost SPECS]# rpmbuild -bb maildrop.spec
[root@localhost SPECS]# cd $RPMS/i386
[root@localhost i386]# rpm -ivh maildrop-2.0.4-1.i386.rpm

C、CentOS安装添加虚似用户及创建目录
[root@localhost i386]# cd
[root@localhost ~]# groupadd -g 1000 vgroup
[root@localhost ~]# useradd -g 1000 -u 1000 -s /sbin/nologin -d /dev/null vuser
编辑/etc/postfix/master.cf ,加入下面的内容:
maildrop unix -     n     n     -     -     pipe
flags=DRhu user=vuser argv=/usr/bin/maildrop -d ${user}@${nexthop} ${recipient} ${user} ${extension} ${nexthop}

D、CentOS安装创建邮件存储目录
[root@localhost ~]# mkdir -p /home/data/domains/extmail.org/postmaster
[root@localhost ~]# maildirmake /home/data/domains/extmail.org/postmaster/Maildir
[root@localhost ~]# chown -R vuser:vgroup /home/data/domains/   

E、CentOS安装测试maildrop
[root@localhost ~]# echo "test" | maildrop -V 10 -d postmaster@extmail.org
maildrop: authlib: groupid=1000
maildrop: authlib: userid=1000
maildrop: authlib: logname=postmaster@extmail.org, home=/home/data/domains/extmail.org/postmaster, mail=/home/data/domains/extmail.org/postmaster/Maildir/
maildrop: Changing to /home/data/domains/extmail.org/postmaster
Message start at 0 bytes, envelope sender=postmaster@extmail.org
maildrop: Attempting .mailfilter
maildrop: Delivery complete.
出现上以信息说明authlib,maildrop 工作正常

F、CentOS安装测试pop3
[root@localhost ~]# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
+OK Hello there.
user postmaster@extmail.org
+OK Password required.
pass extmail
+OK logged in.
list
+OK POP3 clients that break here, they violate STD53.
1 6
.
retr 1
+OK 6 octets follow.
test
.
quit
+OK Bye-bye.
Connection closed by foreign host.

G、CentOS安装测试postfix
[root@localhost ~]# perl -MMIME::Base64 -e 'print encode_base64("postmaster\@extmail.org");'
cG9zdG1hc3RlckBleHRtYWlsLm9yZw==
[root@localhost ~]# perl -MMIME::Base64 -e 'print encode_base64("extmail");'               
ZXh0bWFpbA==
[root@localhost ~]# service postfix restart (重启一下)
[root@localhost ~]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 yiyou.org ESMTP Mail System
ehlo test.com
250-mail.yiyou.org
250-PIPELINING
250-SIZE 14680064
250-VRFY
250-ETRN
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
auth login
334 VXNlcm5hbWU6
cG9zdG1hc3RlckBleHRtYWlsLm9yZw==
334 UGFzc3dvcmQ6
ZXh0bWFpbA==
235 2.7.0 Authentication successful
quit
221 2.0.0 Bye
Connection closed by foreign host

【编辑推荐】

  1. CentOS安装配置安装相关系统
  2. 引导CentOS安装VMWare Tools进程管理
  3. CentOS postfix安装创建rpm与切换mta
  4. CentOS5.3安装Oracle过程讲解与创建软件账户
  5. CentOS VSFTPD安装时RPM软件包安装的方法
责任编辑:佚名 来源: CSDN
相关推荐

2010-01-14 12:15:10

CentOS post

2010-02-22 18:35:01

2010-01-14 11:23:55

cyrus-sasl安

2010-01-15 10:16:50

CentOS rpm安

2010-01-14 10:55:34

CentOS auth

2010-01-14 11:09:01

COURIER-ima

2011-01-21 09:00:21

sendmail

2010-01-14 10:32:19

CentOS RPM安

2010-01-14 09:48:05

CentOS VSFT

2016-11-09 09:10:55

CentOSRPMFedora

2021-07-09 07:40:06

CentOS 7GitLab开源

2010-02-04 14:06:01

Linux rpm包

2017-11-21 09:30:06

CentOSRedHatrpm包

2015-03-23 13:15:55

yumRPM

2010-03-02 10:44:52

Linux rpm

2011-05-04 09:11:30

RPM包Linux

2010-01-11 10:23:14

linuxrpm包

2010-06-02 13:05:14

Sendmail 安装

2011-01-10 11:29:01

linuxRPM

2019-11-05 10:55:05

RPM包RPMLinux
点赞
收藏

51CTO技术栈公众号