NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Setting up postfix



Hello Csányi,

Csányi Pál writes:
> [...]
> I am following https://www.netbsd.org/docs/guide/en/chap-mail.html
> chapter to set up mail on my old laptop.
>
> I installed postfix, fetchmail and mutt.
>
> At boot I get the following message:
> WARNING: default postfix not used as not selected in mailer.conf
>
> In the /etc/rc.conf I have:
> postfix=${_rc_d_postfix:-YES}
>
> In /etc/mailer.conf I have:
> sendmail   /usr/pkg/sbin/postfix
> mailq   /usr/pkg/sbin/postfix
> newaliases   /usr/pkg/sbin/postfix
>
> In /etc/postfix/main.cf I have:
> mydomain = localdomain
>
> So why does not start postfix at boot out here?
> [...]

I think that a possible problem is in base postfix vs pkgsrc postfix,
i.e.:

 - /etc/mailer.conf was adjusted to use pkgsrc postfix
 - /etc/postfix/ is probably only honored by base postfix, not pkgsrc
   postfix. Configuration files for the latter should be under
   /usr/pkg/etc instead
 - /etc/rc.d/postfix will start base postfix, not pkgsrc one

So I think that if you prefer to use pkgsrc postfix the following will
be needed:

 - adjust configuration files in /usr/pkg/etc
 - overwrite /etc/rc.d/postfix with /usr/pkg/share/examples/rc.d/postfix


Home | Main Index | Thread Index | Old Index