OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re[2]: v2.0.16 trivial-rewrite exits error code 1

From: Ed Vazquez (ed.vazquezdhha.org)
Date: Wed Oct 01 2003 - 16:46:16 CDT


On Wed, 1 Oct 2003 17:35:12 -0400 (EDT) Wietse Venema <wietseporcupine.org> wrote:

> The trivial-rewrite daemon logs the reason for exit status 1.
>
> Try:
>
> grep fatal /var/log/maillog
>
> Wietse
>
[snip]

Ah ha! Thanks, now I see:

maillog:2003 Oct 1 18:31:12 mailfilter postfix/trivial-rewrit
 mail.crit postfix/trivial-rewrite[28029]: fatal: bad string length
(0 < 1): local_transport =

Which makes sense, except that this is basically the same config I use
on another system which is also a gateway host for internal mail and
doesn't deliver locally at all.

The relevant sections of /etc/postfix/main.cf seems to be (minus the
linewrap):

myhostname = mailfilter.dantegroup.com

mydomain = dantegroup.com

myorigin = $mydomain

mydestination = $myhostname, localhost.$mydomain, $mydomain,
mail.$mydomain, www.$mydomain, ftp.$mydomain

local_recipient_maps =

transport_maps = hash:/etc/postfix/transport

local_transport = local

Hmm - wonder why Postfix thinks local_transport is empty?

--
Ed Vázquez

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Danger - if you meet it promptly and without flinching - you will
reduce the danger by half. Never run away from anything. Never!
- Sir Winston Leonard Spencer Churchill