Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

in postfix 2.3, how to use mailbox_transport_maps

357 views
Skip to first unread message

Nicolas Schmitz

unread,
Feb 2, 2006, 10:09:51 AM2/2/06
to
Hi,
I'd like to replace my global
mailbox_transport = lmtp:1.2.3.4
by

mailbox_transport_maps = hash:/etc/postfix/mailbox_transport_maps

and :

cat /etc/postfix/mailbox_transport_maps
sch...@gondor.ec-nantes.fr lmtp:1.2.3.4
to...@tata.ec-nantes.fr lmtp:2.3.4.5

But it doesn't seem to work, (I've tried with both postfix-2.3-20060126
and postfix-2.3-20051229) : I get

Feb 2 07:01:49 localhost postfix/local[16016]: 3D7A827592:
to=<sch...@gondor.ec-nantes.fr>,
orig_to=<Nicolas...@ec-nantes.fr>, relay=local, delay=11,
delays=11/0.02/0/0.03, dsn=5.1.1, status=bounced (unknown user: "schmitz")

Whereas if I use mailbox_transport = lmtp:1.2.3.4, the message is
correctly delivered by lmtp.

Thanks in advance.

--
Nicolas Schmitz

Centre de Ressources Informatiques
Ecole Centrale de Nantes
1 rue de la Noe - BP 92101
44321 NANTES CEDEX 03
http://www.ec-nantes.fr

Ralf Hildebrandt

unread,
Feb 2, 2006, 10:13:59 AM2/2/06
to
* Nicolas Schmitz <Nicolas...@ec-nantes.fr>:

> Hi,
> I'd like to replace my global
> mailbox_transport = lmtp:1.2.3.4
> by
>
> mailbox_transport_maps = hash:/etc/postfix/mailbox_transport_maps
>
> and :
>
> cat /etc/postfix/mailbox_transport_maps
> sch...@gondor.ec-nantes.fr lmtp:1.2.3.4
> to...@tata.ec-nantes.fr lmtp:2.3.4.5

You postmapped the file?

sch...@gondor.ec-nantes.fr lmtp:[1.2.3.4]
to...@tata.ec-nantes.fr lmtp:[2.3.4.5]

--
Ralf Hildebrandt (Ralf.Hil...@charite.de) spam...@charite.de
Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155
http://www.postfix-buch.com
Ich habe hier Windows 2000 spontan fällt mir dazu die Szene aus das
"Leben des Brian" ein, in der der Mitgefangene im Kerker Brian als
Günstling bezeichnet, weil er vom Kerkermeister angespuckt wurde.

Nicolas Schmitz

unread,
Feb 2, 2006, 10:38:39 AM2/2/06
to

> You postmapped the file?
>
> sch...@gondor.ec-nantes.fr lmtp:[1.2.3.4]
> to...@tata.ec-nantes.fr lmtp:[2.3.4.5]
>
>
yes :-)
ls -all mailbox_transport_maps*
-rw-r--r-- 1 root root 50 2006-02-02 07:01 mailbox_transport_maps
-rw-r--r-- 1 root root 12288 2006-02-02 07:01 mailbox_transport_maps.db

And I have also tried with regexp.

Thanks anyway.

Ralf Hildebrandt

unread,
Feb 2, 2006, 10:42:20 AM2/2/06
to
* Nicolas Schmitz <Nicolas...@ec-nantes.fr>:

> yes :-)
> ls -all mailbox_transport_maps*
> -rw-r--r-- 1 root root 50 2006-02-02 07:01 mailbox_transport_maps
> -rw-r--r-- 1 root root 12288 2006-02-02 07:01 mailbox_transport_maps.db
>
> And I have also tried with regexp.

How old is your Postfix?
Only recent versions are capable of per-user transport_maps!!

--
Ralf Hildebrandt (Ralf.Hil...@charite.de) spam...@charite.de
Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155
http://www.postfix-buch.com

Why you can't find your system administrators:
Emptying the bit buckets. -- Michael Shields shi...@tembel.org

Wietse Venema

unread,
Feb 2, 2006, 10:56:55 AM2/2/06
to
Nicolas Schmitz:

> Hi,
> I'd like to replace my global
> mailbox_transport = lmtp:1.2.3.4
> by
>
> mailbox_transport_maps = hash:/etc/postfix/mailbox_transport_maps
>
> and :
>
> cat /etc/postfix/mailbox_transport_maps
> sch...@gondor.ec-nantes.fr lmtp:1.2.3.4
> to...@tata.ec-nantes.fr lmtp:2.3.4.5

The local(8) delivery agent searches all maps with the username only.

Wietse

Nicolas Schmitz

unread,
Feb 2, 2006, 11:12:07 AM2/2/06
to
Thanks ! it works like a charm :-)
with :
toto lmtp:1.2.3.4
tata lmtp:2.3.4.5

Thanks for this fast answer.

Wietse Venema a écrit :


--
Nicolas Schmitz

Centre de Ressources Informatiques | tel : 02 40 37 68 06
Ecole Centrale de Nantes | fax : 02 40 37 25 78

0 new messages