一个小问题..。我有一个完全配置的后缀服务器,它有几个域,很少的用户,还有更多。
然后我有一个智能主机,接收所有的邮件和发送所有的邮件。例如,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“的用户收件箱中的邮件。
获取邮件的配置:
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日志上写着:
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)谢谢您的任何想法!
发布于 2015-11-16 21:13:20
用这个解决了。
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的文章,不知道它是否有用,而且“这里是本地用户”也不起作用。
发布于 2015-11-16 19:49:50
您可以通过以下方式指示远程用户和本地用户的fetchmail:
poll pop.1and1.com protocol POP3:
user "myuser@example.org" there with password "Passw0rd!" ssl fetchall
is local-user here还可以使用以下方法使用另一个mda:
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/mdahttps://unix.stackexchange.com/questions/243370
复制相似问题