书犹药也,善读可以医愚;久尝其味,便可心如止水

    

重启postfix出现field "private": bad value: "???"的解决办法

Connecting Postfix to Dovecot

image.png

There is a newer issue of thie ISPmail guide available if you are using Debian Jessie!

In a previous chapter we made sure that Postfix knows which emails it’s allowed to receive. Now what to do with the email? It has to be stored to disk. Usually that’s done by Postfix itself which comes with a very basic mail delivery agent (MDA) called “virtual” that just saves emails to virtual mailboxes on your hard disk. But as we will use Dovecot (for IMAP and POP3 access) anyway we can use its more featureful local delivery agent (also known as “Dovecot LDA”). It even allows you to use server-side rules to run different automatic actions on incoming email. To make Postfix use that agent you will have to add a service to your /etc/postfix/master.cf:

dovecot   unix  -       n       n       -       -       pipe
 flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/dovecot-lda -f ${sender} -d ${recipient}

Note: the second line has to be indented by spaces.)

Restart Postfix:

service postfix restart

Check the end of the /var/log/mail.log file for any errors. It should read:

postfix/master[…]: daemon started — version 2.9.6, configuration /etc/postfix

Also make Postfix use that service for virtual delivery. Run these two commands to alter your main.cf file:

postconf -e virtual_transport=dovecot
postconf -e dovecot_destination_recipient_limit=1

So now Postfix will pass on incoming emails to virtual users to the /usr/lib/dovecot/deliver program.

(You will find further information on these steps in the Dovecot configuration on Postfix integration.)


所有原创文章采用 知识共享署名-非商业性使用 4.0 国际许可协议 进行许可。
您可以自由的转载和修改,但请务必注明文章来源并且不可用于商业目的。
本站部分内容收集于互联网,如果有侵权内容、不妥之处,请联系我们删除。敬请谅解!

添加新评论

icon_mrgreen.gificon_neutral.gificon_twisted.gificon_arrow.gificon_eek.gificon_smile.gificon_confused.gificon_cool.gificon_evil.gificon_biggrin.gificon_idea.gificon_redface.gificon_razz.gificon_rolleyes.gificon_wink.gificon_cry.gificon_surprised.gificon_lol.gificon_mad.gificon_sad.gificon_exclaim.gificon_question.gif

  赞助者打赏名单

未获取到内容,请按照主题指定的格式发布公告或动态内容!

  关于博主

既见君子,云胡不喜,浅喜如苍狗,深爱似长风

  近期评论

  •  tttdd: 找到一个可以用的,谢谢
  •  tttdd: 最新用不了
  •  faquir: 过了一会就不行了
  •  yan: 客户端链接打不开!晕!
  •  yan: V/T/U/M啥意思?
  •  zxy: 为什么无论如何填写都无法使用呢?我填写错了吗?
  •  Admin: 协议填Method栏内容,混淆默认或者自动
  •  Admin: 已更新
  •  dahu: 好像都用不了啊
  •  随便: 请问,协议和混淆填什么吖

  分类目录

快乐地过是一天,不快乐地过也是一天,我为什么不快快乐乐地过每一天呢?

岂能尽随人愿,但求无愧我心。

在你内心深处,还有无穷的潜力,有一天当你回首看时,你就会知道这绝对是真的。

活在当下,别在怀念过去或者憧憬未来中浪费掉你现在的生活。

挫折时,要像大树一样,被砍了,还能再长;也要像杂草一样,虽让人践踏,但还能勇敢地活下去。