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

    

重启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

  关于博主

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

  近期评论

  •  keith: 你也不差
  •  keith: 可以可以
  •  Admin: 已更新,重新试试
  •  456: 都不能用了大佬
  •  ooo:
  •  Admin: 已更新
  •  minguotan: 好像都不能用了?
  •  Tina: 你好,不能用了哦
  •  你好: 我的是苹果系统的,用的小火煎,是账号失效了吗?怎么每次过来都不能用……
  •  你好: 延迟都正常,但是都不能用啊,这是ss还是sr账号

  分类目录

要铭记在心:每天都是一年中最美好的日子。

生活远没有咖啡那么苦涩,关键是喝它的人怎么品味!每个人都喜欢和向往随心所欲的生活,殊不知随心所欲根本不是生活。

如果错过了太阳时你流泪了,那么你也要错过群星了。

不如意的时候不要尽往悲伤里钻,想想有笑声的日子吧。

我不明白为什么要那么在意别人的看法,评头论足只是无聊人的消遣,何必看得如临大敌。如果你不吃别人家的饭,就别太把别人的话放在心上。