Set a relayhost for non local in master.cf

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

Set a relayhost for non local in master.cf

PeterDaem
Hi,

with Postfix 2.11 i am tryting to use a relayhost for non-local mail..

if i put:

relayhost = [192.168.1.10]

in main.cf, then it works ok. 


But if i put it in master.cf like this:

smtp      unix  -       -       -       -       -       smtp
        -o relayhost=[192.168.1.10]

then it does not work... why??

Thanks!





Reply | Threaded
Open this post in threaded view
|

Re: Set a relayhost for non local in master.cf

Matus UHLAR - fantomas
On 30.05.18 10:21, Pedro David Marco wrote:
>with Postfix 2.11 i am tryting to use a relayhost for non-local mail..
>if i put:
>relayhost = [192.168.1.10]
>in main.cf, then it works ok. 
>
>But if i put it in master.cf like this:
>smtp      unix  -       -       -       -       -       smtp
>        -o relayhost=[192.168.1.10]
>then it does not work... why??

because relayhost is not an option of smtp process.
why do you want to do that in master.cf?

--
Matus UHLAR - fantomas, [hidden email] ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Fighting for peace is like fucking for virginity...
Reply | Threaded
Open this post in threaded view
|

Re: Set a relayhost for non local in master.cf

Wietse Venema
In reply to this post by PeterDaem
Pedro David Marco:

> Hi,
> with Postfix 2.11 i am tryting to use a relayhost for non-local mail..
> if i put:
> relayhost = [192.168.1.10]
> in main.cf, then it works ok.
>
> But if i put it in master.cf like this:
> smtp      unix  -       -       -       -       -       smtp
>         -o relayhost=[192.168.1.10]
> then it does not work... why??

Please show:

1) Output from "postconf -M smtp/unix"

2) Logging to demonstrate that "-o relayhost=..' is ignored.

        Wietse
Reply | Threaded
Open this post in threaded view
|

Re: Set a relayhost for non local in master.cf

Wietse Venema
Wietse Venema:

> Pedro David Marco:
> > Hi,
> > with Postfix 2.11 i am tryting to use a relayhost for non-local mail..
> > if i put:
> > relayhost = [192.168.1.10]
> > in main.cf, then it works ok.
> >
> > But if i put it in master.cf like this:
> > smtp      unix  -       -       -       -       -       smtp
> >         -o relayhost=[192.168.1.10]
> > then it does not work... why??

Please ignore my reply. It was before cofee.

        Wietse
Reply | Threaded
Open this post in threaded view
|

Re: Set a relayhost for non local in master.cf

PeterDaem

>Wietse Venema:

> Pedro David Marco:
> > Hi,
> > with Postfix 2.11 i am tryting to use a relayhost for non-local mail..
> > if i put:
> > relayhost = [192.168.1.10]
> > in main.cf, then it works ok.
> >
> > But if i put it in master.cf like this:
> > smtp      unix  -      -      -      -      -      smtp
> >        -o relayhost=[192.168.1.10]
> > then it does not work... why??

>Please ignore my reply. It was before cofee.
>  Wietse

Coffe is on me, Wietse :-)

Fantomas already answered... relayhost is not a avalid command for smtp...


Pedro.
Reply | Threaded
Open this post in threaded view
|

Re: Set a relayhost for non local in master.cf

Viktor Dukhovni


> On May 30, 2018, at 8:47 AM, Pedro David Marco <[hidden email]> wrote:
>
> Coffe is on me, Wietse :-)
>
> Fantomas already answered... relayhost is not a avalid command for smtp...

More specifically, it is implemented in trivial-rewrite(8)
and is used indirectly by qmgr(8) to schedule deliveries
for the appropriate nexthop.  The smtp(8) delivery agent
does not perform nexthop selection, it sends the mail
where it is told.

--
        Viktor.

Reply | Threaded
Open this post in threaded view
|

Re: Set a relayhost for non local in master.cf

PeterDaem
>On Wednesday, May 30, 2018, 6:07:01 PM GMT+2, Viktor Dukhovni <[hidden email]> wrote:

>More specifically, it is implemented in trivial-rewrite(8)
>and is used indirectly by qmgr(8) to schedule deliveries
>for the appropriate nexthop.  The smtp(8) delivery agent
>does not perform nexthop selection, it sends the mail
>where it is told.

Thanks a lot  Victor...


Pedro.