Postfix not delivering mail

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

Postfix not delivering mail

James Moe
postfix v3.2.0
linux v4.4.103-36-default x86_64

  Postfix has once again decided not to deliver mail. (I do not know why
I have such a hard time keeping postfix sane. I do not recall making any
changes either.) Below is the session log. Lots of "unknown" features.
Not helpful.
  Postfix is the local MDA for system messages.
  I added an excerpt from <master.cf>.
  Telnet connects to postfix with port 126. (126 is used since there is
also an MTA running on the same system.) So I do not understand the
error "unknown service: smtp/tcp".

  How do I resolve the unknown errors?

2018-01-12T12:19:41-0700 sma-server3 postfix/error[25802]: 0D7E52528B5:
to=<[hidden email]>, orig_to=<root>, relay=none, delay=378386,
delays=378384/1/0/0.01, dsn=4.3.0, status=deferred (unknown mail
transport error)
2018-01-12T12:29:40-0700 sma-server3 postfix/qmgr[17322]: C0D222550D2:
from=<[hidden email]>, size=937, nrcpt=2 (queue active)
2018-01-12T12:29:40-0700 sma-server3 postfix/qmgr[17322]: BF81B252BF5:
from=<>, size=3264, nrcpt=1 (queue active)
2018-01-12T12:29:40-0700 sma-server3 postfix/smtp[26035]: fatal: unknown
service: smtp/tcp
2018-01-12T12:29:40-0700 sma-server3 postfix/smtp[26036]: fatal: unknown
service: smtp/tcp
2018-01-12T12:29:41-0700 sma-server3 postfix/qmgr[17322]: warning:
private/smtp socket: malformed response
2018-01-12T12:29:41-0700 sma-server3 postfix/qmgr[17322]: warning:
transport smtp failure -- see a previous warning/fatal/panic logfile
record for the problem description
2018-01-12T12:29:41-0700 sma-server3 postfix/master[17320]: warning:
process /usr/lib/postfix/smtp pid 26035 exit status 1
2018-01-12T12:29:41-0700 sma-server3 postfix/master[17320]: warning:
/usr/lib/postfix/smtp: bad command startup -- throttling
2018-01-12T12:29:41-0700 sma-server3 postfix/master[17320]: warning:
process /usr/lib/postfix/smtp pid 26036 exit status 1
2018-01-12T12:29:41-0700 sma-server3 postfix/error[26037]: C0D222550D2:
to=<[hidden email]>, relay=none, delay=109779,
delays=109777/1.4/0/0.02, dsn=4.3.0, status=deferred (unknown mail
transport error)
2018-01-12T12:29:41-0700 sma-server3 postfix/qmgr[17322]: warning:
private/smtp socket: malformed response
2018-01-12T12:29:41-0700 sma-server3 postfix/qmgr[17322]: warning:
transport smtp failure -- see a previous warning/fatal/panic logfile
record for the problem description
2018-01-12T12:29:41-0700 sma-server3 postfix/error[26037]: BF81B252BF5:
to=<[hidden email]>, orig_to=<[hidden email]>,
relay=none, delay=374320, delays=374318/1.4/0/0, dsn=4.3.0,
status=deferred (unknown mail transport error)

----[ from master.cf ]---
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
smtp:126  inet  n      -       y       -        -       smtpd
pickup   fifo  n      -       n       60       1       pickup
cleanup  unix  n      -       n       -        0       cleanup
qmgr     fifo  n      -       n       300      1       qmgr
#qmgr     fifo  n       -       n       300     1       oqmgr
rewrite  unix  -      -       n       -        -       trivial-rewrite
bounce   unix  -      -       n       -        0       bounce
defer    unix  -      -       n       -        0       bounce
trace    unix  -      -       n       -        0       bounce
verify   unix  -      -       n       -        1       verify
flush    unix  n      -       n       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      -       n       -        -       showq
error    unix  -      -       n       -        -       error
retry    unix  -      -       n       -        -       error
discard  unix  -      -       n       -        -       discard
local    unix  -      n       n       -        -       local
virtual  unix  -      n       n       -        -       virtual
lmtp     unix  -      -       n       -        -       lmtp
anvil    unix  -      -       n       -        1       anvil

--
James Moe
moe dot james at sohnen-moe dot com
520.743.3936
Think.


signature.asc (188 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Postfix not delivering mail

etech3
On 01/12/2018 03:13 PM, James Moe wrote:

> postfix v3.2.0
> linux v4.4.103-36-default x86_64
>
>    Postfix has once again decided not to deliver mail. (I do not know why
> I have such a hard time keeping postfix sane. I do not recall making any
> changes either.) Below is the session log. Lots of "unknown" features.
> Not helpful.
>    Postfix is the local MDA for system messages.
>    I added an excerpt from <master.cf>.
>    Telnet connects to postfix with port 126. (126 is used since there is
> also an MTA running on the same system.) So I do not understand the
> error "unknown service: smtp/tcp".
>
>    How do I resolve the unknown errors?
>
> 2018-01-12T12:19:41-0700 sma-server3 postfix/error[25802]: 0D7E52528B5:
> to=<[hidden email]>, orig_to=<root>, relay=none, delay=378386,
> delays=378384/1/0/0.01, dsn=4.3.0, status=deferred (unknown mail
> transport error)
> 2018-01-12T12:29:40-0700 sma-server3 postfix/qmgr[17322]: C0D222550D2:
> from=<[hidden email]>, size=937, nrcpt=2 (queue active)
> 2018-01-12T12:29:40-0700 sma-server3 postfix/qmgr[17322]: BF81B252BF5:
> from=<>, size=3264, nrcpt=1 (queue active)
> 2018-01-12T12:29:40-0700 sma-server3 postfix/smtp[26035]: fatal: unknown
> service: smtp/tcp
> 2018-01-12T12:29:40-0700 sma-server3 postfix/smtp[26036]: fatal: unknown
> service: smtp/tcp
> 2018-01-12T12:29:41-0700 sma-server3 postfix/qmgr[17322]: warning:
> private/smtp socket: malformed response
> 2018-01-12T12:29:41-0700 sma-server3 postfix/qmgr[17322]: warning:
> transport smtp failure -- see a previous warning/fatal/panic logfile
> record for the problem description
> 2018-01-12T12:29:41-0700 sma-server3 postfix/master[17320]: warning:
> process /usr/lib/postfix/smtp pid 26035 exit status 1
> 2018-01-12T12:29:41-0700 sma-server3 postfix/master[17320]: warning:
> /usr/lib/postfix/smtp: bad command startup -- throttling
> 2018-01-12T12:29:41-0700 sma-server3 postfix/master[17320]: warning:
> process /usr/lib/postfix/smtp pid 26036 exit status 1
> 2018-01-12T12:29:41-0700 sma-server3 postfix/error[26037]: C0D222550D2:
> to=<[hidden email]>, relay=none, delay=109779,
> delays=109777/1.4/0/0.02, dsn=4.3.0, status=deferred (unknown mail
> transport error)
> 2018-01-12T12:29:41-0700 sma-server3 postfix/qmgr[17322]: warning:
> private/smtp socket: malformed response
> 2018-01-12T12:29:41-0700 sma-server3 postfix/qmgr[17322]: warning:
> transport smtp failure -- see a previous warning/fatal/panic logfile
> record for the problem description
> 2018-01-12T12:29:41-0700 sma-server3 postfix/error[26037]: BF81B252BF5:
> to=<[hidden email]>, orig_to=<[hidden email]>,
> relay=none, delay=374320, delays=374318/1.4/0/0, dsn=4.3.0,
> status=deferred (unknown mail transport error)
>
> ----[ from master.cf ]---
> # service type  private unpriv  chroot  wakeup  maxproc command + args
> #               (yes)   (yes)   (yes)   (never) (100)
> smtp:126  inet  n      -       y       -        -       smtpd
> pickup   fifo  n      -       n       60       1       pickup
> cleanup  unix  n      -       n       -        0       cleanup
> qmgr     fifo  n      -       n       300      1       qmgr
> #qmgr     fifo  n       -       n       300     1       oqmgr
> rewrite  unix  -      -       n       -        -       trivial-rewrite
> bounce   unix  -      -       n       -        0       bounce
> defer    unix  -      -       n       -        0       bounce
> trace    unix  -      -       n       -        0       bounce
> verify   unix  -      -       n       -        1       verify
> flush    unix  n      -       n       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      -       n       -        -       showq
> error    unix  -      -       n       -        -       error
> retry    unix  -      -       n       -        -       error
> discard  unix  -      -       n       -        -       discard
> local    unix  -      n       n       -        -       local
> virtual  unix  -      n       n       -        -       virtual
> lmtp     unix  -      -       n       -        -       lmtp
> anvil    unix  -      -       n       -        1       anvil
>
maybe provide a copy of your main.cf
Reply | Threaded
Open this post in threaded view
|

Re: Postfix not delivering mail

Viktor Dukhovni
In reply to this post by James Moe


> On Jan 12, 2018, at 3:13 PM, James Moe <[hidden email]> wrote:
>
> 2018-01-12T12:29:40-0700 sma-server3 postfix/smtp[26035]: fatal: unknown
> service: smtp/tcp
> 2018-01-12T12:29:40-0700 sma-server3 postfix/smtp[26036]: fatal: unknown
> service: smtp/tcp

Your problem is a misconfigured chroot-jail, or permission issues reading
/etc/services.

--
        Viktor.

Reply | Threaded
Open this post in threaded view
|

Re: Postfix not delivering mail

Bill Cole-3
In reply to this post by James Moe
On 12 Jan 2018, at 15:13, James Moe wrote:

> smtp:126  inet  n      -       y       -        -       smtpd

Do not do this...................^

OR: put copies of all the needed files into the chroot jail.
Reply | Threaded
Open this post in threaded view
|

Re: [SOLVED] Postfix not delivering mail

James Moe
In reply to this post by Viktor Dukhovni
On 01/12/2018 01:37 PM, Viktor Dukhovni wrote:
>
>> 2018-01-12T12:29:40-0700 sma-server3 postfix/smtp[26036]: fatal: unknown
>> service: smtp/tcp
> Your problem is a misconfigured chroot-jail, or permission issues reading
> /etc/services.
>
  Quite so. That is a change that I made recently and then forgot it.
And not understanding its implications, I failed to configure it properly.
  Thank you all for your insight and support.

--
James Moe
moe dot james at sohnen-moe dot com
520.743.3936
Think.


signature.asc (188 bytes) Download Attachment