weird debian stretch/testing repo error

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
17 messages Options
Reply | Threaded
Open this post in threaded view
|

weird debian stretch/testing repo error

Patrik
hello!

could you help how to work it with dovecot? i can use any other solution as well. if you have a quick fix or is it in the docs somewhere?

i get no error except this:

Feb  9 23:34:33 server postfix/smtp[2606]: fatal: unknown service: private/dovecot-lmtp/tcp
Feb  9 23:34:34 server postfix/qmgr[2420]: warning: private/lmtp socket: malformed response
Feb  9 23:34:34 server postfix/qmgr[2420]: warning: transport lmtp failure -- see a previous warning/fatal/panic logfile record for the problem description
Feb  9 23:34:34 server postfix/master[2418]: warning: process /usr/lib/postfix/sbin/smtp pid 2601 exit status 1
Feb  9 23:34:34 server postfix/master[2418]: warning: /usr/lib/postfix/sbin/smtp: bad command startup -- throttling


Patrik

GTalk:  
[hidden email]

Web:

Mobile:
<a href="tel:+36+20+342+8046" target="_blank">+36 20 342 8046
Reply | Threaded
Open this post in threaded view
|

Re: weird debian stretch/testing repo error

Viktor Dukhovni
On Sat, Feb 11, 2017 at 12:28:13AM +0100, Patrik wrote:

>
> could you help how to work it with dovecot? i can use any other solution as
> well. if you have a quick fix or is it in the docs somewhere?
>
> i get no error except this:
>
> Feb  9 23:34:33 server postfix/smtp[2606]: fatal: unknown service:
> private/dovecot-lmtp/tcp

Error in master.cf, the service type for a delivery agent is supposed
to be "unix" not "inet".

--
        Viktor.
Reply | Threaded
Open this post in threaded view
|

Re: weird debian stretch/testing repo error

Patrik
this?
smtp      inet  n       -       y       -       -       smtpd
to
smtp      unix  n       -       y       -       -       smtpd

or which?

#
# Postfix master process configuration file.  For details on the format
# of the file, see the master(5) manual page (command: "man 5 master" or
#
# Do not forget to execute "postfix reload" after editing this file.
#
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (no)    (never) (100)
# ==========================================================================
smtp      inet  n       -       y       -       -       smtpd
#smtp      inet  n       -       y       -       1       postscreen
#smtpd     pass  -       -       y       -       -       smtpd
#dnsblog   unix  -       -       y       -       0       dnsblog
#tlsproxy  unix  -       -       y       -       0       tlsproxy
submission inet n       -       y       -       -       smtpd
  -o syslog_name=postfix/submission
  -o smtpd_tls_security_level=encrypt
  -o smtpd_sasl_auth_enable=yes
  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#
#  -o smtpd_reject_unlisted_recipient=no
#  -o smtpd_client_restrictions=$mua_client_restrictions
#  -o smtpd_helo_restrictions=$mua_helo_restrictions
#  -o smtpd_sender_restrictions=$mua_sender_restrictions
#  -o smtpd_recipient_restrictions=
#  -o smtpd_relay_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
smtps     inet  n       -       y       -       -       smtpd
  -o syslog_name=postfix/smtps
  -o smtpd_tls_wrappermode=yes
  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_reject_unlisted_recipient=no
  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o smtpd_helo_restrictions=$mua_helo_restrictions
#  -o smtpd_sender_restrictions=$mua_sender_restrictions
#  -o smtpd_recipient_restrictions=
#  -o smtpd_relay_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
#628       inet  n       -       y       -       -       qmqpd
pickup    unix  n       -       y       60      1       pickup
cleanup   unix  n       -       y       -       0       cleanup
qmgr      unix  n       -       n       300     1       qmgr
#qmgr     unix  n       -       n       300     1       oqmgr
tlsmgr    unix  -       -       y       1000?   1       tlsmgr
rewrite   unix  -       -       y       -       -       trivial-rewrite
bounce    unix  -       -       y       -       0       bounce
defer     unix  -       -       y       -       0       bounce
trace     unix  -       -       y       -       0       bounce
verify    unix  -       -       y       -       1       verify
flush     unix  n       -       y       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
proxywrite unix -       -       n       -       1       proxymap
smtp      unix  -       -       y       -       -       smtp
relay     unix  -       -       y       -       -       smtp
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       y       -       -       showq
error     unix  -       -       y       -       -       error
retry     unix  -       -       y       -       -       error
discard   unix  -       -       y       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       y       -       -       smtp
anvil     unix  -       -       y       -       1       anvil
scache    unix  -       -       y       -       1       scache
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent.  See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
#
# ====================================================================
#
# Recent Cyrus versions can use the existing "lmtp" master.cf entry.
#
# Specify in cyrus.conf:
#   lmtp    cmd="lmtpd -a" listen="localhost:lmtp" proto=tcp4
#
# Specify in main.cf one or more of the following:
#  mailbox_transport = lmtp:inet:localhost
#  virtual_transport = lmtp:inet:localhost
#
# ====================================================================
#
# Cyrus 2.1.5 (Amos Gouaux)
# Also specify in main.cf: cyrus_destination_recipient_limit=1
#
#cyrus     unix  -       n       n       -       -       pipe
#  user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
#
# ====================================================================
# Old example of delivery via Cyrus.
#
#old-cyrus unix  -       n       n       -       -       pipe
#  flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
#
# ====================================================================
#
# See the Postfix UUCP_README file for configuration details.
#
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix - n n - 2 pipe
  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman   unix  -       n       n       -       -       pipe
  flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
  ${nexthop} ${user}




Patrik

GTalk:  
[hidden email]

Web:

Mobile:
<a href="tel:+36+20+342+8046" target="_blank">+36 20 342 8046

On Sat, Feb 11, 2017 at 12:48 AM, Viktor Dukhovni <[hidden email]> wrote:
On Sat, Feb 11, 2017 at 12:28:13AM +0100, Patrik wrote:

>
> could you help how to work it with dovecot? i can use any other solution as
> well. if you have a quick fix or is it in the docs somewhere?
>
> i get no error except this:
>
> Feb  9 23:34:33 server postfix/smtp[2606]: fatal: unknown service:
> private/dovecot-lmtp/tcp

Error in master.cf, the service type for a delivery agent is supposed
to be "unix" not "inet".

--
        Viktor.

Reply | Threaded
Open this post in threaded view
|

Re: weird debian stretch/testing repo error

Viktor Dukhovni
On Sat, Feb 11, 2017 at 12:51:10AM +0100, Patrik wrote:

> this?
> smtp      inet  n       -       y       -       -       smtpd
> to
> smtp      unix  n       -       y       -       -       smtpd

No, it would have been the one that says "dovecot-lmtp", but you
don't have one at all apparently.  On closer inspection, you seem
to have an smtpd(8) delivery agent trying to resolve "private/dovecot-lmtp"
as a TCP port number.  Perhaps a badly mangled content_filter setting,
or garbage in a transport table entry.

--
        Viktor.
Reply | Threaded
Open this post in threaded view
|

Re: weird debian stretch/testing repo error

Patrik
but where? i dont no postfix, sorry.

where? please help me, i have been trying for a week.

which setting? master.cf but which?


On 02/11/2017 12:58 AM, Viktor Dukhovni wrote:

> On Sat, Feb 11, 2017 at 12:51:10AM +0100, Patrik wrote:
>
>> this?
>> smtp      inet  n       -       y       -       -       smtpd
>> to
>> smtp      unix  n       -       y       -       -       smtpd
> No, it would have been the one that says "dovecot-lmtp", but you
> don't have one at all apparently.  On closer inspection, you seem
> to have an smtpd(8) delivery agent trying to resolve "private/dovecot-lmtp"
> as a TCP port number.  Perhaps a badly mangled content_filter setting,
> or garbage in a transport table entry.
>

Reply | Threaded
Open this post in threaded view
|

Re: weird debian stretch/testing repo error

Patrik
In reply to this post by Viktor Dukhovni

which should i change?

i get this:

smtpd_banner = ESMTP mail.patrikx3.tk
biff = no
append_dot_mydomain = no
readme_directory = no
compatibility_level = 2
smtpd_tls_cert_file= /etc/ssl/acme/mail.patrikx3.tk/fullchain.cer
smtpd_tls_key_file=/etc/ssl/acme/mail.patrikx3.tk/mail.patrikx3.tk.key
smtpd_use_tls=yes
smtpd_tls_auth_only = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination
myhostname = mail.patrikx3.tk
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
virtual_transport = lmtp:unix:private/dovecot-lmtp
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf

and this, supposed to use unix socket, why it shows tcp???:
smtp      inet  n       -       y       -       -       smtpd
#smtp      inet  n       -       y       -       1       postscreen
#smtpd     pass  -       -       y       -       -       smtpd
#dnsblog   unix  -       -       y       -       0       dnsblog
#tlsproxy  unix  -       -       y       -       0       tlsproxy
submission inet n       -       y       -       -       smtpd
  -o syslog_name=postfix/submission
  -o smtpd_tls_security_level=encrypt
  -o smtpd_sasl_auth_enable=yes
  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
smtps     inet  n       -       y       -       -       smtpd
  -o syslog_name=postfix/smtps
  -o smtpd_tls_wrappermode=yes
  -o smtpd_sasl_auth_enable=yes
  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
pickup    unix  n       -       y       60      1       pickup
cleanup   unix  n       -       y       -       0       cleanup
qmgr      unix  n       -       n       300     1       qmgr
tlsmgr    unix  -       -       y       1000?   1       tlsmgr
rewrite   unix  -       -       y       -       -       trivial-rewrite
bounce    unix  -       -       y       -       0       bounce
defer     unix  -       -       y       -       0       bounce
trace     unix  -       -       y       -       0       bounce
verify    unix  -       -       y       -       1       verify
flush     unix  n       -       y       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
proxywrite unix -       -       n       -       1       proxymap
smtp      unix  -       -       y       -       -       smtp
relay     unix  -       -       y       -       -       smtp
showq     unix  n       -       y       -       -       showq
error     unix  -       -       y       -       -       error
retry     unix  -       -       y       -       -       error
discard   unix  -       -       y       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       y       -       -       smtp
anvil     unix  -       -       y       -       1       anvil
scache    unix  -       -       y       -       1       scache
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix    -    n    n    -    2    pipe
  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman   unix  -       n       n       -       -       pipe
  flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
  ${nexthop} ${user}


On 02/11/2017 12:58 AM, Viktor Dukhovni wrote:
On Sat, Feb 11, 2017 at 12:51:10AM +0100, Patrik wrote:

this?
smtp      inet  n       -       y       -       -       smtpd
to
smtp      unix  n       -       y       -       -       smtpd
No, it would have been the one that says "dovecot-lmtp", but you
don't have one at all apparently.  On closer inspection, you seem
to have an smtpd(8) delivery agent trying to resolve "private/dovecot-lmtp"
as a TCP port number.  Perhaps a badly mangled content_filter setting,
or garbage in a transport table entry.


Reply | Threaded
Open this post in threaded view
|

Re: weird debian stretch/testing repo error

Viktor Dukhovni
In reply to this post by Patrik
On Sat, Feb 11, 2017 at 01:00:51AM +0100, Patrik Laszlo wrote:

> But where? I don't know Postfix, sorry.

    http://www.postfix.org/DEBUG_README.html#mail

Post the output of:

        $ postconf -n
        $ postconf -Mf

Find a message in the queue that is deferred due to this
problem.  As root:

        # postcat -eq <queue-id> | grep content_filter

also post that output.


> Which setting? master.cf, but which?

Turns out it is not master.cf, see above.

--
        Viktor.
Reply | Threaded
Open this post in threaded view
|

Re: weird debian stretch/testing repo error

Patrik
attach or inline?


On 02/11/2017 01:06 AM, Viktor Dukhovni wrote:
> postconf -n

Reply | Threaded
Open this post in threaded view
|

Re: weird debian stretch/testing repo error

Patrik
In reply to this post by Viktor Dukhovni
like this?


On 02/11/2017 01:06 AM, Viktor Dukhovni wrote:

> On Sat, Feb 11, 2017 at 01:00:51AM +0100, Patrik Laszlo wrote:
>
>> But where? I don't know Postfix, sorry.
>      http://www.postfix.org/DEBUG_README.html#mail
>
> Post the output of:
>
> $ postconf -n
> $ postconf -Mf
>
> Find a message in the queue that is deferred due to this
> problem.  As root:
>
> # postcat -eq <queue-id> | grep content_filter
>
> also post that output.
>
>
>> Which setting? master.cf, but which?
> Turns out it is not master.cf, see above.
>


postconf-Mf.txt (2K) Download Attachment
postconf-n.txt (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: weird debian stretch/testing repo error

Patrik
In reply to this post by Viktor Dukhovni

nothing!

also to send from to gmail works, from gmail to my email not working.

root@server:~/email# postcat -eq 87EF33004CC | grep content_filter
root@server:~/email# postcat -eq 19F213004D8 | grep content_filter
root@server:~/email# postcat -eq 671FF3004D7 | grep content_filter

all empty of this:

Feb 11 01:06:28 server postfix/error[5078]: 87EF33004CC: to=[hidden email], relay=none, delay=2685, delays=2684/1/0/0.02, dsn=4.3.0, status=deferred (unknown mail transport error)
Feb 11 01:06:28 server postfix/error[5081]: 19F213004D8: to=[hidden email], orig_to=[hidden email], relay=none, delay=663, delays=662/1/0/0.02, dsn=4.3.0, status=deferred (unknown mail transport error)
Feb 11 01:06:28 server postfix/error[5079]: 671FF3004D7: to=[hidden email], relay=none, delay=688, delays=687/1/0/0.02, dsn=4.3.0, status=deferred (unknown mail transport error)

inline:

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
compatibility_level = 2
inet_interfaces = all
inet_protocols = all
mailbox_size_limit = 0
mydestination = localhost
myhostname = mail.patrikx3.tk
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
relayhost =
smtpd_banner = ESMTP mail.patrikx3.tk
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = private/auth
smtpd_sasl_type = dovecot
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/ssl/acme/mail.patrikx3.tk/fullchain.cer
smtpd_tls_key_file = /etc/ssl/acme/mail.patrikx3.tk/mail.patrikx3.tk.key
smtpd_use_tls = yes
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
virtual_transport = lmtp:unix:private/dovecot-lmtp

smtp       inet  n       -       y       -       -       smtpd
submission inet  n       -       y       -       -       smtpd
    -o syslog_name=postfix/submission
    -o smtpd_tls_security_level=encrypt
    -o smtpd_sasl_auth_enable=yes
    -o smtpd_client_restrictions=permit_sasl_authenticated,reject
smtps      inet  n       -       y       -       -       smtpd
    -o syslog_name=postfix/smtps
    -o smtpd_tls_wrappermode=yes
    -o smtpd_sasl_auth_enable=yes
    -o smtpd_client_restrictions=permit_sasl_authenticated,reject
pickup     unix  n       -       y       60      1       pickup
cleanup    unix  n       -       y       -       0       cleanup
qmgr       unix  n       -       n       300     1       qmgr
tlsmgr     unix  -       -       y       1000?   1       tlsmgr
rewrite    unix  -       -       y       -       -       trivial-rewrite
bounce     unix  -       -       y       -       0       bounce
defer      unix  -       -       y       -       0       bounce
trace      unix  -       -       y       -       0       bounce
verify     unix  -       -       y       -       1       verify
flush      unix  n       -       y       1000?   0       flush
proxymap   unix  -       -       n       -       -       proxymap
proxywrite unix  -       -       n       -       1       proxymap
smtp       unix  -       -       y       -       -       smtp
relay      unix  -       -       y       -       -       smtp
showq      unix  n       -       y       -       -       showq
error      unix  -       -       y       -       -       error
retry      unix  -       -       y       -       -       error
discard    unix  -       -       y       -       -       discard
local      unix  -       n       n       -       -       local
virtual    unix  -       n       n       -       -       virtual
lmtp       unix  -       -       y       -       -       smtp
anvil      unix  -       -       y       -       1       anvil
scache     unix  -       -       y       -       1       scache
maildrop   unix  -       n       n       -       -       pipe flags=DRhu
    user=vmail argv=/usr/bin/maildrop -d ${recipient}
uucp       unix  -       n       n       -       -       pipe flags=Fqhu
    user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail     unix  -       n       n       -       -       pipe flags=F user=ftn
    argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp      unix  -       n       n       -       -       pipe flags=Fq.
    user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix - n       n       -       2       pipe flags=R
    user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop}
    ${user} ${extension}
mailman    unix  -       n       n       -       -       pipe flags=FR
    user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py ${nexthop}
    ${user}


On 02/11/2017 01:06 AM, Viktor Dukhovni wrote:
On Sat, Feb 11, 2017 at 01:00:51AM +0100, Patrik Laszlo wrote:

But where? I don't know Postfix, sorry.
    http://www.postfix.org/DEBUG_README.html#mail

Post the output of:

	$ postconf -n
	$ postconf -Mf

Find a message in the queue that is deferred due to this
problem.  As root:

	# postcat -eq <queue-id> | grep content_filter

also post that output.


Which setting? master.cf, but which?
Turns out it is not master.cf, see above.


Reply | Threaded
Open this post in threaded view
|

Re: weird debian stretch/testing repo error

Viktor Dukhovni
On Sat, Feb 11, 2017 at 01:13:35AM +0100, Patrik Laszlo wrote:

> root@server:~/email# postcat -eq 87EF33004CC | grep content_filter
> root@server:~/email# postcat -eq 19F213004D8 | grep content_filter
> root@server:~/email# postcat -eq 671FF3004D7 | grep content_filter

Good, no problem content_filter.

> virtual_transport = lmtp:unix:private/dovecot-lmtp

This is the origin of "private/dovecot-lmtp".

> lmtp       unix  -       -       y       -       -       smtp

The "lmtp" entry in master.cf entry is wrong.  The postfix.org
version has:

    ...
    smtp      unix  -       -       n       -       -       smtp
    lmtp      unix  -       -       n       -       -       lmtp
    ...

Notice that the service name and the delivery agent match up in
both entries.  You've created a chimera.  Your call whether to
enable chroot or not ("y" vs. "n").  And you probably do need both
services defined, not just the chimera.

--
        Viktor.
Reply | Threaded
Open this post in threaded view
|

Re: weird debian stretch/testing repo error

Patrik
that's all??
you saved me my stress!! you are the king!!! I had to moved from lmtp smtp to lmtp!!!
lmtp       unix  -       -       y       -       -       smtp
to
    lmtp      unix  -       -       n       -       -       lmtp

that's all!!!
for sure?? nothing else???




Patrik

GTalk:  
[hidden email]

Web:

Mobile:
<a href="tel:+36+20+342+8046" target="_blank">+36 20 342 8046

On Sat, Feb 11, 2017 at 1:21 AM, Viktor Dukhovni <[hidden email]> wrote:
On Sat, Feb 11, 2017 at 01:13:35AM +0100, Patrik Laszlo wrote:

> root@server:~/email# postcat -eq 87EF33004CC | grep content_filter
> root@server:~/email# postcat -eq 19F213004D8 | grep content_filter
> root@server:~/email# postcat -eq 671FF3004D7 | grep content_filter

Good, no problem content_filter.

> virtual_transport = lmtp:unix:private/dovecot-lmtp

This is the origin of "private/dovecot-lmtp".

> lmtp       unix  -       -       y       -       -       smtp

The "lmtp" entry in master.cf entry is wrong.  The postfix.org
version has:

    ...
    smtp      unix  -       -       n       -       -       smtp
    lmtp      unix  -       -       n       -       -       lmtp
    ...

Notice that the service name and the delivery agent match up in
both entries.  You've created a chimera.  Your call whether to
enable chroot or not ("y" vs. "n").  And you probably do need both
services defined, not just the chimera.

--
        Viktor.

Reply | Threaded
Open this post in threaded view
|

Re: weird debian stretch/testing repo error

Viktor Dukhovni
On Sat, Feb 11, 2017 at 01:26:15AM +0100, Patrik wrote:

> That's all?

Do read what I wrote.  You'll need both services.

> smtp      unix  -       -       n       -       -       smtp
> lmtp      unix  -       -       n       -       -       lmtp

You should probably be consistent about whether you chroot most
services or not.  A few services MUST NOT be chrooted:

        proxymap    unix
        proxywrite  unix
        local       unix
        virtual    unix

The rest should typically be all chrooted or not, though in some
cases exempting one or two more makes sense.  Chroot is for experts,
or for users with simple needs who do not edit master.cf at all,
with any changes made automatically by well-designed software.

If you're not an expert, and need a non-vanilla configuration,
chroot is likely not for you.

--
        Viktor.
Reply | Threaded
Open this post in threaded view
|

Re: weird debian stretch/testing repo error

Patrik
yes those 2 service as you told me.
i dont want to use chroot at all. usually other user.

what does this mean?
proxymap    unix
proxywrite  unix
local       unix
virtual     unix


my service for dovecot and postfix:
root@server:~# ps -aux | grep postfix
root      5829  0.0  0.1  75704  4164 ?        Ss   01:24   0:00 /usr/lib/postfix/sbin/master -w
postfix   5830  0.0  0.1  77344  4544 ?        S    01:24   0:00 pickup -l -t unix -u -c
postfix   5831  0.0  0.1  77500  6696 ?        S    01:24   0:00 qmgr -l -t unix -u
postfix   5834  0.0  0.1  81576  6832 ?        S    01:25   0:00 tlsmgr -l -t unix -u -c
root      6335  0.0  0.0  14336   940 pts/0    S+   01:42   0:00 grep postfix
root@server:~# ps -aux | grep dovecot
root      5601  0.0  0.0  10192  2212 ?        Ss   01:24   0:00 /usr/sbin/dovecot
dovecot   5607  0.0  0.0   9488   984 ?        S    01:24   0:00 dovecot/anvil
root      5608  0.0  0.0   9620  2404 ?        S    01:24   0:00 dovecot/log
root      6301  0.0  0.0   9484   980 ?        S    01:39   0:00 dovecot/ssl-params
root      6337  0.0  0.0  14336   936 pts/0    R+   01:42   0:00 grep dovecot
root@server:~# 





Patrik

GTalk:  
[hidden email]

Web:

Mobile:
<a href="tel:+36+20+342+8046" target="_blank">+36 20 342 8046

On Sat, Feb 11, 2017 at 1:37 AM, Viktor Dukhovni <[hidden email]> wrote:
On Sat, Feb 11, 2017 at 01:26:15AM +0100, Patrik wrote:

> That's all?

Do read what I wrote.  You'll need both services.

> smtp      unix  -       -       n       -       -       smtp
> lmtp      unix  -       -       n       -       -       lmtp

You should probably be consistent about whether you chroot most
services or not.  A few services MUST NOT be chrooted:

        proxymap    unix
        proxywrite  unix
        local       unix
        virtual     unix

The rest should typically be all chrooted or not, though in some
cases exempting one or two more makes sense.  Chroot is for experts,
or for users with simple needs who do not edit master.cf at all,
with any changes made automatically by well-designed software.

If you're not an expert, and need a non-vanilla configuration,
chroot is likely not for you.

--
        Viktor.

Reply | Threaded
Open this post in threaded view
|

Re: weird debian stretch/testing repo error

Viktor Dukhovni
On Sat, Feb 11, 2017 at 01:43:43AM +0100, Patrik wrote:

> what does this mean?
> proxymap    unix
> proxywrite  unix
> local       unix
> virtual     unix

These identify entries in master.cf by name and type:

    http://www.postfix.org/master.5.html

They should not be chrooted even when some or all other services
are.

--
        Viktor.
Reply | Threaded
Open this post in threaded view
|

Re: weird debian stretch/testing repo error

Patrik
do you know how i can change the service users?
or is it a linux info?
i thought by default it is secure, i guess i have to change by hand right?



Patrik

GTalk:  
[hidden email]

Web:

Mobile:
<a href="tel:+36+20+342+8046" target="_blank">+36 20 342 8046

On Sat, Feb 11, 2017 at 1:55 AM, Viktor Dukhovni <[hidden email]> wrote:
On Sat, Feb 11, 2017 at 01:43:43AM +0100, Patrik wrote:

> what does this mean?
> proxymap    unix
> proxywrite  unix
> local       unix
> virtual     unix

These identify entries in master.cf by name and type:

    http://www.postfix.org/master.5.html

They should not be chrooted even when some or all other services
are.

--
        Viktor.

Reply | Threaded
Open this post in threaded view
|

Re: weird debian stretch/testing repo error

Viktor Dukhovni

> On Feb 10, 2017, at 8:04 PM, Patrik <[hidden email]> wrote:
>
> Do you know how I can change the service users?

No idea what you mean when you say that.  You have not described
any problem that requires changes related to "users".

> or is it a linux info?

No idea.

> I thought by default it is secure, i guess i have to change by hand right?

No.  Don't make any changes you don't understand.

--
        Viktor.