首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >smarthost外部smtp服务器的exim4身份验证

smarthost外部smtp服务器的exim4身份验证
EN

Server Fault用户
提问于 2022-07-10 22:21:21
回答 1查看 837关注 0票数 0

/etc/exim4/update-exim4.conf.conf

代码语言:javascript
复制
dc_eximconfig_configtype='smarthost' # was local
dc_other_hostnames='' # was mini31
dc_local_interfaces='127.0.0.1 ; ::1'
dc_readhost='mini31'
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost='send.one.com:465' # Yes, two colons.
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname='true'
dc_mailname_in_oh='true'
dc_localdelivery='mail_spool'

/etc/exim/passwd.client

代码语言:javascript
复制
target:send.one.com:my-real-address@something.com:MyTopSecretPassword

/etc/email-addresses

代码语言:javascript
复制
localusername:my-real-address@something.com

/var/log/exim4/mainlog

代码语言:javascript
复制
2022-07-10 23:03:49 1oAf1p-0004w0-GD <= my-real-address@something.com U=rwb P=local S=355
2022-07-10 23:03:49 1oAf1p-0004w0-GD H=send.one.com [2a02:2350:5:20e::2] Network is unreachable
2022-07-10 23:03:49 1oAf1p-0004w0-GD H=send.one.com [2a02:2350:5:20e::1] Network is unreachable

或者有时候

代码语言:javascript
复制
mini31 # tail /var/log/exim4/mainlog
2022-07-10 23:05:28 1oAf1p-0004w0-GD Spool file is locked (another process is handling this message)
2022-07-10 23:05:28 End queue run: pid=19276
2022-07-10 23:08:49 1oAf1p-0004w0-GD H=send.one.com [46.30.211.141]: SMTP timeout after initial connection: Connection timed out
2022-07-10 23:08:49 1oAf1p-0004w0-GD == my-real-address@something.com R=smarthost T=remote_smtp_smarthost defer (110): Connection timed out H=send.one.com [46.30.211.141]: SMTP timeout after initial connection
2022-07-10 23:10:58 exim 4.92 daemon started: pid=19694, -q30m, listening for SMTP on [127.0.0.1]:25 [::1]:25
2022-07-10 23:10:58 Start queue run: pid=19695
2022-07-10 23:10:58 1oAf1p-0004w0-GD == my-real-address@something.com R=smarthost T=remote_smtp_smarthost defer (-53): retry time not reached for any host for 'rwb.me.uk'
2022-07-10 23:10:58 End queue run: pid=19695
2022-07-10 23:11:26 1oAf9C-00057u-P5 <= root@mini31 U=root P=local S=330
2022-07-10 23:11:26 1oAf9C-00057u-P5 == my-real-address@something.com R=smarthost T=remote_smtp_smarthost defer (-53): retry time not reached for any host for 'rwb.me.uk'

**邮件发送失败:向发件人返回消息**

代码语言:javascript
复制
...
  my-real-address@something.com
    host send.one.com [46.30.211.141]
    SMTP error from remote mail server after pipelined end of data:
    530 5.7.0 Authentication required
...
代码语言:javascript
复制
mini31 # mailq
12m   355 1oAf1p-0004w0-GD <my-real-address@something.com> (rwb)
          my-real-address@something.com

 4m   330 1oAf9C-00057u-P5 <root@mini31>
          my-real-address@something.com

问题

WTF正在进行,为什么不起作用?

One.com似乎是说端口465和SSL/TLS。我是否需要以某种方式将SSL/TLS输入exim4?我很确定他们需要的地址是我的真实地址@omething.com-我需要设置这个地址吗?

我需要从mail1q中删除垃圾吗?

EN

回答 1

Server Fault用户

发布于 2022-07-11 20:43:03

不是target: in passwd.client

使用satellite而不是smarthost,因为不需要本地邮件--所有东西都应该转到真正的地址。

dc_other_hostnames改为mini31dc_readhost改为omething.com。不知道为什么,不清楚这些是做什么的。

票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/1105243

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档