Thanks to all, i put in
/etc/postfix/main.cf
transport_maps=hash/etc/postfix/transport

in /etc/postfix/transport
t...@example.com smtp:[10.0.0.1]:25

then postmap /etc/postfix/transport

but if i telnet to localhost smtp to try an email flow to t...@example.com
i receive this message
rcpt to:<t...@mail.cgilfe.it>
550 5.1.1 <t...@mail.cgilfe.it>: Recipient address rejected: undeliverable
address: host 10.0..0.1[10.0.0.1 said: 553 sorry, your envelope sender
domain must exist (#5.7.1) (in reply to MAIL FROM command)

What's wrong?

2016-04-28 19:35 GMT+02:00 Wietse Venema <wie...@porcupine.org>:

> davide marchi:
> > Hi, my situation is this:
> > Smarthost with postfix forwarding with lmtp to dovecot residing on
> another
> > host for whole domain
> > Now i want to forward some emails of the same domain to same host but
> > instead of lmtp i want to use smtp
> > My question is how can i achieve this goal?
>
> transport_maps would be a good solution here.
>
> To make exceptions for the smtp users, use transport_maps
> with per-recipient rules:
>
> /etc/postfix/main.cf:
>     transport_maps = hash:/etc/postfix/transport
>
> /etc/postfix/transport
>     # Assumes that most example.com mail is delivered via LMTP.
>     us...@example.com   smtp:[hostname]
>     us...@example.com   smtp:[hostname]
>
> (execute "postmap hash:/etc/postfix/transport" after editing the file).
>
>         Wietse
>

Reply via email to