Re: [arch-general] Postfix delivery problem

2016-12-22 Thread Jeremy Brown
On Fri, Dec 23, 2016 at 03:18:13AM +0100, G. Schlisio wrote:
> It seems like postfix/local is ignoring the mailbox_transport_maps
> option and trying to deliver itself instead of passing to dovecot, thus
> finding no entry in the system passwd.
> After full upgrade config files were merged (no changes in mail config)
> and a reboot was done. The list of upgraded packages is shown at
> http://termbin.com/k5ql . As downgrading postfix, dovecot and icu
> (linking) did not resolve this issue, we are very confused.

I don't have any specific advice for you about mailbox_transport_maps,
but I'm on postfix-3.1.3-2 and using an aliases file to route addresses
that do not map to local accounts to addresses that do have local
accounts, and that still seems to work (I just tested it to be sure).
Also your log statements end at the .forward lookup, which is supposed
to happen before mailbox_transport_maps, so I think the .forward
"couldn't find user" line is a red herring and any
mailbox_transport_maps processing would happen after that.  From the
postconf(5) man page:

--
The precedence of local(8) delivery  features  from  high  to low  is:
aliases,  .forward files,  mailbox_transport_maps, mailbox_transport,
mailbox_command_maps, mailbox_command, home_mailbox, mail_spool_direc‐
tory, fallback_transport_maps, fallback_transport and luser_relay.
--

Maybe you could share the full verbose output of a single invocation of
local?

The fact that you rolled back to a previous postfix (that presumably
worked) and are still having the issue seems fishy to me, and kinda
implies that the likely culprit here is that something in your
configuration merge messed up your config files.  If you saved your old
config files, I'd do a diff and see what's different.  Maybe something
is overwriting the mailbox_command_maps value after you've set it, or
maybe there's a parse error somewhere that's preventing postfix from
ever reaching where you set mailbox_command maps.

You might also reach out to the postfix mailing lists for help, as
you'll likely get better debugging tips for scenarios like this than
from a distribution-specific list.

Cheers,

Jeremy


[arch-general] Postfix delivery problem

2016-12-22 Thread G. Schlisio
Dear list,

We have a mail server with postfix and dovecot where we have mail
addresses with local unix accounts (authenticated by pam) and without
unix accounts (dovecot passwd-file authentication). The problem only
affects those non-unix account mail addresses. (There are also
completely virtual email addresses with different domains, also managed
by dovecot, but still working fine, for simplicity ignored here; sorry
the config is really complicated).

All non-unix-account addresses are listed in a postfix table,
configured in main.cf by:
mailbox_transport_maps = hash:/etc/postfix/mailbox_transport_maps

looking like this:
user1  dovecot
user2  dovecot

All this was working fine, before yesterdays (rather big)
system-upgrade.
Now we get the following error in the mail logs:

: delivery via local: user lookup error

postfix/local in verbose mode complains:

postfix/local[27333]: deliver_switch[2]: local user recip u...@dukun.de
exten  deliver u...@dukun.de exp_from
dukun postfix/local[27333]: deliver_alias[3]: local user recip
u...@dukun.de exten  deliver u...@dukun.de exp_from
dukun postfix/local[27333]: deliver_alias:
hash:/etc/aliases(0,lock|no_regsub|no_proxy|no_unauth|fold_fix|utf8_request):
user not found
dukun postfix/local[27333]: dict_pcre_lookup:
/etc/postfix/aliases_regex: user
dukun postfix/local[27333]: deliver_alias:
pcre:/etc/postfix/aliases_regex(0,lock|no_regsub|no_proxy|no_unauth|fold_fix|utf8_request):
user not found
Dez 23 01:56:03 dukun postfix/local[27333]: deliver_dotforward[3]: local
user recip u...@dukun.de exten  deliver u...@dukun.de exp_from
postfix/local[27333]: warning: error looking up passwd info for user:
Invalid argument

It seems like postfix/local is ignoring the mailbox_transport_maps
option and trying to deliver itself instead of passing to dovecot, thus
finding no entry in the system passwd.
After full upgrade config files were merged (no changes in mail config)
and a reboot was done. The list of upgraded packages is shown at
http://termbin.com/k5ql . As downgrading postfix, dovecot and icu
(linking) did not resolve this issue, we are very confused.

As this is critical infrastructure for some people, any help is warmly
appreciated.

regards
georg


Re: [arch-general] UID/GID of a systemd container

2016-12-22 Thread Leonid Isaev
On Thu, Dec 22, 2016 at 05:52:10PM +, arnaud gaboury wrote:
> On Thu, Dec 22, 2016, 6:16 PM Leonid Isaev 
> wrote:
> 
> > On Thu, Dec 22, 2016 at 09:16:29AM +, arnaud gaboury via arch-general
> > wrote:
> > >  % systemctl --version
> > > systemd 232
> > > +PAM -AUDIT -SELINUX -IMA -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP
> > > +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN
> > >
> > > % uname -r
> > > 4.8.13-1-hortensia (username space is set to YES)
> > > 
> > >
> > > My setup: Archlinux host managing through systemd-nspawn a Fedora
> > container
> > > on Btrfs.
> > >
> > > I don't know what upgrade (kernel, Fedora 24 --> 25, systemd)
> > trigered
> > > this change, but UID/GID of my container are no more shown as before.
> > >
> > > list container directory from host:
> > >
> > >  # ls -al /var/lib/machines/poppy
> > >
> > > dr-xr-xr-x 1 vu-poppy-0 vg-poppy-0   198 Dec 16 17:32 ./
> > > drwx-- 3 root   root4.0K Dec 15 17:08 ../
> > > dr-xr-xr-x 1 vu-poppy-0 vg-poppy-0 0 Feb  3  2016 boot/
> > > drwxrwxr-x 1 vu-poppy-0 vg-poppy-062 Aug 26 19:59 db/
> > > drwxr-xr-x 1 vu-poppy-0 vg-poppy-0 8 Apr 27  2015 dev/
> > > drwxr-xr-x 1 vu-poppy-0 vg-poppy-0  4.2K Feb  3  2016 etc/
> > > drwxr-xr-x 1 vu-poppy-0 vg-poppy-086 Feb  3  2016 home/
> > >
> > > Before it was like this:
> > >
> > > # ls -al /var/lib/machines/poppy/
> > >
> > > dr-xr-xr-x 1 363397120 363397120  198 Oct  4 15:54 ./
> > > drwx-- 3 root  root  4.0K Oct  1 15:53 ../
> > > dr-xr-xr-x 1 363397120 3633971200 Feb  3  2016 boot/
> > > drwxrwxr-x 1 363397120 363397120   62 Aug 26 19:59 db/
> > > drwxr-xr-x 1 363397120 3633971208 Apr 27  2015 dev/
> > > drwxr-xr-x 1 363397120 363397120 4.1K Feb  3  2016 etc/
> > > drwxr-xr-x 1 363397120 363397120   76 Feb  3  2016 home/
> > >
> > > 
> > >
> > > Thank you for any hint, link to documentation about this new way to show
> > > UID/GID of a container.
> >
> > You are using user namespaces, yes?
> >
> 
> Yes, so? How can it explains the recent changes ?

So, how can we know about recent changes if you build your own kernel? -ARCH
kernels have CONFIG_USER_NS disabled.

-- 
Leonid Isaev


Re: [arch-general] UID/GID of a systemd container

2016-12-22 Thread arnaud gaboury via arch-general
On Thu, Dec 22, 2016, 6:16 PM Leonid Isaev 
wrote:

> On Thu, Dec 22, 2016 at 09:16:29AM +, arnaud gaboury via arch-general
> wrote:
> >  % systemctl --version
> > systemd 232
> > +PAM -AUDIT -SELINUX -IMA -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP
> > +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN
> >
> > % uname -r
> > 4.8.13-1-hortensia (username space is set to YES)
> > 
> >
> > My setup: Archlinux host managing through systemd-nspawn a Fedora
> container
> > on Btrfs.
> >
> > I don't know what upgrade (kernel, Fedora 24 --> 25, systemd)
> trigered
> > this change, but UID/GID of my container are no more shown as before.
> >
> > list container directory from host:
> >
> >  # ls -al /var/lib/machines/poppy
> >
> > dr-xr-xr-x 1 vu-poppy-0 vg-poppy-0   198 Dec 16 17:32 ./
> > drwx-- 3 root   root4.0K Dec 15 17:08 ../
> > dr-xr-xr-x 1 vu-poppy-0 vg-poppy-0 0 Feb  3  2016 boot/
> > drwxrwxr-x 1 vu-poppy-0 vg-poppy-062 Aug 26 19:59 db/
> > drwxr-xr-x 1 vu-poppy-0 vg-poppy-0 8 Apr 27  2015 dev/
> > drwxr-xr-x 1 vu-poppy-0 vg-poppy-0  4.2K Feb  3  2016 etc/
> > drwxr-xr-x 1 vu-poppy-0 vg-poppy-086 Feb  3  2016 home/
> >
> > Before it was like this:
> >
> > # ls -al /var/lib/machines/poppy/
> >
> > dr-xr-xr-x 1 363397120 363397120  198 Oct  4 15:54 ./
> > drwx-- 3 root  root  4.0K Oct  1 15:53 ../
> > dr-xr-xr-x 1 363397120 3633971200 Feb  3  2016 boot/
> > drwxrwxr-x 1 363397120 363397120   62 Aug 26 19:59 db/
> > drwxr-xr-x 1 363397120 3633971208 Apr 27  2015 dev/
> > drwxr-xr-x 1 363397120 363397120 4.1K Feb  3  2016 etc/
> > drwxr-xr-x 1 363397120 363397120   76 Feb  3  2016 home/
> >
> > 
> >
> > Thank you for any hint, link to documentation about this new way to show
> > UID/GID of a container.
>
> You are using user namespaces, yes?
>

Yes, so? How can it explains the recent changes ?

>
> --
> Leonid Isaev
>


Re: [arch-general] UID/GID of a systemd container

2016-12-22 Thread Leonid Isaev
On Thu, Dec 22, 2016 at 09:16:29AM +, arnaud gaboury via arch-general wrote:
>  % systemctl --version
> systemd 232
> +PAM -AUDIT -SELINUX -IMA -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP
> +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN
> 
> % uname -r
> 4.8.13-1-hortensia (username space is set to YES)
> 
> 
> My setup: Archlinux host managing through systemd-nspawn a Fedora container
> on Btrfs.
> 
> I don't know what upgrade (kernel, Fedora 24 --> 25, systemd) trigered
> this change, but UID/GID of my container are no more shown as before.
> 
> list container directory from host:
> 
>  # ls -al /var/lib/machines/poppy
> 
> dr-xr-xr-x 1 vu-poppy-0 vg-poppy-0   198 Dec 16 17:32 ./
> drwx-- 3 root   root4.0K Dec 15 17:08 ../
> dr-xr-xr-x 1 vu-poppy-0 vg-poppy-0 0 Feb  3  2016 boot/
> drwxrwxr-x 1 vu-poppy-0 vg-poppy-062 Aug 26 19:59 db/
> drwxr-xr-x 1 vu-poppy-0 vg-poppy-0 8 Apr 27  2015 dev/
> drwxr-xr-x 1 vu-poppy-0 vg-poppy-0  4.2K Feb  3  2016 etc/
> drwxr-xr-x 1 vu-poppy-0 vg-poppy-086 Feb  3  2016 home/
> 
> Before it was like this:
> 
> # ls -al /var/lib/machines/poppy/
> 
> dr-xr-xr-x 1 363397120 363397120  198 Oct  4 15:54 ./
> drwx-- 3 root  root  4.0K Oct  1 15:53 ../
> dr-xr-xr-x 1 363397120 3633971200 Feb  3  2016 boot/
> drwxrwxr-x 1 363397120 363397120   62 Aug 26 19:59 db/
> drwxr-xr-x 1 363397120 3633971208 Apr 27  2015 dev/
> drwxr-xr-x 1 363397120 363397120 4.1K Feb  3  2016 etc/
> drwxr-xr-x 1 363397120 363397120   76 Feb  3  2016 home/
> 
> 
> 
> Thank you for any hint, link to documentation about this new way to show
> UID/GID of a container.

You are using user namespaces, yes?

-- 
Leonid Isaev


Re: [arch-general] Screen lock stopped working

2016-12-22 Thread David Rosenstrauch

I was able to pin this down to an issue with xfce4-power-manager:

https://bugzilla.xfce.org/show_bug.cgi?id=12857

DR

On 12/22/2016 09:51 AM, yaky83--- via arch-general wrote:

Le 19 Sep, 2016, David Rosenstrauch a écrit:

On 09/16/2016 12:14 PM, David Rosenstrauch wrote:

I've noticed that my screen lock / screensaver has stopped engaging as
of a couple of days ago.  I check the settings (which I haven't changed
recently), but they seem to be set correctly.

Anyone have an idea what package upgrade might have caused this and/or
which bugs I should watch for a resolution?

I'm running XFCE desktop btw.

Thanks,

DR


I've discovered something else odd going on that seems to be related
to this issue.

If I activate the screen lock by hand, and the screensaver starts
running, I noticed that within say 30 seconds the screensaver pauses
and displays the login box - as if someone pressed a key on the
keyboard or moved the mouse.  This would explain why the screensaver
never engages - it keeps getting keyboard or mouse input (or at least
thinks it is) that prevents it.

But that makes the problem even more puzzling, as my hands are not on
the keyboard or mouse.  My next guess was that perhaps there's a
broken key on the keyboard that keeps pressing.  But I used xev, and
it shows no keyboard or mouse events while my hands are off.

Is anyone else seeing similar behavior?  If not, I guess I'll have to
assume this is a hardware problem.  But if so, I'd appreciate any
suggestion on how I might go about debugging.

Thanks,

DR


Hi!

Sorry for being so late.

I had a similar problem a few weeks ago. I had just started using a HDMI
cable, and there are two HDMI inputs on the monitor. When the screen locker
was activated, the monitor simply switched to the other HDMI input which
defeated the screen lock. The solution was to turn auto-switch input to
off.

RB


Re: [arch-general] [OT] Settings problem: Why is Thunderbird so silly?

2016-12-22 Thread Eli Schwartz via arch-general
On 12/22/2016 06:11 AM, Peter Nabbefeld wrote:
> I want to select an application for opening an attachment with an 
> alternative editor (a PDF file with LibreOffice Draw in this case).
> 
> When I want to select the application, I get the list of last opened 
> files (i.e. text files, which obviously are not able to run ...).
> 
> Trying to search for "sdraw" presents me with a waiting cursor ... 
> waiting endlessly.
> 
> I'd guess I have to set some options somewhere, but I don't know which - 
> or do I even have to edit some XUL file? I doubt, that Thunderbird is 
> really so "silly" just not being able to find some application.

No, just select the executable in your File dialog. But obviously it is
not going to be found searching the recent (data) files list!

Basically, Mozilla is a bit silly. There is an ancient bug filed
somewhere, asking for Firefox/Thunderbird to support the standard Linux
.desktop standard, but nobody seems to be interested in doing that. :(

(Naturally, the Windows registry analogue works perfectly. You'll find
that depressingly often, Firefox bugs will languish if they are
Linux-exclusive.)

-- 
Eli Schwartz



signature.asc
Description: OpenPGP digital signature


Re: [arch-general] Screen lock stopped working

2016-12-22 Thread yaky83--- via arch-general

Le 19 Sep, 2016, David Rosenstrauch a écrit:

On 09/16/2016 12:14 PM, David Rosenstrauch wrote:

I've noticed that my screen lock / screensaver has stopped engaging as
of a couple of days ago.  I check the settings (which I haven't changed
recently), but they seem to be set correctly.

Anyone have an idea what package upgrade might have caused this and/or
which bugs I should watch for a resolution?

I'm running XFCE desktop btw.

Thanks,

DR


I've discovered something else odd going on that seems to be related 
to this issue.


If I activate the screen lock by hand, and the screensaver starts 
running, I noticed that within say 30 seconds the screensaver pauses 
and displays the login box - as if someone pressed a key on the 
keyboard or moved the mouse.  This would explain why the screensaver 
never engages - it keeps getting keyboard or mouse input (or at least 
thinks it is) that prevents it.


But that makes the problem even more puzzling, as my hands are not on 
the keyboard or mouse.  My next guess was that perhaps there's a 
broken key on the keyboard that keeps pressing.  But I used xev, and 
it shows no keyboard or mouse events while my hands are off.


Is anyone else seeing similar behavior?  If not, I guess I'll have to 
assume this is a hardware problem.  But if so, I'd appreciate any 
suggestion on how I might go about debugging.


Thanks,

DR


Hi!

Sorry for being so late.

I had a similar problem a few weeks ago. I had just started using a HDMI
cable, and there are two HDMI inputs on the monitor. When the screen locker
was activated, the monitor simply switched to the other HDMI input which
defeated the screen lock. The solution was to turn auto-switch input to off.

RB


Re: [arch-general] [OT] Settings problem: Why is Thunderbird so silly?

2016-12-22 Thread ber532k

Hi,

what worked for me was navigating to /usr/bin or even /bin within the 
"Choose Helper Application" dialogue and then selecting an executable 
(in this case libreoffice). The "Choose Helper Application" dialogue 
will even remember it was in /usr/bin when you invoke it again.
Reminds me of the way to do stuff in Windows Vista - back when I was 
young and ignorant ;) - where you'd "Open with" something like 
"C:\Program Files\Microsoft\Microsoft Office\WINWORD.EXE". Not quite an 
elegant way of managing programms, but it works most of the time.


Regards


[arch-general] [OT] Settings problem: Why is Thunderbird so silly?

2016-12-22 Thread Peter Nabbefeld


Hi all,

I want to select an application for opening an attachment with an 
alternative editor (a PDF file with LibreOffice Draw in this case).


When I want to select the application, I get the list of last opened 
files (i.e. text files, which obviously are not able to run ...).


Trying to search for "sdraw" presents me with a waiting cursor ... 
waiting endlessly.


I'd guess I have to set some options somewhere, but I don't know which - 
or do I even have to edit some XUL file? I doubt, that Thunderbird is 
really so "silly" just not being able to find some application.


BTW, my desktop is XFCE, latest firefox (latest system update today).

Kind regards
Peter


[arch-general] UID/GID of a systemd container

2016-12-22 Thread arnaud gaboury via arch-general
 % systemctl --version
systemd 232
+PAM -AUDIT -SELINUX -IMA -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP
+GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN

% uname -r
4.8.13-1-hortensia (username space is set to YES)


My setup: Archlinux host managing through systemd-nspawn a Fedora container
on Btrfs.

I don't know what upgrade (kernel, Fedora 24 --> 25, systemd) trigered
this change, but UID/GID of my container are no more shown as before.

list container directory from host:

 # ls -al /var/lib/machines/poppy

dr-xr-xr-x 1 vu-poppy-0 vg-poppy-0   198 Dec 16 17:32 ./
drwx-- 3 root   root4.0K Dec 15 17:08 ../
dr-xr-xr-x 1 vu-poppy-0 vg-poppy-0 0 Feb  3  2016 boot/
drwxrwxr-x 1 vu-poppy-0 vg-poppy-062 Aug 26 19:59 db/
drwxr-xr-x 1 vu-poppy-0 vg-poppy-0 8 Apr 27  2015 dev/
drwxr-xr-x 1 vu-poppy-0 vg-poppy-0  4.2K Feb  3  2016 etc/
drwxr-xr-x 1 vu-poppy-0 vg-poppy-086 Feb  3  2016 home/

Before it was like this:

# ls -al /var/lib/machines/poppy/

dr-xr-xr-x 1 363397120 363397120  198 Oct  4 15:54 ./
drwx-- 3 root  root  4.0K Oct  1 15:53 ../
dr-xr-xr-x 1 363397120 3633971200 Feb  3  2016 boot/
drwxrwxr-x 1 363397120 363397120   62 Aug 26 19:59 db/
drwxr-xr-x 1 363397120 3633971208 Apr 27  2015 dev/
drwxr-xr-x 1 363397120 363397120 4.1K Feb  3  2016 etc/
drwxr-xr-x 1 363397120 363397120   76 Feb  3  2016 home/



Thank you for any hint, link to documentation about this new way to show
UID/GID of a container.