小编Dan*_*ngs的帖子

使用 Telnet 发送到 Gmail 时拒绝 Postfix 中继访问

我有 postfix 和 dovecot 设置来处理我的域的邮件。imap 在阅读本地邮件时似乎工作正常,但是当我尝试使用带有 localhost 和 smtp 端口的 telnet 发送电子邮件时,它给了我中继访问被拒绝的错误。

    [root@vps69576 ~]# telnet localhost smtp
    Trying ::1...
    Connected to localhost.
    Escape character is '^]'.
    220 mail.domain.net ESMTP Postfix
    ehlo domain.net
    250-mail.domain.net
    250-PIPELINING
    250-SIZE 10240000
    250-VRFY
    250-ETRN
    250-AUTH PLAIN LOGIN
    250-AUTH=PLAIN LOGIN
    250-ENHANCEDSTATUSCODES
    250-8BITMIME
    250 DSN
    mail to:
    501 5.5.4 Syntax: MAIL FROM:<address>
    mail from:dan@domain.net
    250 2.1.0 Ok
    rcpt user@gmail.com
    554 5.7.1 <user@gmail.com>: Relay access denied
Run Code Online (Sandbox Code Playgroud)

main.cf 文件的内容是

queue_directory = /var/spool/postfix

command_directory = /usr/sbin

daemon_directory = /usr/libexec/postfix

data_directory = …
Run Code Online (Sandbox Code Playgroud)

telnet email imap smtp postfix

2
推荐指数
1
解决办法
2万
查看次数

标签 统计

email ×1

imap ×1

postfix ×1

smtp ×1

telnet ×1