如何使用Gophish搭建并高效运营钓鱼邮件平台?
摘要:钓鱼邮件平台搭建 一、搭建环境 VM-4-11-centos 3.10.0-1160.95.1.el7.x86_64 Uname -a 查询服务器内核版本 腾讯云域名 公网服务器 二、搭建个人邮件服务器 2.1配置域名解析 选择域名,如ab
钓鱼邮件平台搭建
一、搭建环境
VM-4-11-centos 3.10.0-1160.95.1.el7.x86_64 Uname -a 查询服务器内核版本
腾讯云域名
公网服务器
二、搭建个人邮件服务器
2.1配置域名解析
选择域名,如abc.com
①.添加MX记录
-记录类型:MX
- 主机记录:@
- 记录值:mail.abc.com
- MX优先级:1
②添加A记录
-记录类型:A
- 主机记录:mail
- 记录值:服务器IP
- TTL:10分钟
③添加SPF记录
-记录类型:TXT
- 主机记录:@
- 记录值:v=spf1 mx:mail.abc.com ip4:服务器IP -all
- TTL:10分钟
此处使用腾讯云域名
2.2 安装Postfix、Dovecot、cyrus-sasl
yum update -y
yum -y install postfix dovecot cyrus-sasl
配置Postfix
(1). vim /etc/postfix/main.cf
# 修改以下项,注释的解开,不要有重复项
# 设置为 mail.域名
myhostname = mail.abc.com
# 设置为 域名
mydomain = abc.com
# 往外发邮件的邮件域
myorigin = $mydomain
#监听的网卡
inet_interfaces = all
inet_protocols = ipv4
#服务的对象
mydestination = $myhostname, $mydomain, localhost.$mydomain, localhost
#邮件存放的目录
home_mailbox = Maildir/
# 新添加以下配置
#--------自定义(下面可以复制粘贴到文件最后面,用于设置服务器验为主,第一行设置发送附件大小)
#message_size_limit = 100000
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous,noplaintext
mynetworks = 127.0.0.0/8
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_tls_security_options = noanonymous
broken_sasl_auth_clients = yes
relayhost =
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
smtpd_use_tls = yes
smtpd_tls_cert_file = /etc/ssl/certs/server.crt
smtpd_tls_key_file = /etc/ssl/private/server.key
smtpd_tls_security_level = may
smtp_tls_note_starttls_offer = yes
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_auth_only = yes
配置开启smtps
(2). 最后检查Postfix配置是否正确
postfix check
配置Dovecot
(1). 修改主配置文件
vim /etc/dovecot/dovecot.conf
# 注释的解开注释,不要有重复项
protocols = imap pop3 lmtp
listen = *, ::
# 以下内容添加到文件最后
mail_location = maildir:~/Maildir
(2). 设置邮箱目录
vim /etc/dovecot/conf.d/10-mail.conf
# 设置mail_location为
mail_location = maildir:~/Maildir
(3
