On Friday, March 10, 2017 at 3:37:24 PM UTC, Ted Brenner wrote:
> On Thu, Mar 9, 2017 at 9:24 PM, Ted Brenner <[email protected]> wrote:
> 
> 
> 
> 
> 
> On Thu, Mar 9, 2017 at 6:57 AM, Unman <[email protected]> wrote:
> 
> 
> On Wed, Mar 08, 2017 at 08:36:11PM -0600, Ted Brenner wrote:
> 
> > On Wed, Mar 8, 2017 at 9:32 AM, Ted Brenner <[email protected]> wrote:
> 
> >
> 
> > > On Wed, Mar 8, 2017 at 9:15 AM, Unman <[email protected]> wrote:
> 
> > >
> 
> > >> On Tue, Mar 07, 2017 at 09:56:02PM -0600, Ted Brenner wrote:
> 
> > >> > Hi all,
> 
> > >> >
> 
> > >> > I'm trying to setup postfix following this guide
> 
> > >> > <https://www.qubes-os.org/doc/postfix/>. But I'm not able to get a few
> 
> > >> > things to work.
> 
> > >> >
> 
> > >> > First, the commands I added to /rw/config/rc.local don't seem to run.
> 
> > >> > Namely, it doesn't appear to be mounting the /usr/local/etc/postfix
> 
> > >> > directory in /etc/postfix. Also postfix doesn't appear to be running on
> 
> > >> > startup. How do we tell if that gets run correctly?
> 
> > >> >
> 
> > >> > Thanks!
> 
> > >> > Ted
> 
> > >> >
> 
> > >>
> 
> > >> Other have pointed out that you need to set the executable bit on
> 
> > >> rc.local.
> 
> > >> You might want to cnsider instead the use of bind-dirs :
> 
> > >> www.qubes-os.org/doc/bind-dirs which provides similar functionality.
> 
> > >>
> 
> > >
> 
> > > Thanks all. Yes, this was the issue. Still can't get postfix to work but
> 
> > > that now appears to be due to missing the aliases.db.
> 
> > >
> 
> > > Is there a reason rc.local isn't executable by default?
> 
> > >
> 
> > > --
> 
> > > Sent from my Desktop
> 
> > >
> 
> >
> 
> > Quick follow up. What user is running rc.local? Is it root or user? I
> 
> > assume it is user since I'm seeing a permission denied when the call to run
> 
> > postfix tries to access the aliases.db file. So should I throw a sudo in
> 
> > front of the command to start postfix in the rc.local file? Or should I
> 
> > change the permissions on aliases.db? Per the instructions I'm also doing a
> 
> > mount command but that succeeds. Which is odd since if I try it as user, it
> 
> > fails saying only root can do it. Which is why I ask which user is running
> 
> > rc.local.
> 
> >
> 
> It's root - you could see this by appending:
> 
> echo `whoami` >> /home/user/rc_perms
> 
> But I suspect you already know this.
> 
> 
> 
> What are the permissions on aliases.db?
> 
> What template are you using and do you have selinux enabled?
> 
> 
> 
> 
> 
> 
> Thanks Unman. I'm using Fedora-24 and selinux is not enabled. aliases.db is 
> owned by root:root with rw-r--r--.  
> 
> 
> -- 
> 
> Sent from my Desktop
> 
> 
> I think the source of my problem was that postfix does some initial 
> configuration on its first launch. This requires the postfix-files file. But 
> that didn't get copied to /usr/local/etc/postfix which is mounted over 
> /etc/postfix. Once I added that file it launched successfully which appears 
> to have properly set up the aliases.db file so now all appears to be well. 
> Perhaps I'll submit a PR to update the postfix page to include copying 
> postfix-files to /usr/local/etc/postfix.
> 

I've come across this too and created a PR for the docs: 
https://github.com/QubesOS/qubes-doc/pull/427

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/ab7b2861-8891-4b8a-a69a-9eed9fcec3d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to