我在 VPS 上安装并运行了 Postfix 和 Dovecot。从VPS使用 telnet 一次,从客户端机器使用一次,我正在编写完全相同的消息。一切正常,但是从客户端发送时,电子邮件会转到 Gmail 的垃圾邮件。
telnet mydomain.com 587
mail.log 中只有一件事与我从 VPS 发送时不同,消息 ID 为空:
Aug 26 13:13:37 server postfix/smtpd[32197]: connect from 1-2-3-4.my.domain.com[1.2.3.4]
Aug 26 13:14:06 server postfix/smtpd[32197]: D762C582448: client=1-2-3-4.my.domain.com[1.2.3.4], sasl_method=plain, sasl_username=user@example.com
Aug 26 13:14:14 server postfix/cleanup[32211]: D762C582448: **message-id=<>**
Aug 26 13:14:14 server postfix/qmgr[32195]: D762C582448: from=<user@example.com>, size=300, nrcpt=1 (queue active)
Aug 26 13:14:15 server postfix/smtp[32213]: D762C582448: to=<example_user@gmail.com>, relay=gmail-smtp-in.l.google.com[74.125.53.27]:25, delay=11, delays=9.9/0.07/0.55/0.69, dsn=2.0.0, status=sent (250 2.0.0 OK 1314353655 …Run Code Online (Sandbox Code Playgroud) 我有一个邮件域和两台带有 Centos 6.4 和公共 IP 地址的服务器(机器)。两者都安装了 Postfix 邮件服务器和 Dovecot IMAP/POP3 服务器。
我将如何冗余设置它们,以便它们永久同步,以便我可以使用它们中的任何一个进行发送和接收,并且如果其中一台服务器出现故障,则不会出现明显的中断?收件箱和所有邮件是否应该存储在两台服务器上以实现冗余?
我使用 fail2ban 运行 CentOS 5 服务器,目前我的 dovecot 服务遭到暴力攻击。
我知道fail2ban 正在工作,因为它阻止了对我的FTP 服务器和Postfix 的攻击。出于某种原因,我错过了 dovecot 的一些东西,因为 fail2ban 日志中没有任何内容,并且攻击继续有增无减。
我的日志如下。Dovecot 将所有内容记录到 - /var/log/dovecot-info.log
我看到两种类型的日志。第一个看起来像这样(注意:我的服务器 Ip 没问题 - 我已经用 xxx.xxx.xxx 屏蔽了更精细的细节):
Feb 22 21:48:21 pop3-login: Info: Aborted login (auth failed, 1 attempts): user=<felix>, method=PLAIN, rip=177.19.151.139, lip=173.xxx.xxx.xxx
Feb 22 21:48:23 auth: Info: passwd-file(felipe,177.19.151.139): unknown user
Feb 22 21:48:25 pop3-login: Info: Aborted login (auth failed, 1 attempts): user=<felipe>, method=PLAIN, rip=177.19.151.139, lip=173.xxx.xxx.xxx
Feb 22 21:48:29 auth: Info: passwd-file(felix,177.19.151.139): unknown user
Feb 22 21:48:31 pop3-login: Info: Aborted login …Run Code Online (Sandbox Code Playgroud) 我按照这个 ( https://workaround.org/ispmail/squeeze/big-picture ) 教程来设置我的邮件服务器,它运行良好。
我希望能够拒绝来自某些用户的电子邮件,或者它包含某些字符串或者标题是否匹配。
这可能吗?
我正在为用户使用 MySQL,并且处于多域环境中。
我正在尝试启用 postfix 身份验证。我正在编辑本节/etc/dovecot/conf.d/10-master.conf
# Postfix smtp-auth
unix_listener /var/spool/postfix/private/auth {
mode = 0666
user = postfix
group = postfix
}
Run Code Online (Sandbox Code Playgroud)
但是在我重新启动 dovecot 后,我收到此错误:
Starting Dovecot Imap: doveconf: Fatal: Error in configuration file /etc/dovecot/conf.d/10-master.conf line 88: Unknown setting: unix_listener
[FAILED]
Run Code Online (Sandbox Code Playgroud) 我正在新的操作系统中安装新的邮件服务器 (Postfix/Dovecot+Maildir)。
使用 Thunderbird(或 Squirrelmail)我可以发送邮件,但即使我可以在/home/<mailuser>/Maildir/new.
可能是什么问题呢?如有必要,我会附上任何 conf 文件。
编辑:dovecot 配置mail_location = maildir:/%Lh/Maildir/:INDEX=/%Lh/Maildir/
就像 Damiano 说的那样,Postfix 和 Dovecot 邮件文件夹不匹配。
原标题:IMAP 连接 Dovecot 仅从 Thunderbird 失败
我在端口 993 上设置了带有 SSL (TLS) 的 Dovecot。我可以连接 Outlook、PHP SMTP 和 Android Mail,但是 Thunderbird 无法连接。它说Configuration could not be verified - is the username or password wrong?。Dovecot 错误日志显示:
Jan 05 22:41:45 imap-login: Warning: SSL: where=0x10, ret=1: before/accept initialization [1.2.3.4]
Jan 05 22:41:45 imap-login: Warning: SSL: where=0x2001, ret=1: before/accept initialization [1.2.3.4]
Jan 05 22:41:45 imap-login: Warning: SSL alert: where=0x4008, ret=598: fatal unknown [1.2.3.4]
Jan 05 22:41:45 imap-login: Warning: SSL: where=0x2002, ret=-1: SSLv3 read client …Run Code Online (Sandbox Code Playgroud) 我试图意识到哪个配置告诉了 cur、tmp 和 new 的创建位置。当然,我一直在使用虚拟用户,我接收和发送邮件到virtualuser/domain/user/Maildir/new和virtualuser/Maildir/cur(我认为virtualuser/domain/user/Maildir/tmp是非常临时的,从来没有收到和发送电子邮件)但是当我使用 Postfixadmin 创建一个新邮箱时,它是这样创建的
virtualuser/domain/user/tmp
virtualuser/domain/user/new
virtualuser/domain/user/cur
Run Code Online (Sandbox Code Playgroud)
然后我只需要将这个树文件夹移动到里面
virtualuser/domain/user/Maildir (this is how i would I would like to be created) so I would have:
virtualuser/domain/user/Maildir/cur
virtualuser/domain/user/Maildir/tmp
virtualuser/domain/user/Maildir/new
Run Code Online (Sandbox Code Playgroud)
那么在哪个配置文件中有这个设置呢?是 Postfix、Dovecot 还是 Postfixadmin?
另外我有这个conf:
# Postfix:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
inet_protocols = all
local_recipient_maps = $virtual_mailbox_maps
local_transport …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用postfix,Dovecot和squirrel mailUbuntu 14.04创建我的第一个邮件服务器
首先,我是否按照此页面上的本教程进行操作。 http://www.tecmint.com/setup-postfix-mail-server-in-ubuntu-debian/
我在我的 linux 服务器上创建了一个名为 nicolai 的用户,并使用我用来登录 squirrelmail 的随机密码。
但我不断收到此错误:
ERROR: Could not complete request.
Query: SELECT "INBOX"
Reason Given: [SERVERBUG] Internal error occurred. Refer to server log for more information. [2015-08-11 17:31:42]
Run Code Online (Sandbox Code Playgroud)
我的日志文件给了我这个错误:
Aug 11 17:31:44 remedy dovecot: imap(nicolai): Error: open(/var/mail/nicolai) failed: Permission denied (euid=1001(nicolai) egid=1002(nicolai) missing +w perm: $var/mail, we're not in group 8(mail), dir owned by 0:8 mode=0775)
Aug 11 17:31:44 remedy dovecot: imap(nicolai): Error: Failed to autocreate …Run Code Online (Sandbox Code Playgroud) 第一次在运行最新 Ubuntu 的机器上设置我自己的邮件服务器
环顾四周后,我决定使用 dovecot + postfix 和在 /var/mail/vmail/%d/%n 中有邮箱的虚拟用户
在大多数情况下,我遵循了此处找到的收回电子邮件教程系列
我注意到当我尝试通过 IMAP 连接到 me@mydomain.com 时,会创建正确的目录结构,因此 /var/mail/vmail/mydomain.com/me 存在并且其中包含所需的文件。
但是,当我通过 SMTP 在该服务器上接收邮件时,从 Postfix 到 Dovecot 的整个命令链中似乎有一个点,其中域部分 %d 变为空,因此它尝试访问和创建错误的目录并失败这个错误:
Jan 25 17:47:35 lda(me): Debug: Effective uid=1000, gid=1000, home=/home/me
Jan 25 17:47:35 lda(me): Debug: Namespace inbox: type=private, prefix=, sep=, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:/var/mail/vmail//me/mail:LAYOUT=fs
Jan 25 17:47:35 lda(me): Debug: fs: root=/var/mail/vmail//me/mail, index=, indexpvt=, control=, inbox=/var/mail/vmail//me/mail, alt=
Jan 25 17:47:35 lda(me): Debug: Namespace : /var/mail/vmail//me/mail doesn't exist yet, using default …Run Code Online (Sandbox Code Playgroud) dovecot ×10
postfix ×8
email ×4
email-server ×2
imap ×2
maildir ×2
cluster ×1
fail2ban ×1
filter ×1
smtp ×1
squirrelmail ×1
ssl ×1
thunderbird ×1
ubuntu ×1
ubuntu-14.04 ×1