首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >家庭服务器上带有本地后缀的Fetchmail

家庭服务器上带有本地后缀的Fetchmail
EN

Unix & Linux用户
提问于 2015-11-16 17:34:36
回答 2查看 7.1K关注 0票数 1

一个小问题..。我有一个完全配置的后缀服务器,它有几个域,很少的用户,还有更多。

然后我有一个智能主机,接收所有的邮件和发送所有的邮件。例如,1和1.com或者其他类似的东西。

HomeServer后缀将此主机配置为SmartHost (= RelayHost)。所以所有寄出的邮件都会通过这个主机发送。

对于收到的邮件,我有一个外部POP3帐户来托管。就像catch-all@example.org。

通过获取邮件,我想从catch all中检索所有邮件,并通过POSTFIX将其传递给本地用户。(或者直接用多维柯!?)

因此,POP3帐户包含一个邮件,如:"FROM: noreply@stackexchange.com\n RCPT TO: person@example.org“

获取邮件应该检索此邮件并“发送”/转发/保存邮件地址为"person@example.org“的用户收件箱中的邮件。

获取邮件的配置:

代码语言:javascript
复制
set daemon        300                # Pool every 5 minutes
set syslog                        # log through syslog facility
set postmaster  root

set no bouncemail                # avoid loss on 4xx errors
defaults:
timeout 300
antispam -1
batchlimit 100

poll pop.1and1.com protocol POP3 user "*@example.org" there with password "Passw0rd!" ssl fetchall

日志上写着:

代码语言:javascript
复制
Nov 16 18:20:23 core fetchmail[61595]: 3 Messages for *@example.org on pop.1and1.com (21260 Bytes).
Nov 16 18:20:23 core fetchmail[61595]: Message *@example.org@pop.1and1.com:1 of 3 (3907 Bytes) deleted
Nov 16 18:20:23 core postfix/local[56731]: 294BE15C0866: to=<fetchmail@localhost>, relay=local, delay=0.42, delays=0.27/0/0/0.15, dsn=2.0.0, status=sent (delivered to mailbox)
Nov 16 18:20:23 core fetchmail[61595]: Message *@example.org@pop.1and1.com:2 of 3 (4516 Bytes) deleted
Nov 16 18:20:23 core postfix/local[56575]: 7496F15C0876: to=<fetchmail@localhost>, relay=local, delay=0.3, delays=0.27/0/0/0.03, dsn=2.0.0, status=sent (delivered to mailbox)
Nov 16 18:20:23 core fetchmail[61595]: Message *@example.org@pop.1and1.com:3 of 3 (12837 Bytes) deleted
Nov 16 18:20:24 core postfix/local[56731]: C11DC15C0866: to=<fetchmail@localhost>, relay=local, delay=0.24, delays=0.2/0/0/0.04, dsn=2.0.0, status=sent (delivered to mailbox)

谢谢您的任何想法!

EN

回答 2

Unix & Linux用户

发布于 2015-11-16 21:13:20

用这个解决了。

代码语言:javascript
复制
poll pop.1and1.com
  protocol POP3
  envelope "Delivered-To:"
  localdomains example.org
  user "*@example.org" there
  with password "Passw0rd!"
  is * here
  smtpaddress localhost
  ssl
  fetchall

然后,后缀将接收所有邮件并处理正确的邮箱。(有趣的是:您可以将获取的邮件重定向到internet :D :D)

不过,谢谢你的主意。我读到了关于mda的文章,不知道它是否有用,而且“这里是本地用户”也不起作用。

票数 2
EN

Unix & Linux用户

发布于 2015-11-16 19:49:50

您可以通过以下方式指示远程用户和本地用户的fetchmail

代码语言:javascript
复制
poll pop.1and1.com protocol POP3:
    user "myuser@example.org" there with password "Passw0rd!" ssl fetchall
    is local-user here

还可以使用以下方法使用另一个mda:

代码语言:javascript
复制
poll pop.1and1.com protocol POP3:
    user "myuser@example.org" there with password "Passw0rd!" ssl fetchall
    is local-user here and wants mda /path/to/mda
票数 1
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/243370

复制
相关文章

相似问题

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