Re: Mail system is down

2022-01-02 Thread raf
On Sun, Jan 02, 2022 at 11:03:08PM -0500, Ken Wright wrote: > On Mon, 2022-01-03 at 14:50 +1100, raf wrote: > > On Sun, Jan 02, 2022 at 09:32:53PM -0500, Ken Wright > > wrote: > > > > > Just checked my mail logs.  Do any of these help anyone? > > > > > > kwright:~$ tail /var/log/mail.log > >

Re: Mail system is down

2022-01-02 Thread Ken Wright
On Mon, 2022-01-03 at 14:50 +1100, raf wrote: > On Sun, Jan 02, 2022 at 09:32:53PM -0500, Ken Wright > wrote: > > > Just checked my mail logs.  Do any of these help anyone? > > > > kwright:~$ tail /var/log/mail.log > > [...] > > kwright:~$ tail /var/log/mail.err > > Jan  2 21:15:34 grace master[

Re: Mail system is down

2022-01-02 Thread raf
On Sun, Jan 02, 2022 at 09:32:53PM -0500, Ken Wright wrote: > Just checked my mail logs. Do any of these help anyone? > > kwright:~$ tail /var/log/mail.log > [...] > kwright:~$ tail /var/log/mail.err > Jan 2 21:15:34 grace master[79805]: fatal: master_spawn: exec > /usr/lib/postfix/sbin/0: No

Re: question for the part location of multipart message

2022-01-02 Thread raf
On Sun, Jan 02, 2022 at 01:23:38PM +0100, Jaroslaw Rafa wrote: > Dnia 1.01.2022 o godz. 11:40:37 Frank Hwa pisze: > > > > For a multipart message, is text/plain part always in the first > > location? > > I just want to extract the plain text body of a message. I use the > > code below (python)

Re: Mail system is down

2022-01-02 Thread Ken Wright
On Sun, 2022-01-02 at 21:59 -0500, Wietse Venema wrote: > Ken Wright: > > On Sun, 2022-01-02 at 19:40 -0500, Wietse Venema wrote: > > > Sorry, I mis-typed 'postqueue'. > > > > > > Try this instead. > > > > > > Here is what happens on my system. > > > > > > As root: > > > > > > # chmod g-s /usr/

Re: Mail system is down

2022-01-02 Thread Wietse Venema
Ken Wright: > Just checked my mail logs. Do any of these help anyone? > > kwright:~$ tail /var/log/mail.log > Jan 2 21:23:31 grace postfix/postdrop[58322]: warning: > mail_queue_enter: create file maildrop/914822.58322: Permission denied Yes, that is because I made a mistake in my first comman

Re: Mail system is down

2022-01-02 Thread Wietse Venema
Ken Wright: > On Sun, 2022-01-02 at 19:40 -0500, Wietse Venema wrote: > > Sorry, I mis-typed 'postqueue'. > > > > Try this instead. > > > > Here is what happens on my system. > > > > As root: > > > > # chmod g-s /usr/sbin/postqueue > > # ls -l /usr/sbin/postqueue > > -rwxr-xr-x 1 root postdrop

Re: Mail system is down

2022-01-02 Thread Ken Wright
Just checked my mail logs. Do any of these help anyone? kwright:~$ tail /var/log/mail.log Jan 2 21:23:31 grace postfix/postdrop[58322]: warning: mail_queue_enter: create file maildrop/914822.58322: Permission denied Jan 2 21:23:31 grace postfix/postdrop[55910]: warning: mail_queue_enter: create

Re: Mail system is down

2022-01-02 Thread Ken Wright
On Mon, 2022-01-03 at 13:02 +1100, raf wrote: > Note: The errors above are due to copying and pasting > the command prompt ("wzv$") and the strace output (i.e. > connect...) along with the commands themselves. Your > shell was trying to execute those things as though they > were shell commands, but

Re: Mail system is down

2022-01-02 Thread raf
On Sun, Jan 02, 2022 at 08:10:06PM -0500, Ken Wright wrote: > On Sun, 2022-01-02 at 19:40 -0500, Wietse Venema wrote: > > Sorry, I mis-typed 'postqueue'. > > > > Try this instead. > > > > Here is what happens on my system. > > > > As root: > > > > # chmod g-s /usr/sbin/postqueue > > # ls -l

Re: Creating Dovecot users from Postfix

2022-01-02 Thread raf
On Sun, Jan 02, 2022 at 11:01:06PM +, Felix Ingram wrote: > > > > On 2 Jan 2022, at 22:08, DL Neil wrote: > > > > On 03/01/2022 10.41, Felix Ingram wrote: > >> Thanks Max, > >> > >> I’m making something similar to a disposable email service, which is why I > >> need to accept mail for

Re: Mail system is down

2022-01-02 Thread Ken Wright
On Sun, 2022-01-02 at 19:40 -0500, Wietse Venema wrote: > Sorry, I mis-typed 'postqueue'. > > Try this instead. > > Here is what happens on my system. > > As root: > > # chmod g-s /usr/sbin/postqueue > # ls -l /usr/sbin/postqueue > -rwxr-xr-x 1 root postdrop 60072 Dec 23 18:08 /usr/sbin/postque

Re: Mail system is down

2022-01-02 Thread Wietse Venema
Sorry, I mis-typed 'postqueue'. Try this instead. Here is what happens on my system. As root: # chmod g-s /usr/sbin/postqueue # ls -l /usr/sbin/postqueue -rwxr-xr-x 1 root postdrop 60072 Dec 23 18:08 /usr/sbin/postqueue # chmod 777 /var/spool/postfix/public # ls -ld /var/spool/postfix/public /

Re: Mail system is down

2022-01-02 Thread Ken Wright
On Sun, 2022-01-02 at 18:37 -0500, Wietse Venema wrote: > Here is what happens on m system. > > As root: > > # chmod g-s /usr/sbin/postdrop > # ls -l /usr/sbin/postdrop > -rwxr-xr-x 1 root postdrop 44472 Dec 23 18:08 /usr/sbin/postdrop For some reason, there is no write permission on postdrop, f

Re: Mail system is down

2022-01-02 Thread Wietse Venema
John Fawcett: > On 03/01/2022 00:37, Wietse Venema wrote: > > Here is what happens on m system. > > As root: > > > > # chmod g-s /usr/sbin/postdrop > > # ls -l /usr/sbin/postdrop > > -rwxr-xr-x 1 root postdrop 44472 Dec 23 18:08 /usr/sbin/postdrop > > # chmod 777 /var/spool/postfix/public > > # ls

Re: Mail system is down

2022-01-02 Thread John Fawcett
On 03/01/2022 00:37, Wietse Venema wrote: Here is what happens on m system. As root: # chmod g-s /usr/sbin/postdrop # ls -l /usr/sbin/postdrop -rwxr-xr-x 1 root postdrop 44472 Dec 23 18:08 /usr/sbin/postdrop # chmod 777 /var/spool/postfix/public # ls -ld /var/spool/postfix/public /var/spool/post

Re: Mail system is down

2022-01-02 Thread John Fawcett
On 03/01/2022 00:06, Ken Wright wrote: On Sun, 2022-01-02 at 17:30 -0500, Wietse Venema wrote: Ken Wright: On Sun, 2022-01-02 at 16:01 -0500, Wietse Venema wrote: Does it also fail when run as root? In that case, ??? # strace -e connect postqueue -p |&grep showq Otherwise, some temporary hac

Re: Mail system is down

2022-01-02 Thread Wietse Venema
Ken Wright: > On Sun, 2022-01-02 at 17:30 -0500, Wietse Venema wrote: > > Ken Wright: > > > On Sun, 2022-01-02 at 16:01 -0500, Wietse Venema wrote: > > > > Does it also fail when run as root? In that case, > > > > > > > > ??? # strace -e connect postqueue -p |&grep showq > > > > > > > > Otherwise

Re: Mail system is down

2022-01-02 Thread Ken Wright
On Sun, 2022-01-02 at 17:30 -0500, Wietse Venema wrote: > Ken Wright: > > On Sun, 2022-01-02 at 16:01 -0500, Wietse Venema wrote: > > > Does it also fail when run as root? In that case, > > > > > > ??? # strace -e connect postqueue -p |&grep showq > > > > > > Otherwise, some temporary hack is nee

Re: Creating Dovecot users from Postfix

2022-01-02 Thread Felix Ingram
> On 2 Jan 2022, at 22:08, DL Neil wrote: > > On 03/01/2022 10.41, Felix Ingram wrote: >> Thanks Max, >> >> I’m making something similar to a disposable email service, which is why I >> need to accept mail for any user. There’s still some validation for domains, >> etc, so I’m not too worri

Re: Mail system is down

2022-01-02 Thread Wietse Venema
Kenneth Irving: > > On Sun, 2 Jan 2022, Ken Wright wrote: > > > On Sun, 2022-01-02 at 16:01 -0500, Wietse Venema wrote: > >> Does it also fail when run as root? In that case, > >> > >> ??? # strace -e connect postqueue -p |&grep showq > >> > >> Otherwise, some temporary hack is needed. > >> > >>

Re: Mail system is down

2022-01-02 Thread Wietse Venema
Ken Wright: > On Sun, 2022-01-02 at 16:01 -0500, Wietse Venema wrote: > > Does it also fail when run as root? In that case, > > > > ??? # strace -e connect postqueue -p |&grep showq > > > > Otherwise, some temporary hack is needed. > > > > As root, disdable file permissions: > > > > # chmod 777

Re: Mail system is down

2022-01-02 Thread Kenneth Irving
On Sun, 2 Jan 2022, Ken Wright wrote: On Sun, 2022-01-02 at 16:01 -0500, Wietse Venema wrote: Does it also fail when run as root? In that case,     # strace -e connect postqueue -p |&grep showq Otherwise, some temporary hack is needed. As root, disdable file permissions: # chmod 777 /var/s

Re: Creating Dovecot users from Postfix

2022-01-02 Thread DL Neil
On 03/01/2022 10.41, Felix Ingram wrote: > Thanks Max, > > I’m making something similar to a disposable email service, which is why I > need to accept mail for any user. There’s still some validation for domains, > etc, so I’m not too worried about accepting everything. I was looking to use > C

Re: Mail system is down

2022-01-02 Thread Ken Wright
On Sun, 2022-01-02 at 16:01 -0500, Wietse Venema wrote: > Does it also fail when run as root? In that case, > >     # strace -e connect postqueue -p |&grep showq > > Otherwise, some temporary hack is needed. > > As root, disdable file permissions: > > # chmod 777 /var/spool/postfix/public > # c

Re: Creating Dovecot users from Postfix

2022-01-02 Thread Felix Ingram
Thanks Max, I’m making something similar to a disposable email service, which is why I need to accept mail for any user. There’s still some validation for domains, etc, so I’m not too worried about accepting everything. I was looking to use Cyrus, which has a setting to create mailboxes as need

Re: Mail system is down

2022-01-02 Thread Wietse Venema
Ken Wright: > On Sun, 2022-01-02 at 11:16 -0500, Wietse Venema wrote: > > Ken Wright: > > > On Sat, 2022-01-01 at 18:50 -0500, Wietse Venema wrote: > > > > Ken Wright: > > > > > > > > > > I did a quick Google search, and ran sudo apparmor_status. > > > > > There don't appear to be any postfix-rela

Re: Creating Dovecot users from Postfix

2022-01-02 Thread Max-Julian Pogner
Hi, from a SMTP protocol point of view, postfix just ingests mail on the one end, and hands it over on the other end. What you are describing is, that postfix will accept any and all mail. That parts seems easy enough, and does not require any database or speaking with dovecot (as the resul

Re: Mail system is down

2022-01-02 Thread Ken Wright
On Sun, 2022-01-02 at 11:16 -0500, Wietse Venema wrote: > Ken Wright: > > On Sat, 2022-01-01 at 18:50 -0500, Wietse Venema wrote: > > > Ken Wright: > > > > > > > > I did a quick Google search, and ran sudo apparmor_status. > > > > There don't appear to be any postfix-related programs listed. > > >

Re: Mail system is down

2022-01-02 Thread Michael Ströder
On 1/2/22 17:16, Wietse Venema wrote: Ken Wright: On Sat, 2022-01-01 at 18:50 -0500, Wietse Venema wrote: Ken Wright: I did a quick Google search, and ran sudo apparmor_status. There don't appear to be any postfix-related programs listed. Then that leaves the cron related profiles. None o

Re: Mail system is down

2022-01-02 Thread Wietse Venema
Ken Wright: > On Sat, 2022-01-01 at 18:50 -0500, Wietse Venema wrote: > > Ken Wright: > > > > > > I did a quick Google search, and ran sudo apparmor_status. There > > > don't appear to be any postfix-related programs listed. > > > > Then that leaves the cron related profiles. > > None of those e

Re: question for the part location of multipart message

2022-01-02 Thread Jaroslaw Rafa
Dnia 1.01.2022 o godz. 11:40:37 Frank Hwa pisze: > > For a multipart message, is text/plain part always in the first > location? > I just want to extract the plain text body of a message. I use the > code below (python), but was not very sure. I have a perl script that extracts all text/plain pa